krzyrice Posted August 7, 2009 Share Posted August 7, 2009 Controlsend("Mozilla Firefox", "", "MozillaWindowClass5", "{F5}") Controlsend("Mozilla Firefox", "", "MozillaWindowClass5", "{ENTER}") Pretty much i just want to press f5 and then enter in firefox while i am playing a game in windowed mode. now firefox will be maximized in the background. when i run this script, not only does it not press enter but when it presses f5, it changes firefox to active window. how can i change this so that it does press enter and that my game stays the active window? Link to comment Share on other sites More sharing options...
krzyrice Posted August 8, 2009 Author Share Posted August 8, 2009 cant any1 help me Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 8, 2009 Share Posted August 8, 2009 Try this, put some Sleep between the two ControlSends, perhaps the Enter is being sent but not 'doing what its supposed to' because the page hasn't finished re-loading. For the focus thing, I don't know how to keep focus to a window, maybe the game needs to be 're-focused', try with WinActivate. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now