Control+A (Selection All) don't select text

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ccmancio
Posts: 3
Joined: 04 Sep 2017, 09:18

Control+A (Selection All) don't select text

04 Sep 2017, 14:43

I have a little script for teste :

run Notepad.exe
Sleep 1500
WinActivate
Send Linha1
Send Linha2
Send ^A (oir Send {Control A})

But text not selected.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Control+A (Selection All) don't select text

04 Sep 2017, 14:52

A is shift+a. So you send ctrl+shift+a.
User avatar
JoeWinograd
Posts: 2200
Joined: 10 Feb 2014, 20:00
Location: U.S. Central Time Zone

Re: Control+A (Selection All) don't select text

04 Sep 2017, 14:57

Make the "A" lower case, i.e.:

Send ^a

Regards, Joe
ccmancio
Posts: 3
Joined: 04 Sep 2017, 09:18

Re: Control+A (Selection All) don't select text

04 Sep 2017, 15:08

YES. it's ok..

You know why A don't function, in Notepad say Ctrl+A.
Why {Control a} don't function too.

Best regards
Thanks
TAC109
Posts: 1112
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Re: Control+A (Selection All) don't select text

04 Sep 2017, 18:25

You press ctrl+A (A is what is etched on the key you press).
The computer receives ctrl+a (which is what the send does).
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
User avatar
Exaskryz
Posts: 2882
Joined: 17 Oct 2015, 20:28

Re: Control+A (Selection All) don't select text

04 Sep 2017, 18:37

Send ^a works. Send {Control a} is nonsense as there is no key called "Control a" nor is there some key state for "a" to define what to do with "Control". You could do Send {Ctrl down}a{Ctrl up} to say hold down Ctrl for now, then press a at the same time, then release Control afterwards. You can use Send {Ctrl down} and Send {Ctrl up} in different lines, and take an action between those lines, such as doing Click to make a Control+Click or Sleep 3000 to hold Control down for 3 seconds, such as in a game if you use Ctrl for a "charge key" or something.
ccmancio
Posts: 3
Joined: 04 Sep 2017, 09:18

Re: Control+A (Selection All) don't select text

05 Sep 2017, 06:46

thanks for explanetion Exaskryz.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mankvl, OrangeCat, pgeugene, sanmaodo, zerox and 306 guests