Sign in to follow this  
Followers 0
king9072

Making Au3 Take Your Variable Less Literally..

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



WinActivate ( $active )

God, it's always something soooo simple. Thanks a ton man.

Share this post


Link to post
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
Sign in to follow this  
Followers 0