Joystick JoyPOV to a Single Click. Topic is solved

Ask gaming related questions
Dumitas
Posts: 21
Joined: 14 Dec 2017, 21:32

Joystick JoyPOV to a Single Click.

14 Dec 2017, 21:40

Hi everyone, Im using my joystick to play a game that requiere mouse and keyboard only and I'm having a little issue with JoyPOV and click.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus




Using buttoms Joy(number) its easy to click anywhere without any problem, but with JoyPOV I don't know how to use "MouseClick" but click instead, the problem is that as long as I keep the JoyPOV (Joystick arrows) pressed it keep clicking.

I need to change JoyPOV so it click once.




Thank you in advance.


PS: I don't entirely understand the code, I made it with different tutorial on this forum and the guides on ahk page, so If you find something unnecessary or that can be improved feel free to do it so.
User avatar
evilC
Posts: 4181
Joined: 27 Feb 2014, 12:30

Re: Joystick JoyPOV to a Single Click.  Topic is solved

15 Dec 2017, 07:18

A couple of problems here:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


You have no return statement after the end of WatchPOV, so your WatchPOV timer is ALSO triggering WatchAxis.

SetTimer, WatchPOV, 5 AHK does not support timers of 5. The actual tick rate of the timer will be the minimum timer period, which varies by PC and is typically ~10ms

In order to solve your repeated clicking issue, you need to do like this:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Dumitas
Posts: 21
Joined: 14 Dec 2017, 21:32

Re: Joystick JoyPOV to a Single Click.

15 Dec 2017, 13:23

Works perfect, thank you very much.

Return to “Gaming”

Who is online

Users browsing this forum: Hellbent and 7 guests