Script:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
banana:=0
SetTitleMatchMode, 2
F1::
banana:=!banana
while (banana=1)
{
Controlsend,, {Enter}, ahk_class ahk_class Chrome_WidgetWin_1
Controlsend,, {Up}, ahk_class ahk_class Chrome_WidgetWin_1
Controlsend,, {Enter}, ahk_class ahk_class Chrome_WidgetWin_1
Controlsend,, {Enter}, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X2189 Y1941, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X2189 Y1941, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X2189 Y1941, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X2189 Y1941, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X3120 Y968, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X3020 Y1542, ahk_class ahk_class Chrome_WidgetWin_1
ControlClick, X654 Y1325, ahk_class ahk_class Chrome_WidgetWin_1
Controlsend,, {T}, ahk_class ahk_class Chrome_WidgetWin_1
SetControlDelay 1
}
return
f7::ExitApp
Just to make sure, it should always begin with "Controlsend,, {Enter}, ahk_class ahk_class Chrome_WidgetWin_1" and not "Controlsend,, {Up}, ahk_class ahk_class Chrome_WidgetWin_1" or lower. It should exactly go in order.
Could someone help me?