Sign in to follow this  
Followers 0
erix

Variable with operators

2 posts in this topic

Hello

When the example is run in the Beta 3.2.1.12 (Win XP SP2 French) there is a Syntax Error :

Opt("WinTitleMatchMode", 2)

WinActivate("txt") or WinActivate("TXT")

It is really necessary to have a variable for this type of operation.

Thank you.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

It is really necessary to have a variable for this type of operation.

yes, because you are using the or operator, so an assignment of the

outcome is necessary. However, you are using it in a totally wrong way.

What you want to do is this.

Opt("WinTitleMatchMode", 2)

$errorcode = WinActivate("txt")
# check error code HERE !

$errorcode = WinActivate("TXT")
# check error code HERE !

Cheers

Kurt

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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