Jump to content

Making Au3 Take Your Variable Less Literally..


Recommended Posts

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

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...