Help making a simple script

Ask gaming related questions (AHK v1.1 and older)
vastraz
Posts: 2
Joined: 21 Feb 2021, 16:45

Help making a simple script

Post by vastraz » 21 Feb 2021, 16:50

I'm a complete rookie at scripting, let alone AHK.

All I need is a script which:
1st: Is activated when a key is pressed.
2nd: Switches to a given window/process.
3rd: Hold the TAB key for a given length of time.
4th: Clicks on a specific area of the screen.
5th: Holds right mouse until left mouse is pressed.
Last edited by BoBo on 21 Feb 2021, 17:46, edited 1 time in total.
Reason: Moved to Gaming section.
User avatar
mikeyww
Posts: 26889
Joined: 09 Sep 2014, 18:38

Re: Help making a simple script

Post by mikeyww » 21 Feb 2021, 17:17

Code: Select all

F3::
WinActivate, windowTitle
Send {Tab down}
Sleep, 2000
Send {Tab up}
Click, 300, 300
Click, down, right
SoundBeep, 1500, 30
KeyWait, LButton, D
Click, up, right
SoundBeep, 1000, 30
Return
Post Reply

Return to “Gaming Help (v1)”