Snow_Flake

PokerBot

Sep 7th, 2014
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Poker Bot - 2014/9/7
  2. ; snowflake
  3.  
  4. #NoEnv
  5. #singleInstance, Force
  6. #MaxThreads, 100
  7. #MaxThreadsPerHotkey, 2
  8. #Persistent
  9. SetBatchLines, -1
  10. DetectHiddenWindows, On
  11. CoordMode, Mouse, Screen
  12. CoordMode, Pixel, Screen
  13. CoordMode, Tooltip, Screen
  14. SetTitleMatchMode, 2
  15. SetKeyDelay, 30,50
  16. SetMouseDelay 10
  17. SendMode Event
  18. #InstallKeybdHook
  19. #InstallMouseHook
  20. #UseHook, On
  21. SetWorkingDir, %A_ScriptDir%
  22. toggle = 0 ; Toggle
  23. counter = 0
  24. counterx = 0
  25. Config = Config.ini
  26.  
  27.  
  28. ^X:: ; Press CTRL + X to togle the bot on/off
  29. SoundBeep
  30. Toggle := !Toggle ; toggle loop
  31. While Toggle
  32. {
  33. ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, ok.png ; ok.png is the image that will be searched for.
  34. If ErrorLevel = 0   ; IF the image is found.
  35. {
  36. Click, %FoundX%, %FoundY% Left, 1 ; click on it.
  37. gosub, found ; go to label found
  38. }
  39. }
  40.  
  41.  
  42. found:
  43. {
  44. MsgBox, Ok is found.    ; msgbox will show up
  45. }
  46. return
Advertisement
Add Comment
Please, Sign In to add comment