Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Poker Bot - 2014/9/7
- ; snowflake
- #NoEnv
- #singleInstance, Force
- #MaxThreads, 100
- #MaxThreadsPerHotkey, 2
- #Persistent
- SetBatchLines, -1
- DetectHiddenWindows, On
- CoordMode, Mouse, Screen
- CoordMode, Pixel, Screen
- CoordMode, Tooltip, Screen
- SetTitleMatchMode, 2
- SetKeyDelay, 30,50
- SetMouseDelay 10
- SendMode Event
- #InstallKeybdHook
- #InstallMouseHook
- #UseHook, On
- SetWorkingDir, %A_ScriptDir%
- toggle = 0 ; Toggle
- counter = 0
- counterx = 0
- Config = Config.ini
- ^X:: ; Press CTRL + X to togle the bot on/off
- SoundBeep
- Toggle := !Toggle ; toggle loop
- While Toggle
- {
- ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, ok.png ; ok.png is the image that will be searched for.
- If ErrorLevel = 0 ; IF the image is found.
- {
- Click, %FoundX%, %FoundY% Left, 1 ; click on it.
- gosub, found ; go to label found
- }
- }
- found:
- {
- MsgBox, Ok is found. ; msgbox will show up
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment