Advertisement
Guest User

Dota 2 Reborn Auto Accept Script

a guest
Jan 22nd, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  2. ;@ Author: @Ler_GG
  3. ;@ Release Date: 22.01.2016
  4. ;@ Purpose: Automatically accepts game invites
  5. ;@ on the Reborn Dota 2 Client.
  6. ;@ Usage: - F5 to start auto accept.
  7. ;@ - F6 to pause the script.
  8. ;@ - F7 to exit the script.
  9. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  10. ;-------------------------------------------------
  11.  
  12. ;-------------------------------------------
  13. ; @@@@@@@ VARIABLES @@@@@@@@@@@@@@@@@@@@@@@@
  14. ;-------------------------------------------
  15. $hWnd = WinGetHandle("Dota 2")
  16.  
  17. ;-------------------------------------------
  18. ; @@@@@@@ HOTKEYS @@@@@@@@@@@@@@@@@@@@@@@@
  19. ;-------------------------------------------
  20. HotKeySet("{F5}", "_main")
  21. HotKeySet("{F6}", "_pause")
  22. HotKeySet("{F7}", "_exit")
  23.  
  24. ;-------------------------------------------
  25. ; @@@@@@@ MAIN @@@@@@@@@@@@@@@@@@@@@@@@
  26. ;-------------------------------------------
  27. TrayTip("", "Auto accept Script started", 1)
  28. _pause()
  29.  
  30. ; ----------------------------------------------------------------------------
  31. ; @Function: _main()
  32. ; ----------------------------------------------------------------------------
  33. Func _main()
  34. _loopEnter()
  35. EndFunc ;==> _main()
  36.  
  37. ; ----------------------------------------------------------------------------
  38. ; @Function: _pause()
  39. ; ----------------------------------------------------------------------------
  40. Func _pause()
  41. Tooltip("")
  42. While 1
  43. Sleep(1000)
  44. WEnd
  45. EndFunc ;==> _pause
  46.  
  47. ; ----------------------------------------------------------------------------
  48. ; @Function: _loopEnter()
  49. ; ----------------------------------------------------------------------------
  50. Func _loopEnter()
  51. ToolTip("Auto accept activated", 0, 0)
  52. WinActivate($hWnd)
  53. While 1
  54. ControlSend("", "", $hWnd, "{ENTER}")
  55. Sleep(1000)
  56. Wend
  57. EndFunc ;==> _loopEnter
  58.  
  59. ; ----------------------------------------------------------------------------
  60. ; @Function: _exit()
  61. ; ----------------------------------------------------------------------------
  62. Func _exit()
  63. Exit
  64. EndFunc ;==> _exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement