metalstorm Posted August 18, 2008 Share Posted August 18, 2008 Is it possible (if so how) to run the same script (or the same script with a different name) for 2 clients with the same .exe and window title name that are running at the same time... i know that prob sounded all messy, but heres a kinda basic 'picture' Script 1 -------> name.exe Script 2 -------> name.exe i was thinking would it be possible to set the active window based on the file .exe then just have: Winactive( "name1.exe" ) Sleep (5000) ;To give time for it to wish to the program ..... code Winactive( "name2.exe" ) Sleep (5000) ..... code i hope that made sence Link to comment Share on other sites More sharing options...
metalstorm Posted August 18, 2008 Author Share Posted August 18, 2008 bump - need an answer quick :S Link to comment Share on other sites More sharing options...
metalstorm Posted August 18, 2008 Author Share Posted August 18, 2008 wish = switch Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 18, 2008 Moderators Share Posted August 18, 2008 http://www.autoitscript.com/forum/index.ph...st&p=529666http://www.autoitscript.com/forum/index.ph...st&p=485422http://www.autoitscript.com/forum/index.ph...st&p=443303http://www.autoitscript.com/forum/index.ph...st&p=450311http://www.autoitscript.com/forum/index.ph...st&p=451665http://www.autoitscript.com/forum/index.ph...st&p=491638http://www.autoitscript.com/forum/index.ph...st&p=517041http://www.autoitscript.com/forum/index.ph...st&p=544854http://www.autoitscript.com/forum/index.ph...st&p=558562Sure you could code something like that. You'd have to use something like _WinGetByProcess() ... enum all the windows, go through the processes PID by ProcessExists and match the WinGetProcess PID with the ProcessExists PID.You'll see more responses when you've actually tried something. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
metalstorm Posted August 18, 2008 Author Share Posted August 18, 2008 ...cant try it if i dont know what its called (to search for it) or write some code if i dont have any clue to begin with 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