Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 03:07

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

Advertisement



AutoIt-Frage(n)

Discussion on AutoIt-Frage(n) within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
KenanX's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 722
Received Thanks: 164
AutoIt-Frage(n)

Hi zusammen,
Ich hab mal ne Frage und zwar:
Ich habe mir aus langeweile mal wieder einen Angelbot gescriptet und dabei auch ein GUI-Design verwendet. In dem Gui Design ist ein Inputfeld für die Farbe der Fischblase. Jetzt wollte ich fragen wie ich das Inputfeld:
GUICtrlCreateInput("", 496, 64, 81, 26)
Hier einfüge wo die xxxxxx stehen:
If $Fish1 = xxxxxx Then

THX schonmal
KenanX is offline  
Old 10/13/2008, 21:07   #2

 
°Remus°'s Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 8,541
Received Thanks: 4,539
$input = GUICtrlCreateInput("", 496, 64, 81, 26)
$farbe = GuiCtrlRead($input)
If $Fish1 = $farbe Then

solltest dir in der hilfe datei den GuiCtrlRead befehl nochmal anschauen
°Remus° is offline  
Old 10/13/2008, 21:33   #3
 
KenanX's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 722
Received Thanks: 164
Könntest du das mal hier rein machen?? Thx
GUIDelete()
HotKeySet ( "{End}" , "Start" )
HotKeySet ( "{Escape}" , "Ende" )

Opt('PixelCoordMode', 2)
Opt('MouseCoordMode', 2)

While (1)
Sleep (1000)
Wend

Func Start ()
While (1)
Sleep (5000)
Send ( "{F1 down}" , 0 )
Sleep (500)
Send ( "{F1 up}" , 0 )
Sleep (1000)
Send ( "{F4 down}" , 0 )
Sleep (500)
Send ( "{F4 up}" , 0 )
Sleep (1000)
While (1)
$Fish1 = Pixelgetcolor ( 449, 131 )
$Fish2 = PixelgetColor ( 340, 109 )
$Fish3 = Pixelgetcolor ( 448, 133 )
$Fish4 = PixelgetColor ( 342, 108 )
$Fish5 = Pixelgetcolor ( 447, 130 )
$Fish6 = PixelgetColor ( 339, 107 )
$Fish7 = Pixelgetcolor ( 450, 134 )
$Fish8 = PixelgetColor ( 343, 110 )
$Fish9 = Pixelgetcolor ( 455, 104 )
$Fish10 = PixelgetColor ( 454, 100 )
$Fish11 = Pixelgetcolor ( 447, 132 )
$Fish12 = PixelgetColor ( 333, 104 )
$Fish13 = Pixelgetcolor ( 457, 130 )
$Fish14 = PixelgetColor ( 340, 119 )
$Fish15 = Pixelgetcolor ( 452, 100 )
If $Fish1 = xxxxxx Then
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
KenanX is offline  
Old 10/13/2008, 22:07   #4

 
°Remus°'s Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 8,541
Received Thanks: 4,539
sry, wenn ich das für dich mache lernst du es nicht, ich musste mir das auch selber beibringen und so schwierig ist das jetzt nicht, die gui einfach mit koda erstellen,
das input mit guictrlread auslesen
und dann die if abfragen starten
°Remus° is offline  
Thanks
1 User
Old 10/13/2008, 22:29   #5
 
KenanX's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 722
Received Thanks: 164
OK...np...THX trotzdem
EDIT: Habs drinne...funzt!!! THX
KenanX is offline  
Old 10/13/2008, 22:37   #6
 
TheMan!!'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 710
Received Thanks: 933
WEn ich mich nicht recht irre dann steht das in AutoiT help .!
TheMan!! is offline  
Old 10/14/2008, 13:22   #7

 
°Remus°'s Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 8,541
Received Thanks: 4,539
Quote:
Originally Posted by TheMan!! View Post
WEn ich mich nicht recht irre dann steht das in AutoiT help .!
ja aber man muss wissen wonach man sucht, bei der guierstellung gibt es soviele befehle, und wenn man das ganze gleich mit koda macht kommt man doch nicht auf dei idee das man das ganze noch mit einem befehl (guictrlread) auslesen muss, aber man sollte sich trotzdem mit den manuellen erstellen einer gui beschäftigen um diese besser anzupassen, zb. den inhalt einer combobox kann man meineswissens nicht in koda einfügen das muss man selbst per
GUICtrlSetData machen
°Remus° is offline  
Reply




All times are GMT +1. The time now is 03:08.


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.