How to press the same key again to advance script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sock5000
Posts: 3
Joined: 21 Sep 2022, 04:47

How to press the same key again to advance script?

21 Sep 2022, 04:53

Code: Select all

Coordmode, Mouse, Screen
MButton::
SetDefaultMouseSpeed, 0
MouseMove, 2800, 398
Sleep 300
Send {Click}
Sleep 300
MouseMove, 2810, 830
Sleep 1000
Send {Click}
MouseMove, 2470, 140
Sleep 1000
Send {Click}
MouseMove, 3000, 500
Sleep 1000
Send {Click}
Sleep 1000
Send {Space}
Sleep 66000
Is there a way to set it so that if i press the middle mouse button it will move the mouse (and sleep), but i then have to press the middle mouse again to advance to the next step, instead of just doing the whole script in one go?
Sock5000
Posts: 3
Joined: 21 Sep 2022, 04:47

Re: How to press the same key again to advance script?

21 Sep 2022, 22:18

BoBo wrote:
21 Sep 2022, 14:34
KeyWait/GetKeyState()
what
Rohwedder
Posts: 7768
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to press the same key again to advance script?

22 Sep 2022, 05:01

Hallo,
that e.g.:

Code: Select all

Coordmode, Mouse, Screen
MButton::
SetDefaultMouseSpeed, 0
MouseMove, 2800, 398
KeyWait, MButton
KeyWait, MButton, Down
Send {Click}
Sleep 300
MouseMove, 2810, 830
KeyWait, MButton
KeyWait, MButton, Down
Send {Click}
MouseMove, 2470, 140
KeyWait, MButton
KeyWait, MButton, Down
Send {Click}
MouseMove, 3000, 500
KeyWait, MButton
KeyWait, MButton, Down
Send {Click}
Sleep 1000
Send {Space}
Sleep 66000

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Kodakku and 362 guests