hey everyone,
this script isn't working and I think I've narrowed it down to the ^PgUp And ^PgDn not working. It seems like they're not taking the control command as 1 and 2 is input without the use of control with page up and down. Any ideas?
^PgUp::
send {1}
Return
^PgDn::
send {2}
Return
^End::
Send {Escape}
Return
Script help! (simple)
-
- Posts: 69
- Joined: 28 Dec 2017, 02:53
Re: Script help! (simple)
did you try without the { } pretty sure you dont need them for those keys? for escape you do and spacebar, in case you wanted to send the word "enter" its got to be different from the {enter} key
Another common issue is that people think that everything needs to be wrapped in brackets with the send command. That is FALSE. If it's not in the chart, it does not need brackets. You do not need to wrap common letters, numbers or even some symbols (such as . (period)) in {}'s.
Also, with the Send commands you are able to send more than 1 letter, number or symbol at a time. So no need for a bunch of Send commands with 1 letter each.
S↓
; Don't wrap words or individual letters that are not in the table mentioned above.
send, {a} ; WRONG
send, {b} ; WRONG
send, {c} ; WRONG
send, {a}{b}{c} ; WRONG
send, {abc} ; WRONG
send, abc ; CORRECT
https://autohotkey.com/docs/commands/Send.htm <---- check this link for more details
Code: Select all
^PgUp::
send, 1
Return
^PgDn::
send, 2
Return
^End::
Send, {Escape}
Return
Also, with the Send commands you are able to send more than 1 letter, number or symbol at a time. So no need for a bunch of Send commands with 1 letter each.
S↓
; Don't wrap words or individual letters that are not in the table mentioned above.
send, {a} ; WRONG
send, {b} ; WRONG
send, {c} ; WRONG
send, {a}{b}{c} ; WRONG
send, {abc} ; WRONG
send, abc ; CORRECT
https://autohotkey.com/docs/commands/Send.htm <---- check this link for more details
Re: Script help! (simple)
Double post, see also https://autohotkey.com/boards/viewtopic ... 64#p193606
Re: Script help! (simple)
[Thread locked for the above mentioned reason] BoBo