Help on writing a specific script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Tello
Posts: 3
Joined: 16 Jun 2018, 20:26

Help on writing a specific script

16 Jun 2018, 20:55

I'm not sure how to work this on autohotkey as I am very new and I don't know what it is called, but, specifically, I'm trying to get a script that whenever I press the key 1, it does many actions.
I'm trying to make it so that whenever I press 1, it:
Clicks the D letter from my keyboard
Waits around 7 seconds
Moves the cursor about 70 pixels south and makes a mouse click
Clicks the letter D
Moves the cursor 70 pixels north back to where it began
And finally it loops indefinitely

I'm sorry if I'm really incompetent, I just started getting into this and want to make this. All advice would be appreciated, thank you!
mshafer1
Posts: 54
Joined: 16 Jul 2017, 14:49
Contact:

Re: Help on writing a specific script

16 Jun 2018, 21:19

If you use the scan code (https://autohotkey.com/docs/KeyList.htm#sc) you can specify keys more precisely (including ones that aren't included in the language by default).

On my keyboard (and I suspect on yours) - numeric 1 (not the numpad 1) has a scan code of 002, so you can use this version instead to get exactly what you asked for:
https://www.ahkgen.com/?length=1&commen ... on0=Custom

If this does not work for you, checkout the OP here for a way to get the scan code of any key: https://autohotkey.com/board/topic/2110 ... -of-a-key/

Also, https://autohotkey.com/boards/viewtopic.php?f=7&t=50699
mstarr
Posts: 25
Joined: 31 Dec 2015, 09:29

Re: Help on writing a specific script

18 Jun 2018, 09:28

Google - Pullovers macro creator

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 369 guests