Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #NoEnv
  2. #SingleInstance force
  3. BBs := 50 ;How many BBs to buy in for
  4.  
  5. WinGet, pid, PID, Full Tilt Poker
  6. WinGet, id, list, ahk_pid%pid%, , Full Tilt Poker
  7. SetTitleMatchMode, 2
  8. If (pid)
  9. {
  10. ;MsgBox, % "Found Lobby"
  11. }
  12. Else
  13. {
  14. MsgBox, % "Oops, FTP isn't open."
  15. Exit
  16. }
  17. Loop
  18. {
  19. WinWait, Get Chips ahk_pid%pid% ahk_class #32770
  20. WinGet, id, ID
  21.  
  22. ControlSetText, FTCMarkupText12,,ahk_class #32770 ahk_id %ID%
  23. ControlSetText, Button2,,ahk_class #32770 ahk_id %ID%
  24. ControlClick, Button3, ahk_class #32770 ahk_id %ID%
  25. ControlGetText, BuyStr, FTCMarkupText2, ahk_class #32770 ahk_id %ID%
  26. StringGetPos, pos, BuyStr, /
  27. pos += 1
  28. StringTrimLeft, MinBuy, BuyStr, %pos%
  29. BuyStr := Minbuy
  30. StringGetPos, pos, BuyStr, $
  31. pos += 1
  32. StringTrimLeft, MinBuy, BuyStr, %pos%
  33. buyin = 1
  34. buyin *= BBs * MinBuy
  35. ControlSetText, Edit1, %buyin%, ahk_class #32770 ahk_id %ID%
  36. ControlSend, FTCSkinButton1, {space}, ahk_class #32770 ahk_id %ID%
  37. }
Add Comment
Please, Sign In to add comment