100% Orange Juice
Deet Nov 4, 2014 @ 6:31pm
How-to: Play OJ on Win8/8.1 Touchscreen Device
Some folks have probably tried playing OJ on a touchscreen and noticed that, unfortunately, the game doesn't accept single taps as left clicks. Instead, players are forced to either double tap or tap-and-drag to get the equivalent of a left click input.


Fortunately, until the devs actually implement touchscreen support (which I fully hope they do!), it turns out that there's a fairly straightforward workaround for making single taps work in the game by using AutoHotkey.


Simply insert these two lines at the bottom of an AHK script (I run one at startup, so I just put it in there):

#IfWinActive ahk_class 100`% Orange Juice! 1.7.7 ~ Dangerous Pudding ~

LButton:: Click




For some reason, AHK can intercept the left click input being sent by Windows 8 when you touch the screen and... well... translate it into a left click input that 100% OJ is okay with.

My best guess as to why this works is that with the AHK script running, the game sees the mouse movement when you tap the screen, and then receives a second, separate left click command that it can process at the new mouse location.



Anyway, hope this helps anyone who wants to play this with a touchscreen Win8/8.1 device!
< >
Showing 1-7 of 7 comments
Deet Nov 4, 2014 @ 6:34pm 
This does, by the by, disable dragging, since all touches are translated immediately into left clicks (which is the other possible reason this works while the default Windows tap doesn't).

You can get around this by selecting a different window or tapping the desktop, and then dragging the 100% OJ window around, since the game specific section of the script that overrides touch events won't be active.
I wonder if this sheds any light on an occasional issue I have where if I smack my mouse button too hard, I might end up selecting and "playing" but also canceling it at the same time, causing it to basically be revealed AND wasted
Axyz Jan 15, 2016 @ 3:57am 
What about VAC ban? Is it legal to use scripts like this?
Axyz Jan 20, 2016 @ 1:00pm 
up
Deet Jan 20, 2016 @ 6:28pm 
Originally posted by Axyz:
What about VAC ban? Is it legal to use scripts like this?

I don't see why there would be any issue with this. All it does it translate a touch event into a normal mouse click. There's no game hooking or code modification occurring, and I don't believe the game even uses VAC for anything to begin with.

I've had no issue with using it for this game, in any case.
Granger Jan 20, 2016 @ 7:22pm 
Originally posted by Deet:
Originally posted by Axyz:
What about VAC ban? Is it legal to use scripts like this?

I don't see why there would be any issue with this. All it does it translate a touch event into a normal mouse click. There's no game hooking or code modification occurring, and I don't believe the game even uses VAC for anything to begin with.

I've had no issue with using it for this game, in any case.
VAC is enabled for the mulltiplayer part of the game i think, nothing else. Still, i dont see why this should be triggering a ban either.
Axyz Jan 21, 2016 @ 12:05am 
Thank you for your answers, I'll give it a try :)
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Nov 4, 2014 @ 6:31pm
Posts: 7