; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other ; ; 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 ^Space::GroupActivate, Dofus, r