Hi,
I read more about the use of windows ^c shortcut with Autohotkey.
all the following methods are not working properly:
1-
Send ^c
2-
SetKeyDelay, 40 ;Any number you want (milliseconds)
SendEvent {Clrtl Down}c{Ctrl Up}; Also I get the same unstable issue with SendPlay and SendInput
So the best way is to work directly with the text field. I developed a very nice example below
/*As Send ^c is not accurate at all. I edited the file C:\Program Files\AutoHotkey\SciTE\tools\ActiveWindowInfo.ahk and I collected this nice info.
Perhaps this was caused by hiperthreading
I noticed that in case of unstable ^c , the Windows LogOff and LogOn helped to temporary solve the issue
Also, changing Send to SenEvent or SendPlay didn't help for the same issue ,and even if we slowed down the writing speed!
The best way is to collect the data from the working ClassNN
1- Edit this program using SciTE4AutoHotkey
2- Press F1 to open the AHK Help file where we want to try our tool
3- Run the program
Title : AutoHotkey Help
ClassNN : Edit1
Used commands:
ControlGetText, OutputVar [, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlSetText [, Control, NewText, WinTitle, WinText, ExcludeTitle, ExcludeText]
*/
^!z:: ; press Control + ALt + z to run the program
{
ControlGetText, CText, Edit1, AutoHotkey Help ;Copy The Content of Edit1 (ClassNN SearchBox) of AHK Help to new Variable Named CText
MsgBox, 64, Text Copy, Edit1: %CText% ;Display the copied content to the user
MsgBox, 64, Info, Search Text Will be set to ControlSetText ;Display Info To The User
ControlSetText , Edit1, ControlSetText, AutoHotkey Help ;Set The Content of Edit1 (ClassNN SearchBox) of AHK Help using "ControlSetText"
ControlGetText, CText, Edit1, AutoHotkey Help ;verify the new Content of Edit1 (ClassNN SearchBox) at AHK Help to new Variable Named CText
MsgBox, 64, Text Copy, New Edit1: %CText% ;Display the copied content to the user
}