Stop Analog at Y-axis 75 when button is clicked

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
CapoPM
Posts: 6
Joined: 16 May 2019, 02:09

Stop Analog at Y-axis 75 when button is clicked

16 May 2019, 04:37

Hi,

can I stop the analog stick at y-axis Y075, when I pressed a button and use the anlaog down at the same?
Albireo
Posts: 1778
Joined: 16 Oct 2013, 13:53

Re: Stop Analog at Y-axis 75 when button is clicked

16 May 2019, 05:52

CapoPM wrote:
16 May 2019, 04:37
... analog stick at y-axis Y075 ...
Do you mean joystick?
Please send with parts or the entire AHK-program, how you want your solution to look like!
CapoPM
Posts: 6
Joined: 16 May 2019, 02:09

Re: Stop Analog at Y-axis 75 when button is clicked

16 May 2019, 06:04

Thank Your for answer!

Yes, I mean the analog of joystick. Im absolutly noob at ahk. But if you can give me a link or an exsample, that would help me a lot.

I´ve got this code and want to stop the y-axis at 75, when I push joy3 and at the same time put the analog over Y075

!Joy3::
Send, {Joy3}
Soundplay, C:\Users\AUDIO\Sounds\sample.wav
return
Albireo
Posts: 1778
Joined: 16 Oct 2013, 13:53

Re: Stop Analog at Y-axis 75 when button is clicked

16 May 2019, 06:48

First you must know when JoyY > 75
Maybe this link can help you? JoyX JoyY to SendInput
After that, the problem is to stop the JoyY-value. (Can't help you because I don't have a joystick installed.)
But, maybe the mouse position is the same as for the joystick?
You can do something like If JoyY >= 75 MouseMove ??,75

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], oktavimark and 330 guests