My script generates an error when using combinations with 3 alphanumeric characters, example:
O1Z :: Click 165,383
13F :: Click 124,381
H21 :: Click 122,212
But this error does not occur when I use commands like
^#f::Click 165,383
#+1::Click 124,381
^!N::Click 122,212
Any suggestions, please?
Error in alphanumeric use
Re: Error in alphanumeric use
Hallo,
you have to distinguish between Hotkeys (key combinations) like ^#f and Hotstrings (text) like O1Z.
Try these Hotstrings:
you have to distinguish between Hotkeys (key combinations) like ^#f and Hotstrings (text) like O1Z.
Try these Hotstrings:
Code: Select all
:*X:O1Z::Click 165,383
:*X:13F::Click 124,381
:*X:H21::Click 122,212
Help
I tried It still does not work. My intention is that by holding down O followed by 1 followed by Z click on that coordinates.
Re: Error in alphanumeric use
This is not how hotkeys work. The symbols for Alt, Ctrl, etc. are modifiers. You can combine several of them with a normal key.O1Z :: Click 165,383
On the other hand, to combine two normal keys (and optional modifiers), you need to use the & symbol: https://autohotkey.com/docs/Hotkeys.htm#combo
But, "ombinations of three or more keys are not supported." One way around it, using GetKeystate(), is mentioned in the docs I linked to above.
Last edited by gregster on 16 Jul 2018, 16:33, edited 2 times in total.
Re: Error in alphanumeric use
There is also Helgef's custom LongHotkey class that tries to work around these limitations.
¡Rohwedder!
Sorry for saying that your script did not work. What happens is that I already had a structured script and there was a "condition" that did not allow the script you suggested to me to work. Apologies.
Who is online
Users browsing this forum: imstupidpleshelp, jaka1, Joa and 187 guests