Well, let's say I have many windows and I want to activate random ones. Those I want to activate have the " - Wnd" string.
In short
let's say i have those windows opened:
"1 - Wnd"
"2 - Wnd"
"3 - Wnd"
"Untitled - Notepad"
"Internet Explorer"
I want to active one of the first three (randomly). How could I do this?
Thanks
Now, this is really bugged
AutoItSetOption("PixelCoordMode",1)
$x = 595
$y = 417
$var = PixelGetColor($x,$y)
MsgBox(0,$var[0],$var[1])
This code gives me the same error.
When I try those functions, I get an error
Heres an example
$u = PixelSearch($xstart,$ystart,$xend,$yend,$color)
While @error = 1
$u = PixelSearch($xstart,$ystart,$xend,$yend,$color)
Sleep(500)
WEnd
MouseMove($u[0],$u[1],0)
Sleep(250)
MouseClick("left")
Sleep(2500)
ERROR
Line 0:
MouseMove($u[0],$u[1],0)
MouseMove($u^ERROR
Error: Subscript used with non-Array variable.
Why?