Post by fwlr » 07 Dec 2021, 17:38
Заработало с такими письменами:
Code: Select all
XButton1::
IfWinExist, ahk_pid ***
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 50
Send, {LButton down}
Sleep, 10
Send, {LButton up}
IfWinExist, ahk_pid ***
{
WinActivate, ahk_pid ***
WinWaitActive, ahk_pid ***, 0.5
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 10
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 300
Send, {LButton down}
Sleep, 10
Send, {LButton up}
}
IfWinExist, ahk_pid ***
{
WinActivate, ahk_pid ***
WinWaitActive, ahk_pid ***, 0.5
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 100
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 300
Send, {LButton down}
Sleep, 10
Send, {LButton up}
}
Return
[Mod edit: [code][/code] tags added.]
Появилась другая проблема - не в каждом окне кликает...буд-то не успевает, слип не помогает. То 1,3 окно нажмет, то 1,2, то ни одного. Буду очень благодарен помощи
Заработало с такими письменами:
[code]XButton1::
IfWinExist, ahk_pid ***
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 50
Send, {LButton down}
Sleep, 10
Send, {LButton up}
IfWinExist, ahk_pid ***
{
WinActivate, ahk_pid ***
WinWaitActive, ahk_pid ***, 0.5
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 10
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 300
Send, {LButton down}
Sleep, 10
Send, {LButton up}
}
IfWinExist, ahk_pid ***
{
WinActivate, ahk_pid ***
WinWaitActive, ahk_pid ***, 0.5
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 100
Send, {LButton down}
Sleep, 10
Send, {LButton up}
Sleep, 300
Send, {LButton down}
Sleep, 10
Send, {LButton up}
}
Return[/code][color=#FF0040][size=75][Mod edit: [kbd][code][/code][/kbd] tags added.][/size][/color]
Появилась другая проблема - не в каждом окне кликает...буд-то не успевает, слип не помогает. То 1,3 окно нажмет, то 1,2, то ни одного. Буду очень благодарен помощи