Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; AutoHotkey Version: 1.x
- ; Language: English
- ; Platform: Win9x/NT
- ; Author: A.N.Other <myemail@nowhere.com>
- ;
- ; Script Function:
- ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
- ;
- 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 = "DofusMod.exe")
- WinActivate, ahk_id %lParam%
- }
- }
- GroupAdd, Dofus, ahk_class ApolloRuntimeContentWindow
- Tab::GroupActivate, Dofus, r
- F2:: WinActivate, Tossit
- F3:: WinActivate, Pheory
- F4:: WinActivate, Reckon
- F5:: WinActivate, Sahira
- ^Backspace::Suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement