seres Posted November 2, 2007 Share Posted November 2, 2007 hello, is there a form to make a window always active, the thing is that i have 2 monitors one for my child so he can play (with controler) and the other for me, but when i click on mine the game got paused cause the window is not active. Link to comment Share on other sites More sharing options...
koresho Posted November 2, 2007 Share Posted November 2, 2007 (edited) Do WinActivate("SomeGameTitle") Sleep(100);To keep CPU Usage down Until WinExists("SomeGameTitle") = 0 get the game title using AU3Info Edited November 2, 2007 by koresho Link to comment Share on other sites More sharing options...
Developers Jos Posted November 2, 2007 Developers Share Posted November 2, 2007 Do WinActivate("SomeGameTitle")Until WinExists("SomeGameTitle") = 0get the game title using AU3InfoYou want to add a sleep(50) in there to avoid the script taking too much CPU.. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zedna Posted November 2, 2007 Share Posted November 2, 2007 From AutoIt beta changelog:3.2.9.1 (18th September, 2007) (Beta)- Added: SendKeepActive(). Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
koresho Posted November 2, 2007 Share Posted November 2, 2007 heh jos, I thought of that as soon as i posted, edited, and then saw your post hmmm lemme take a look at that changelog... Link to comment Share on other sites More sharing options...
seres Posted November 3, 2007 Author Share Posted November 3, 2007 thanks for the help. i see that the code is cycling like when u put while sleep(100) whend but cause its do in it. it repeats its self am i right? 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