Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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.
- Gui,+AlwaysOnTop
- Gui, Show , w200 h210,
- GUI, Add, Button, x20 y25 w104 h25 , Yes
- GUI, Add, Button, x20 y50 w104 h25 , Disconnect
- GUI, Add, Button, x20 y75 w104 h25 , Parked
- GUI, Add, Button, x20 y100 w104 h25 , wrongsite
- return
- ButtonYes:
- WinActivate, Hybrid - Google Chrome
- Sleep 25
- Send {Tab 2}
- Send {Space}
- Send {Tab 1}
- Send {Space}
- Send {Tab 2}
- Send {Enter}
- Return
- ButtonDisconnect:
- WinActivate, Hybrid - Google Chrome
- Sleep 25
- Send {Tab 2}
- Send {Down 1}
- Send {Tab 1}
- Send {Down 3}
- Send {Tab 2}
- Send {Enter}
- Return
- ButtonParked:
- Sleep 25
- Send {Tab 2}
- Send {Down 2}
- Send {Tab 1}
- Send {Down 1}
- Send {Tab 2}
- Return
- Buttonwrongsite:
- WinActivate, Hybrid - Google Chrome
- Sleep 25
- Send {Tab 2}
- Send {Space}
- Send {Tab 1}
- Send {Down 1}
- Send {Space}
- Send {Tab 2}
- Send {Enter}
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement