Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; HEY YOU! READ THIS: The current key to edit the script is `.
- ; Edit this on the last line of the script, at the very beginning.
- ; Paste this PasteBin into a new NotePad file with the .ahk suffix.
- ; Launch AutoHotKey. It should be sent to the tray in the bottom right of your window.
- ; Right click AutoHotKey and click Open, then launch the newly made .ahk you created with this script.
- ; You should be done! Remember to set the macro binding to the key you want, otherwise it's `.
- ; That key is associated with tilde on normal QWERTY keyboards, below the ESC and above the TAB keys.
- SetWorkingDir %A_ScriptDir%; Ensures a consistent starting directory.
- DetectHiddenWindows, On
- Script_Hwnd := WinExist("ahk_class AutoHotkey ahk_pid " DllCall("GetCurrentProcessId"))
- DetectHiddenWindows, Off
- DllCall("RegisterShellHookWindow", "uint", Script_Hwnd)
- OnMessage(DllCall("RegisterWindowMessage", "str", "SHELLHOOK"), "ShellEvent")
- ShellEvent(wParam, lParam) {
- if (wParam = 0x8006) HSHELL_FLASH
- {
- WinGet,descobre,ProcessName, ahk_id %lParam%
- if(descobre = "Wakfu.exe")
- WinActivate, ahk_id %lParam%
- }
- }
- GroupAdd, Wakfu, ahk_class SunAwtFrame
- `::GroupActivate, Wakfu, r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement