Post a reply Post a new topic Previous topic | Next topic      Page 1 of 1   
Author Message
User avatar
Community Veteran


Joined: 03 08, 2011 /06:39

Posts: 2829

Location: United States
 Post subject: Alt + Tab / AHK Issue
PostPosted: 11 10, 2012 /08:08 

Hey forum goers,

I am experiencing issues since strictly after playing the Alpha with Crysis 2.

1. When I "Alt+Tab" Crysis 2 now goes to minimized mode instead of minimizing the program to the next one in the queue. "Alt+Escape" does the same. I then need to go re-enable full screen. Kind of annoying.

2. My 2 .ahk scripts bound to left and right arrow no longer work. I didn't change them or my autoexec.cfg, they just don't work anymore. Here's an example

Quote:
*Left::
{
send {~}
sleep 500
send r_ssao 0
send {enter}
send r_postmsaa 0
send {enter}
send r_colorgrading 0
send {enter}
send e_shadows 0
send {enter}
send r_shadowjittering 0
send {enter}
}
return


EDIT: The script issue was fixed by uninstalling Crysis 3 Alpha.


   

User avatar

Joined: 06 11, 2010 /04:11

Posts: 850

Location: Germany
 Post subject: Re: Alt + Tab / AHK Issue
PostPosted: 11 10, 2012 /09:52 

I would suggest you to use "SendInput", rather than Send

oh, and btw.: Please remove your brackets "{" and "}" from the code - you don't use them where AHK would expect them. They are useless at your position.


   

User avatar

Joined: 03 23, 2011 /11:32

Posts: 1498

Location:
 Post subject: Re: Alt + Tab / AHK Issue
PostPosted: 11 11, 2012 /01:34 

Yes. you should use SendInput. And if you want to send actions to a specific aplication or only if an application is open then you could check for it with 'IfWinActive/IfWinNotActive'. For crysis 2 it would be:
Code:
WinWait, ahk_class CryENGINE,
IfWinNotActive, ahk_class CryENGINE, , WinActivate, ahk_class CryENGINE,
WinWaitActive, ahk_class CryENGINE,


   

  Previous topic | Next topic      Page 1 of 1   
Display posts from previous:  Sort by  


Jump to: