So I've made a simple script I believed wouldn't be a problem. But it is. Here is the one:
Code: Select all
^o::
Sleep, 100
Loop,
{
Send, {9}
Sleep, 200
}
Return
But the following one works well.
Code: Select all
$q::9
return
Code: Select all
^o::
Sleep, 100
Loop,
{
Send, {9}
Sleep, 200
}
Return
Code: Select all
$q::9
return
I did. It works in Notepad and Mozilla.mikeyww wrote: ↑01 Jul 2022, 11:46I've not seen LClick as a key name, but I know about LButton. https://www.autohotkey.com/docs/KeyList.htm#mouse-general
Test your script in Notepad first. viewtopic.php?f=7&t=11084
Code: Select all
^RButton::MButton
Code: Select all
^o::
SetKeyDelay, -1
Sleep, 100
Loop,
{
Send {Blind}{9 DownR}
Sleep, 20
Send {Blind}{9 up}
Sleep, 200
Click
Sleep, 500
}
Return
PressDuration
Certain games and other specialized applications may require a delay inside each keystroke; that is, after the press of the key but before its release.
Use -1 for no delay at all (default) and 0 for the smallest possible delay (however, if the Play parameter is present, both 0 and -1 produce no delay). Omit this parameter to leave the current PressDuration unchanged.
Code: Select all
SetKeyDelay, 10, 50
^o::
Sleep, 100
Loop,
{
Send, 9
Sleep, 200
}
Return
But that one does, I guess. Need to check abit more.Xtra wrote: ↑02 Jul 2022, 01:45Code: Select all
SetKeyDelay, 10, 50 ^o:: Sleep, 100 Loop, { Send, 9 Sleep, 200 } Return
Descolada wrote: ↑01 Jul 2022, 13:58TryCode: Select all
^o:: SetKeyDelay, -1 Sleep, 100 Loop, { Send {Blind}{9 DownR} Sleep, 20 Send {Blind}{9 up} Sleep, 200 Click Sleep, 500 } Return
You can see this by clicking "Click" in the code box.Remarks
The Click command is generally preferred over MouseClick because it automatically compensates if the user has swapped the left and right mouse buttons via the system's control panel.