short cut for a code

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
recyclingeek
Posts: 36
Joined: 19 Apr 2020, 18:27

short cut for a code

02 Aug 2020, 19:33

my code is too basic and because it goes all the way up to 50 it's running a little slow. Any short cuts ideas? i want make sure that the code doesn't randomly get triggered as well. More ever, it only gets triggered when the number is followed by @ with nothing before or after...

Code: Select all

:*:2@::
mousemove, 298,98
click,
send, 2
send, !O
return

:*:3@::
mousemove, 298,98
click,
send, 3
send, !O
return
hd0202
Posts: 183
Joined: 04 Oct 2013, 03:07
Location: Germany near Cologne

Re: short cut for a code

04 Aug 2020, 01:57

try this after filling the missing hotkeys

Code: Select all

:*:2@::
:*:3@::
; fill with keys from 4 to 49
:*:50@::

mousemove, 298,98
click,
key_to_send := strsplit(a_thishotkey, ":", "@")
send, % key_to_send[3]
send, !O
return
Hubert

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 183 guests