king9072 Posted April 29, 2004 Share Posted April 29, 2004 Alright heres wat happens in my script.. sleep (30000) $active = WinGetTitle("") then some junk is run, in a different window.... this is taking away the "active" status of the window I was on BEFORE the sleep time ran out.... - Now AI leaves it at the window it was just working in..... - WinActivate ( "$active" ) Of course the problem here is that it is trying to activate a window named "$active" ... which of course there isnt any... but I remember along time ago some how u can make it so the variable is taken less literally... as well... a variable, and not as the exact text of "$active" So can someone please tell me wat I need to add to the code for it to not take it as the literal test of "$active" and rather as wat the variable itself is. Thx in advance. Link to comment Share on other sites More sharing options...
CyberSlug Posted April 29, 2004 Share Posted April 29, 2004 (edited) Remove the quotes WinActivate($active)Edit: Dang, Mr. Clean beat me. I got distracted by webpage I had in another tab. Edited April 29, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
king9072 Posted April 29, 2004 Author Share Posted April 29, 2004 WinActivate ( $active )God, it's always something soooo simple. Thanks a ton man. 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