Advertisement
Guest User

AHK Client Wakfu Sifter

a guest
Oct 18th, 2014
1,328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ; HEY YOU! READ THIS: The current key to edit the script is `.
  2. ; Edit this on the last line of the script, at the very beginning.
  3. ; Paste this PasteBin into a new NotePad file with the .ahk suffix.
  4. ; Launch AutoHotKey. It should be sent to the tray in the bottom right of your window.
  5. ; Right click AutoHotKey and click Open, then launch the newly made .ahk you created with this script.
  6. ; You should be done! Remember to set the macro binding to the key you want, otherwise it's `.
  7. ; That key is associated with tilde on normal QWERTY keyboards, below the ESC and above the TAB keys.
  8.  
  9. SetWorkingDir %A_ScriptDir%; Ensures a consistent starting directory.
  10. DetectHiddenWindows, On
  11. Script_Hwnd := WinExist("ahk_class AutoHotkey ahk_pid " DllCall("GetCurrentProcessId"))
  12. DetectHiddenWindows, Off
  13. DllCall("RegisterShellHookWindow", "uint", Script_Hwnd)
  14. OnMessage(DllCall("RegisterWindowMessage", "str", "SHELLHOOK"), "ShellEvent")
  15. ShellEvent(wParam, lParam) {
  16. if (wParam = 0x8006) HSHELL_FLASH
  17. {
  18. WinGet,descobre,ProcessName, ahk_id %lParam%
  19. if(descobre = "Wakfu.exe")
  20. WinActivate, ahk_id %lParam%
  21.  
  22. }
  23. }
  24. GroupAdd, Wakfu, ahk_class SunAwtFrame
  25. `::GroupActivate, Wakfu, r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement