Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. If WinExists(@ScriptName) Then Exit
  2. AutoItWinSetTitle(@ScriptName)
  3.  
  4. Global $Paused
  5. HotKeySet("{F4}", "TogglePause")
  6. HotKeySet("{F3}", "Terminate")
  7.  
  8. if WinExists ( "Mortal Lockpick" , "" ) then
  9. WinActivate( "Mortal Lockpick", "" )
  10. elseif WinExists ( "MortalGame", "" ) then
  11. WinSetTitle ( "MortalGame","", "Mortal Lockpick" )
  12. WinActivate( "Mortal Lockpick", "" )
  13. else
  14. MsgBox(0, "ERROR", "No MO window found")
  15. endif
  16.  
  17. TogglePause()
  18. Lockpick()
  19.  
  20. Func Lockpick()
  21. While 1
  22. Sleep(10)
  23. $acoord = PixelSearch(1160, 646, 1445, 646, 0xEA6D6C, 1)
  24. If Not @error Then
  25. Sleep(10)
  26. MouseClick("Left")
  27. Sleep(10)
  28. TogglePause()
  29. Else
  30. Sleep(10)
  31. EndIf
  32. WEnd
  33. EndFunc
  34.  
  35. Func TogglePause()
  36. $Paused = NOT $Paused
  37. ToolTip("Script is Paused",0,0)
  38. While $Paused
  39. Sleep(100)
  40. WEnd
  41. ToolTip("")
  42. EndFunc
  43.  
  44. Func Terminate()
  45. WinSetTitle ( "Mortal Lockpick","", "MortalGame" )
  46. Exit 0
  47. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement