Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <TrayConstants.au3>
- HotKeySet("{F3}", "ChangePaused")
- HotKeySet("{F4}", "Terminate")
- Global $botEnabled = False
- Global $isWinActive = False
- while (True)
- if $botEnabled == True Then
- If (WinGetTitle("[ACTIVE]") == "FFR The Game - FlashFlashRevolution.com - Google Chrome") Then
- If ($isWinActive == False) Then
- GeneralTraytip("Game window is focused!", 1000)
- $isWinActive = True
- EndIf
- If (Not(PixelGetColor(1252, 406) == 0x000000)) Then
- ;Sleep(50)
- Send("{LEFT}")
- ;ShowKeyEvent("KEY_DOWN")
- EndIf
- If (Not(PixelGetColor(1330, 406) == 0x000000)) Then
- ;Sleep(50)
- Send("{DOWN}")
- ;ShowKeyEvent("KEY_DOWN")
- EndIf
- If (Not(PixelGetColor(1409, 406) == 0x000000)) Then
- ;Sleep(50)
- Send("{UP}")
- ;ShowKeyEvent("KEY_UP")
- EndIf
- If (Not(PixelGetColor(1486, 406) == 0x000000)) Then
- ;Sleep(50)
- Send("{RIGHT}")
- ;ShowKeyEvent("KEY_RIGHT")
- EndIf
- Else
- $isWinActive = False
- EndIf
- EndIf
- WEnd
- Func ChangePaused()
- $botEnabled = Not $botEnabled
- TrayTip("Bot State Changed!", "Bot Enabled: " & $botEnabled, 0, $TIP_ICONASTERISK)
- Sleep(1000)
- TrayTip("clears any tray tip", "", 0)
- EndFunc
- Func Terminate()
- GeneralTraytip("Terminating bot ...", 1000)
- Exit
- EndFunc
- Func ShowKeyEvent($message)
- TrayTip("Key Event", "Sent Key: " & $message, 0, $TIP_ICONASTERISK)
- Sleep(800)
- TrayTip("clears any tray tip", "", 0)
- EndFunc
- Func GeneralTraytip($message, $showtimems)
- TrayTip("Bot Message!", $message, 0, $TIP_ICONASTERISK)
- Sleep($showtimems)
- TrayTip("clears any tray tip", "", 0)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement