Advertisement
Kakarot1995

dofus script

Dec 11th, 2019
1,745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ;This section makes the flashing dofus window come to front, dont touch this without knowing what you are doing
  2. DetectHiddenWindows, On
  3. Script_Hwnd := WinExist("ahk_class AutoHotkey ahk_pid " DllCall("GetCurrentProcessId"))
  4. DetectHiddenWindows, Off
  5. DllCall("RegisterShellHookWindow", "uint", Script_Hwnd)
  6. OnMessage(DllCall("RegisterWindowMessage", "str", "SHELLHOOK"), "ShellEvent")
  7. ShellEvent(wParam, lParam) {
  8. if (wParam = 0x8006) HSHELL_FLASH
  9. {
  10. WinGet,descobre,ProcessName, ahk_id %lParam%
  11. if(descobre = "Dofus.exe")
  12. WinActivate, ahk_id %lParam%
  13.  
  14. }
  15. }
  16.  
  17. ;This section lets you switch windows with function keys, can be edited to match your character names
  18.  
  19. #IfWinExist, Tocapilotes
  20. {
  21. F1::WinActivate Tocapilotes
  22. }
  23.  
  24. #IfWinExist, Wondergirl
  25. {
  26. F2::WinActivate Wondergirl
  27. }
  28. #IfWinExist, Avia
  29. {
  30. F2::WinActivate Avia
  31. }
  32.  
  33. #IfWinExist, Avi
  34. {
  35. F3::WinActivate Avi
  36. }
  37. #IfWinExist, Percose
  38. {
  39. F3::WinActivate Percose
  40. }
  41.  
  42. #IfWinExist, Xenxoalt
  43. {
  44. F4::WinActivate Xenxoalt
  45. }
  46. #IfWinExist, Xenxotrof
  47. {
  48. F5::WinActivate Xenxotrof
  49. }
  50.  
  51. #IfWinExist, Vella
  52. {
  53. F6::WinActivate Vella
  54. }
  55. #IfWinExist, Migdiada
  56. {
  57. F6::WinActivate Migdiada
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement