here is a simple function that will test and make sure that the mouse is in the right spot, give you the cords of that spot, give you the color and then put the color into the clipboard so you can paste it into the code.
i have it getting the window cords because then the window can be anywhere on the screen and it was easier for me to do it that way :P
if you want to move the cords just change the $x and the $y.
sorry if this is to late and im just making spam
Func test()
If Not WinActive($mainwindow) Then WinActivate($mainwindow)
Sleep(500)
Global $x = 940
Global $y = 710
$cords = WinGetClientSize($mainwindow)
$x = $cords[0] - $x
$y = $cords[1] - $y
$testx = $x
$testy = $y
MsgBox(1, PixelGetColor($testx, $testy), "X: " & $testx & " Y: " & $testy)
If Not WinActive($mainwindow) Then WinActivate($mainwindow)
MouseMove($testx, $testy, 1)
ClipPut(PixelGetColor($testx, $testy))
EndFunc
[Hilfe]Autoit 08/17/2010 - AutoIt - 2 Replies hi ich habe ein problem mit mein programm gut euch es selber an :P
das gelbe will net -.-
das grüne geht^^
Global $Title = "Metin"
Global $Ini = @ScriptDir & "\game.ini"
Global $RankUpTime = 60 ;secoudns
AUTOIT Hilfe 03/04/2010 - AutoIt - 3 Replies Gelöscht thx für hilfe
für alle die es Nicht wussten :
ShellExecute ("Link")
mfg chiss
AutoIT hilfe 09/08/2008 - Metin2 - 5 Replies hey....ich hab zwar ahnung von c++ aber nicht von AutoIT =)
vllt kann mir doch einer helfen...und zwar wollte ich ein skript machen welches nur die maus bewegt und danach auf diesen punkt klickt
zuerst ein klick auf die koordinaten: 440,548 nach 10 min auf die koordinaten 600,330 und das soll er ständig wiederholen bis ich eine taste drücke zum beenden ( natürlich sollte auch eine starttaste da sein)
kann da wer helfen?!
danke schonmal