Raluvian Posted July 15, 2005 Share Posted July 15, 2005 i am new so help me i need to know if a can make the notepad window as a variable so i can make it so if winexists("notepad") procede with the script else end script plz help me! Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted July 15, 2005 Share Posted July 15, 2005 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 More sharing options...
Raluvian Posted July 15, 2005 Author Share Posted July 15, 2005 well the wingettitle("put name of window here?") or am i just stupid? Link to comment Share on other sites More sharing options...
Valuater Posted July 15, 2005 Share Posted July 15, 2005 maybe this will do the trick If ProcessExists("notepad.exe") Then MsgBox(0, "Example", "Notepad is running.") EndIf 8) Link to comment Share on other sites More sharing options...
Raluvian Posted July 15, 2005 Author Share Posted July 15, 2005 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 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