Jump to content

how can i state a current window as a variable?


Recommended Posts

I don't quite understand what you're asking, maybe this might help

$var1 = WinGetTitle("");returns active window title
If Not StringInStr($var1, 'notepad') Then Exit;active window is not notepad, exit

Or to put it in one line

If Not StringInStr(WinGetTitle(""), 'notepad') Then Exit

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Link to comment
Share on other sites

well im trying to make an everquest log maker

so i can leave the trader up all night and it will record the time and what sold an what time

but im in a little IF trouble you both seemed to have the right answer but i don't know.

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