Sign in to follow this  
Followers 0
python44

title special definition question

5 posts in this topic

I have a question about title special definitions

say I have this line

winactivate ( "[x:1 ; y:0]")

But what I really want is

winactivate ( "[x:array[0] ; y:array[1]]")

but i can't seem to get this context to work with any variables/arrays except as in the first example above.

Is it possible to declare the special definition with a variable? Thanks in advance for any help.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

if your window title is x:# ; y:# and you want to pull the # from an array that is stored in say $array then you would put:

winactivate ( "[x:"&$array[0]&" ; y:"&$array[1]&"]")

Edited by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

if your window title is x:# ; y:# and you want to pull the # from an array that is stored in say $array then you would put:

winactivate ( "[x:"&$array[0]&" ; y:"&$array[1]&"]")

Thanks for the help! Ok, I tried it but get a similar compiler error:

C:\Program Files (x86)\AutoIt3\SciTE\myscript.au3(43,40) : ERROR: syntax error

winactivate ( "[x:"&$pw1[0]&" ; y:"&pw1[

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

where $pw1[0] is the array. Did I do something wrong?

Edit: THe window title is not technically x:... I am using a special definition to grab the window located at x,y using special title definitions. If you knew that already I was just making sure I said it right..

Edited by python44

Share this post


Link to post
Share on other sites

You wrote "pw1", not $pw1

<-- slaps forhead *need some coffee now*

Well, i did recompile and got it to work

Thanks!!

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