Script help! (simple)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Slayizer
Posts: 1
Joined: 09 Jan 2018, 17:37

Script help! (simple)

09 Jan 2018, 17:41

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
GreatGazoo
Posts: 69
Joined: 28 Dec 2017, 02:53

Re: Script help! (simple)

09 Jan 2018, 23:39

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

Code: Select all

^PgUp::
send, 1
Return

^PgDn::
send, 2
Return

^End::
Send, {Escape}
Return
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
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Script help! (simple)

10 Jan 2018, 03:49

[Thread locked for the above mentioned reason] BoBo

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk, Robt800 and 169 guests