Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


minimize/hide a window in 8.1 is different

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 292

PostPosted: Tue Apr 01, 2014 11:51 am    Post subject: minimize/hide a window in 8.1 is different Reply with quote

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 Cool it does NOT!!!!!

Any ideas about?



Thanks
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Apr 01, 2014 2:16 pm    Post subject: Reply with quote

You are probably best off asking for support on the AutoHotKey forum if something works on one OS and not another. It may be a bug with their code then.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 292

PostPosted: Tue Apr 01, 2014 4:16 pm    Post subject: Reply with quote

atom0s wrote:
You are probably best off asking for support on the AutoHotKey forum if something works on one OS and not another. It may be a bug with their code then.

Oh Yes!!
Maybe a bug in autohotkey, now I try to re-write this little piece in Visual c++.
Thanks for suggestion.
Bye Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites