python44 0 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. Share this post Link to post Share on other sites
kaotkbliss 146 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 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
python44 0 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 Share this post Link to post Share on other sites
AdmiralAlkex 125 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 Share this post Link to post Share on other sites
python44 0 Posted July 30, 2010 You wrote "pw1", not $pw1<-- slaps forhead *need some coffee now*Well, i did recompile and got it to workThanks!! Share this post Link to post Share on other sites