Sign in to follow this  
Followers 0
Raluvian

how can i state a current window as a variable?

5 posts in this topic

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!

:)

Share this post


Link to post
Share on other sites



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())

Share this post


Link to post
Share on other sites

well the wingettitle("put name of window here?")

or am i just stupid?

:)

Share this post


Link to post
Share on other sites

maybe this will do the trick

If ProcessExists("notepad.exe") Then
    MsgBox(0, "Example", "Notepad is running.")
EndIf

8)


NEWHeader1.png

Share this post


Link to post
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.

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