danrevella Master Cheater
Reputation: 2
Joined: 11 Jun 2008 Posts: 292
|
Posted: Tue Apr 01, 2014 11:51 am Post subject: minimize/hide a window in 8.1 is different |
|
|
Hi!!
I have this simple script I use for minimizing or hiding a game who only works in full screen mode:
It is an autohotkey script....
| Code: |
LControl::
Suspend, Permit
if first_time_lctrl=0
{
WinHide,ahk_id %hwnd_game%
SW_FORCEMINIMIZE=11
hWnd=%hwnd_game%
DllCall("SetForegroundWindow", "UInt", hWnd, "int",SW_FORCEMINIMIZE)
;WinMinimize,ahk_id %hwnd_game% (this not always works...)
first_time_lctrl=1
return
}
if first_time_lctrl=1
{
WinShow,ahk_id %hwnd_game%
WinMaximize,ahk_id %hwnd_game%
first_time_lctrl=2
return
}
if first_time_lctrl=2
{
WinShow,ahk_id %hwnd_game%
WinRestore,ahk_id %hwnd_game%
first_time_lctrl=0
return
}
|
Inside a game who does not let use alt-tab, this hide, minime and maximize the game, so I may able to use other applications.
Under xp, vista, seven (both 32 and 64) it works 99,99%.
But under windows 8.1 (not try win it does NOT!!!!!
Any ideas about?
Thanks
|
|