Register for your free account! | Forgot your password?

You last visited: Today at 06:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



autoit hilfe

Discussion on autoit hilfe within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
[PixeL]'s Avatar
 
elite*gold: 1700
Join Date: Jul 2008
Posts: 2,939
Received Thanks: 1,114
autoit hilfe

HotKeySet ( "{F9}" , "Start" )
HotKeySet ( "{F10}" , "stop" )

while 1
sleep (100)
WEnd

Func Start ()
While 1
$Pixel = PixelGetColor ( 154,56 )
If $Pixel = 0x090909 Then
Send ( " 4 " )
mousemove ( 123, 522 )
EndIf
WEnd
EndFunc



Func stop ()
exit 0
EndFunc






was ist hirdran falsch ??? wen ich f9 drücke passirt nix
[PixeL] is offline  
Old 08/01/2008, 13:47   #2
 
elite*gold: 0
Join Date: Nov 2007
Posts: 439
Received Thanks: 75
soweit ich weiss gibt pixelgetcolor(a,b) dir kein hexwert zurück.

Code:
HotKeySet( "{F9}", "Start" )
HotKeySet( "{F10}", "stop" )

while 1
  sleep(100)
WEnd

Func Start()
  While 1
    $Pixel = PixelGetColor( 154,56 )
    [COLOR="Red"]If $Pixel = dec('0x090909') Then[/COLOR]
      Send ( " 4 " )
      mousemove(123, 522)
    EndIf
  WEnd
EndFunc



Func stop()
  Exit
EndFunc
wadimwadim is offline  
Old 08/01/2008, 14:28   #3
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,753
Received Thanks: 443
Quote:
was ist hirdran falsch ??? wen ich f9 drücke passirt nix
pixel wird nicht die farbe haben

versuch mal mit pixelsearch

rückgabe ist egal, au3 rechnets selber um

if 0xffffff = 376926741 then msgbox(0,"a","b")

klappt zb
Azunai is offline  
Thanks
1 User
Old 08/01/2008, 14:51   #4
 
kl00's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 138
Received Thanks: 26
wie geht pixelsearch
kl00 is offline  
Old 08/01/2008, 14:58   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 439
Received Thanks: 75
au3 hilfedatei ist die lösung
wadimwadim is offline  
Old 08/02/2008, 14:50   #6
 
elite*gold: 0
Join Date: Oct 2007
Posts: 48
Received Thanks: 5
im not sure if this is going to help you but...

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


-Zephino
Zephino is offline  
Reply


Similar Threads Similar Threads
[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



All times are GMT +1. The time now is 06:07.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.