Code: Select all
^7::
Send, {ctrl}+{7}
Return
Code: Select all
^7::
Send, {ctrl}+{7}
Return
Code: Select all
^7::
Send, ^7
Return
Code: Select all
^7::
Send, ^{7}
Return
Code: Select all
$^7::Send, {Ctrl down}7{Ctrl up}
Code: Select all
^7::
SendInput, {Ctrl Down}
Sleep, 25
SendInput, {7 Down}
Sleep, 25
SendInput, {7 Up}
Sleep, 25
SendInput, {Ctrl Up}
Return
Code: Select all
$^7::Send ^7
This works, but I lose the "performance and reliability" of SendInput and the fine-grain control over the time between and each and during each keystroke. I can use "SetKeyDelay" to create global delays while using "Send", but that is global (not per event).mikeyww wrote: ↑17 Jun 2021, 22:02Along the lines of boiler's comment, here is my go at this:
But what does it accomplish?Code: Select all
$^7::Send ^7
Code: Select all
^7::
ImageSearch,,, 480, 50, 560, 100, *1 *TransBlack img\test.png
if ErrorLevel = 0
{
SendInput, {7 Down}
Sleep, 25
SendInput, {7 Up}
}
else
{
SendInput, {Ctrl Down}
Sleep, 25
SendInput, {7 Down}
Sleep, 25
SendInput, {7 Up}
Sleep, 25
SendInput, {Ctrl Up}
}
Sleep, 35
Return
Code: Select all
$^7::
SetKeyDelay, 25, 25
ImageSearch,,, 480, 50, 560, 100, *1 *TransBlack img\test.png
Send % ErrorLevel ? "^7" : "7"
Return
Code: Select all
$^7::
SendInput, {Ctrl Down}
Sleep, 78
SendInput, {7 Down}
Sleep, 25
SendInput, {7 Up}
Sleep, 37
SendInput, {Ctrl Up}
Return
Code: Select all
$^7::
KeyWait, 7
KeyWait, Ctrl
SoundBeep, 1500
SendInput {Ctrl Down}
Sleep, 78
SendInput {7 Down}
Sleep, 25
SendInput {7 Up}
Sleep, 37
SendInput {Ctrl Up}
SoundBeep, 1000
Return
Users browsing this forum: No registered users and 246 guests