python44 Posted July 30, 2010 Share Posted July 30, 2010 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. Link to comment Share on other sites More sharing options...
kaotkbliss Posted July 30, 2010 Share Posted July 30, 2010 (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 July 30, 2010 by kaotkbliss 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
python44 Posted July 30, 2010 Author Share Posted July 30, 2010 (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 July 30, 2010 by python44 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 30, 2010 Share Posted July 30, 2010 You wrote "pw1", not $pw1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
python44 Posted July 30, 2010 Author Share Posted July 30, 2010 You wrote "pw1", not $pw1<-- slaps forhead *need some coffee now*Well, i did recompile and got it to workThanks!! 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