Jump to content

Controlsend firefox refresh


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...