Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:31

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

Advertisement



Startbutton funktioniert nicht

Discussion on Startbutton funktioniert nicht within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
Startbutton funktioniert nicht

Hallo,
ich habe hier einen kleinen NosTale Bot gescriptet.
Alles klappt perfekt, bis auf das, dass der Startbutton nicht funktioniert.
Ich schreibe Euch mal den Source rein, hoffe ihr könnt mir helfen.

PHP Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf
$Form1 GUICreate("NosTale AfK-Bot 2.0 By B-O"633368191122)
$EasyBotting GUICtrlCreateGroup("Easy Botting"168281121)
$OnlySpace GUICtrlCreateRadio("Press only Space"323224917)
$SpaceX GUICtrlCreateRadio("Press Space and X"325624917)
$OnlyZ GUICtrlCreateRadio("Press only Z"328024917)
$ZX GUICtrlCreateRadio("Press Z and X"3210424917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeSit GUICtrlCreateGroup("Lvl Mode (Sitting)"16136281225)
$SpaceOrangeLive GUICtrlCreateRadio("Press only Space and sitting By Orange Live"3216024917)
$SpaceRedLive GUICtrlCreateRadio("Press only Space and sitting By Red Live"3218424917)
$SpaceXOrangeLive GUICtrlCreateRadio("Press Space+X and sitting By Orange Live"3220824917)
$SpaceXRedLive GUICtrlCreateRadio("Press Space+X and sitting By Red Live"3223224917)
$ZOrangeLive GUICtrlCreateRadio("Press only Z and sitting By Orange Live"3225624917)
$ZRedLive GUICtrlCreateRadio("Press only Z and sitting By Red Live"3228024917)
$ZXOrangeLive GUICtrlCreateRadio("Press Z+X and sitting By Orange Live"3230424917)
$ZXRedLive GUICtrlCreateRadio("Press Z+X and sitting By Red Live"3232824917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeDrink GUICtrlCreateGroup("Lvl Mode (Drink a Pott)"3128305121)
$HpBy GUICtrlCreateLabel("If Hp By:"328404517)
$YourHp GUICtrlCreateInput(""384407321)
$ThenHp GUICtrlCreateLabel("Then press:"472406017)
$HpInput GUICtrlCreateInput(""544405721)
$MpBy GUICtrlCreateLabel("If Mp By:"328804617)
$YourMp GUICtrlCreateInput(""384807321)
$ThenMp GUICtrlCreateLabel("Then press:"472806017)
$MpInput GUICtrlCreateInput(""544805721)
GUICtrlCreateGroup("", -99, -9911)
$StartButton1 GUICtrlCreateButton("Starting (F1)"320144297810)
$ExitButton2 GUICtrlCreateButton("Exit"320240297810)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
        
Exit
        Case 
$StartButton1        
            _Func1 
()
        Case 
$ExitButton2
            _Func2
()
    EndSwitch
WEnd

;==> Button
Func _Func1 
()
    
Run ("Nostale.exe")
EndFunc
Func _Func2 
()
    Exit
EndFunc
;==> Easy Botting
$OnlySpace 
Controlsend("NosTale","","","{Space}")
$SpaceX Controlsend("NosTale","","","{Space}","{X}"),
$OnlyZ Controlsend("NosTale","","","{Z}")
$ZX Controlsend("NosTale","","","{Z}"),"{X}")
;==> 
Lvl Mode
$SpaceOrangeLive 
Controlsend("NosTale","","","{Space}"), 
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
    EndIf
$SpaceRedLive Controlsend("NosTale","","","{Space}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXOrangeLive Controlsend("NosTale","","","{Space}","{X}"),
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXRedLive Controlsend("NosTale","","","{Space}","{X}")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZOrangeLive Controlsend("NosTale","","","{Z}"),
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZRedLive Controlsend("NosTale","","","{Z}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXOrangeLive Controlsend("NosTale","","","{Z}","{X}")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXRedLive Controlsend("NosTale","","","{Z}","{X}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$YourHp 
$HpInput 
$YourMp 
$MpInput 
SchonmalDanke im Vorraus.

Mit freundlichen Grüßen,

B-O
B-O is offline  
Old 11/21/2010, 11:54   #2
 
ZeraPain's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
funktionen schreibt man ohne ein leerzeichen also

_Func1()

anstatt run solltest du mal shellexecute probieren:

Code:
ShellExecute(@ScriptDir & "\Nostale.exe")
ZeraPain is offline  
Thanks
1 User
Old 11/21/2010, 11:58   #3
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
was heiißt den bitte:
Quote:
Alles klappt perfekt, bis auf das, dass der Startbutton nicht funktioniert.

anstelle des
Run ("Nostale.exe")

machste einfach mal
ShellExecute("C:\Games\Nostale\Nostale.exe") ;also den pfad an passen..

und was ist das?
Controlsend("NosTale","","","{Space}","{X}"),
ControlSend ( "title", "text", controlID, "string" [, flag] )


@vorposter:
es geht auch mit leerzeichen


btw
Quote:
ich habe hier einen kleinen NosTale Bot gescriptet.
eher C&P
omer36 is offline  
Thanks
1 User
Old 11/21/2010, 12:04   #4
 
ZeraPain's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
Quote:
Originally Posted by omer36 View Post
@vorposter:
es geht auch mit leerzeichen
habe nicht gesagt, dass es nicht geht aber das ist kein guter stil ;-)
ZeraPain is offline  
Old 11/21/2010, 12:06   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
Oh habe da einen Fehler gemacht, er soll nicht Nostale starten, sonern die ausgewählten Funktionen ausführen.
Wenn ich es aber so mache, müssen doch alle, die diesen Bot benutzen den gleichen Pfad haben?
Sehe ich das so richtig, oder ist dies falsch?
B-O is offline  
Old 11/21/2010, 12:13   #6
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
Quote:
Originally Posted by B-O View Post
Oh habe da einen Fehler gemacht, er soll nicht Nostale starten, sonern die ausgewählten Funktionen ausführen.
Wenn ich es aber so mache, müssen doch alle, die diesen Bot benutzen den gleichen Pfad haben?
Sehe ich das so richtig, oder ist dies falsch?
könnteste zb so lösen:

PHP Code:
;am anfang deiner source das,
$spiel FileOpenDialog("Bitte NoStale auswählen", @ProgramsDir"All (*.*)" ,4)

case 
$button
ShellExecute
($spiel
aber halt noch die restlichen fehler beseitigen ^^
omer36 is offline  
Thanks
1 User
Old 11/21/2010, 12:30   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
An welche Stelle muss ich dies einfügen?
Tut mir leid, bin momentan ein bisschen veriwrrt. o.o
B-O is offline  
Old 11/21/2010, 12:49   #8
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
einfach an oberster stelle
$spiel = FileOpenDialog("Bitte NoStale auswählen", @ProgramsDir, "All (*.*)" ,1 + 4)

dann halt
Func _Func1 ()
ShellExecute($spiel)
EndFunc
omer36 is offline  
Thanks
1 User
Old 11/21/2010, 12:56   #9
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
Mach ich es so, kommt dieser Fehler:



Momentaner Code:

PHP Code:
 #include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf
$Form1 GUICreate("NosTale AfK-Bot 2.0 By B-O"633368191122)
$EasyBotting GUICtrlCreateGroup("Easy Botting"168281121)
$OnlySpace GUICtrlCreateRadio("Press only Space"323224917)
$SpaceX GUICtrlCreateRadio("Press Space and X"325624917)
$OnlyZ GUICtrlCreateRadio("Press only Z"328024917)
$ZX GUICtrlCreateRadio("Press Z and X"3210424917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeSit GUICtrlCreateGroup("Lvl Mode (Sitting)"16136281225)
$SpaceOrangeLive GUICtrlCreateRadio("Press only Space and sitting By Orange Live"3216024917)
$SpaceRedLive GUICtrlCreateRadio("Press only Space and sitting By Red Live"3218424917)
$SpaceXOrangeLive GUICtrlCreateRadio("Press Space+X and sitting By Orange Live"3220824917)
$SpaceXRedLive GUICtrlCreateRadio("Press Space+X and sitting By Red Live"3223224917)
$ZOrangeLive GUICtrlCreateRadio("Press only Z and sitting By Orange Live"3225624917)
$ZRedLive GUICtrlCreateRadio("Press only Z and sitting By Red Live"3228024917)
$ZXOrangeLive GUICtrlCreateRadio("Press Z+X and sitting By Orange Live"3230424917)
$ZXRedLive GUICtrlCreateRadio("Press Z+X and sitting By Red Live"3232824917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeDrink GUICtrlCreateGroup("Lvl Mode (Drink a Pott)"3128305121)
$HpBy GUICtrlCreateLabel("If Hp By:"328404517)
$YourHp GUICtrlCreateInput(""384407321)
$ThenHp GUICtrlCreateLabel("Then press:"472406017)
$HpInput GUICtrlCreateInput(""544405721)
$MpBy GUICtrlCreateLabel("If Mp By:"328804617)
$YourMp GUICtrlCreateInput(""384807321)
$ThenMp GUICtrlCreateLabel("Then press:"472806017)
$MpInput GUICtrlCreateInput(""544805721)
GUICtrlCreateGroup("", -99, -9911)
$StartButton1 GUICtrlCreateButton("Starting (F1)"320144297810)
$ExitButton2 GUICtrlCreateButton("Exit"320240297810)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
        
Exit
        Case 
$StartButton1        
            _Func1 
()
        Case 
$ExitButton2
            _Func2
()
    EndSwitch
WEnd

;==> Button
$spiel 
FileOpenDialog("Bitte Nostale auswählen", @ProgramsDir"All (*.*)" ,4)
Func _Func1 ()
    
ShellExecute($spiel)
EndFunc
Func _Func2 
()
    Exit
EndFunc
;==> Easy Botting
$OnlySpace 
Controlsend("NosTale","","","{Space}")
$SpaceX Controlsend("NosTale","","","{Space}","{X}"),
$OnlyZ Controlsend("NosTale","","","{Z}")
$ZX Controlsend("NosTale","","","{Z}"),"{X}")
;==> 
Lvl Mode
$SpaceOrangeLive 
Controlsend("NosTale","","","{Space}"), 
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
    EndIf
$SpaceRedLive Controlsend("NosTale","","","{Space}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXOrangeLive Controlsend("NosTale","","","{Space}","{X}"),
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXRedLive Controlsend("NosTale","","","{Space}","{X}")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZOrangeLive Controlsend("NosTale","","","{Z}"),
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZRedLive Controlsend("NosTale","","","{Z}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXOrangeLive Controlsend("NosTale","","","{Z}","{X}")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXRedLive Controlsend("NosTale","","","{Z}","{X}"),
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$YourHp 
$HpInput 
$YourMp 
$MpInput 
B-O is offline  
Old 11/21/2010, 12:59   #10
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
was verstehst du wenn ich schreibe: "an oberster stelle deiner source" ?

2.schau doch mal meine erste antwort oben, du hast mehr fehler drinne -.-

3. um es zu starten kannste auch einfach F5 drücken, und musst es nicht jedemal complieren.


btw, wenn du schon dein name im bild zensierst, währe es auch von vorteil es auch hier zu machen:
#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf

omer36 is offline  
Old 11/21/2010, 13:00   #11
 
.BritainAndy's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,385
Received Thanks: 1,006
dein ganzes skript ist voller syntaxfehler.

$SpaceX = Controlsend("NosTale","","","{Space}","{X}"),
$SpaceOrangeLive = Controlsend("NosTale","","","{Space}"),

und natürlich auch unten die lehren felder#

$MpInput =

usw

edit: und wie omer shcon sagt du musst die variable am besten nach den includes declarieren
.BritainAndy is offline  
Thanks
1 User
Old 11/21/2010, 13:07   #12
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
bitte schön:

wobei du gleich wieder kommst und frast, warum nichts von den radiobutton gehen...


PHP Code:
 #include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$spiel FileOpenDialog("Bitte Nostale auswählen", @ProgramsDir"All (*.*)" ,4)

#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf
$Form1 GUICreate("NosTale AfK-Bot 2.0 By B-O"633368191122)
$EasyBotting GUICtrlCreateGroup("Easy Botting"168281121)
$OnlySpace GUICtrlCreateRadio("Press only Space"323224917)
$SpaceX GUICtrlCreateRadio("Press Space and X"325624917)
$OnlyZ GUICtrlCreateRadio("Press only Z"328024917)
$ZX GUICtrlCreateRadio("Press Z and X"3210424917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeSit GUICtrlCreateGroup("Lvl Mode (Sitting)"16136281225)
$SpaceOrangeLive GUICtrlCreateRadio("Press only Space and sitting By Orange Live"3216024917)
$SpaceRedLive GUICtrlCreateRadio("Press only Space and sitting By Red Live"3218424917)
$SpaceXOrangeLive GUICtrlCreateRadio("Press Space+X and sitting By Orange Live"3220824917)
$SpaceXRedLive GUICtrlCreateRadio("Press Space+X and sitting By Red Live"3223224917)
$ZOrangeLive GUICtrlCreateRadio("Press only Z and sitting By Orange Live"3225624917)
$ZRedLive GUICtrlCreateRadio("Press only Z and sitting By Red Live"3228024917)
$ZXOrangeLive GUICtrlCreateRadio("Press Z+X and sitting By Orange Live"3230424917)
$ZXRedLive GUICtrlCreateRadio("Press Z+X and sitting By Red Live"3232824917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeDrink GUICtrlCreateGroup("Lvl Mode (Drink a Pott)"3128305121)
$HpBy GUICtrlCreateLabel("If Hp By:"328404517)
$YourHp GUICtrlCreateInput(""384407321)
$ThenHp GUICtrlCreateLabel("Then press:"472406017)
$HpInput GUICtrlCreateInput(""544405721)
$MpBy GUICtrlCreateLabel("If Mp By:"328804617)
$YourMp GUICtrlCreateInput(""384807321)
$ThenMp GUICtrlCreateLabel("Then press:"472806017)
$MpInput GUICtrlCreateInput(""544805721)
GUICtrlCreateGroup("", -99, -9911)
$StartButton1 GUICtrlCreateButton("Starting (F1)"320144297810)
$ExitButton2 GUICtrlCreateButton("Exit"320240297810)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
        
Exit
        Case 
$StartButton1
            _Func1
()
        Case 
$ExitButton2
            _Func2
()
    EndSwitch
WEnd


Func _Func1 
()
    
ShellExecute($spiel)
EndFunc

Func _Func2 
()
    Exit
EndFunc

;==> Easy Botting
$OnlySpace 
Controlsend("NosTale","","","{Space}")
$SpaceX Controlsend("NosTale","","","{Space}x")
$OnlyZ Controlsend("NosTale","","","{Z}")
$ZX Controlsend("NosTale","","","zx")


;==> 
Lvl Mode
$SpaceOrangeLive 
Controlsend("NosTale","","","{Space}")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
    EndIf
$SpaceRedLive Controlsend("NosTale","","","{Space}")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXOrangeLive Controlsend("NosTale","","","{Space}x")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$SpaceXRedLive Controlsend("NosTale","","","{Space}x")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZOrangeLive Controlsend("NosTale","","","{Z}")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZRedLive Controlsend("NosTale","","","{Z}")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXOrangeLive Controlsend("NosTale","","","zx")
If 
PixelGetcolor (123,55) <> 0xFCC000 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf
$ZXRedLive Controlsend("NosTale","","","zx")
If 
PixelGetcolor (123,55) <> 0xFF3100 Then
    Sleep 
("10000")
    
Controlsend("NosTale","","","{C}")
EndIf 
omer36 is offline  
Thanks
1 User
Old 11/21/2010, 13:18   #13
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
Stimmt das frage ich, der Startbutton soll nicht den prozess öffnen sonder nur z.B. Leertaste oder X drücken.

bekommst trz. immer Thanks.
B-O is offline  
Old 11/21/2010, 13:29   #14
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
sei froh, dass ich grade nichts besseres zu tun habe...

PHP Code:
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=D:\Dokumente und Einstellungen\Ralf-HH\Desktop\Death~Light AfK Bot 2.kxf
$Form1 GUICreate("NosTale AfK-Bot 2.0 By B-O"633368191122)
$EasyBotting GUICtrlCreateGroup("Easy Botting"168281121)
$OnlySpace GUICtrlCreateRadio("Press only Space"323224917)
$SpaceX GUICtrlCreateRadio("Press Space and X"325624917)
$OnlyZ GUICtrlCreateRadio("Press only Z"328024917)
$ZX GUICtrlCreateRadio("Press Z and X"3210424917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeSit GUICtrlCreateGroup("Lvl Mode (Sitting)"16136281225)
$SpaceOrangeLive GUICtrlCreateRadio("Press only Space and sitting By Orange Live"3216024917)
$SpaceRedLive GUICtrlCreateRadio("Press only Space and sitting By Red Live"3218424917)
$SpaceXOrangeLive GUICtrlCreateRadio("Press Space+X and sitting By Orange Live"3220824917)
$SpaceXRedLive GUICtrlCreateRadio("Press Space+X and sitting By Red Live"3223224917)
$ZOrangeLive GUICtrlCreateRadio("Press only Z and sitting By Orange Live"3225624917)
$ZRedLive GUICtrlCreateRadio("Press only Z and sitting By Red Live"3228024917)
$ZXOrangeLive GUICtrlCreateRadio("Press Z+X and sitting By Orange Live"3230424917)
$ZXRedLive GUICtrlCreateRadio("Press Z+X and sitting By Red Live"3232824917)
GUICtrlCreateGroup("", -99, -9911)
$LvlModeDrink GUICtrlCreateGroup("Lvl Mode (Drink a Pott)"3128305121)
$HpBy GUICtrlCreateLabel("If Hp By:"328404517)
$YourHp GUICtrlCreateInput(""384407321)
$ThenHp GUICtrlCreateLabel("Then press:"472406017)
$HpInput GUICtrlCreateInput(""544405721)
$MpBy GUICtrlCreateLabel("If Mp By:"328804617)
$YourMp GUICtrlCreateInput(""384807321)
$ThenMp GUICtrlCreateLabel("Then press:"472806017)
$MpInput GUICtrlCreateInput(""544805721)
GUICtrlCreateGroup("", -99, -9911)
$StartButton1 GUICtrlCreateButton("Starting (F1)"320144297810)
$ExitButton2 GUICtrlCreateButton("Exit"320240297810)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$StartButton1
            start
()
        Case 
$ExitButton2
            
Exit
    EndSwitch
WEnd


Func start
()
    If 
GUICtrlRead($OnlySpace) = 1 Then
        ControlSend
("NosTale""""""{Space}")

    ElseIf 
GUICtrlRead($SpaceX) = 1 Then
        ControlSend
("NosTale""""""{Space}x")

    ElseIf 
GUICtrlRead($OnlyZ) = 1 Then
        ControlSend
("NosTale""""""{Z}")

    ElseIf 
GUICtrlRead($ZX) = 1 Then
        ControlSend
("NosTale""""""zx")
    EndIf

    If 
GUICtrlRead($SpaceOrangeLive) = 1 Then
        ControlSend
("NosTale""""""{Space}")
        If 
PixelGetColor(12355) <> 0xFCC000 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($SpaceRedLive) = 1 Then
        ControlSend
("NosTale""""""{Space}")
        If 
PixelGetColor(12355) <> 0xFF3100 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($SpaceXOrangeLive) = 1 Then
        ControlSend
("NosTale""""""{Space}x")
        If 
PixelGetColor(12355) <> 0xFCC000 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($SpaceXRedLive) = 1 Then
        ControlSend
("NosTale""""""{Space}x")
        If 
PixelGetColor(12355) <> 0xFF3100 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($ZOrangeLive) = 1 Then
        ControlSend
("NosTale""""""{Z}")
        If 
PixelGetColor(12355) <> 0xFCC000 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($ZRedLive) = 1 Then
        ControlSend
("NosTale""""""{Z}")
        If 
PixelGetColor(12355) <> 0xFF3100 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($ZXOrangeLive) = 1 Then
        ControlSend
("NosTale""""""zx")
        If 
PixelGetColor(12355) <> 0xFCC000 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf

    ElseIf 
GUICtrlRead($ZXRedLive) = 1 Then
        ControlSend
("NosTale""""""zx")
        If 
PixelGetColor(12355) <> 0xFF3100 Then
            Sleep
("10000")
            
ControlSend("NosTale""""""{C}")
        EndIf
    EndIf
EndFunc 

aber PixelGetColor wird kaum hidden gehen
(denk ich mal, habs noch nie benutz)
omer36 is offline  
Thanks
1 User
Old 11/21/2010, 13:36   #15
 
elite*gold: 0
Join Date: Apr 2010
Posts: 431
Received Thanks: 138
Danke, dass du mir hilfst, bin ein ziemlicher Neuling in AutoIt.
Naja, nächstes Problem, wenn ich z.B. das 1. auswähle auf Start drücke, drückt er einmal leertaste.
Nun will ich aber, dass der Bot dies nicht einmal tut, sonder z.B. jede 300ms?
B-O is offline  
Reply


Similar Threads Similar Threads
Warock funktioniert nicht! (Login nicht sichtbar)
07/23/2010 - WarRock - 5 Replies
Hallo zusammen, Seit dem Update startet Warrock nur noch bis zu Werbung(get Prem). Wenn ich diese wegklicke sieht man kein Login(Bildschirm schwarz). Ich habe Windows Vista Home, 32Bit und kein Antivir. Woran liegt das, hat jmd dasselbe Problem? --Danke--
Dorfplatzwächter anklicken geht nicht - Entbuggen nicht funktioniert.
03/23/2010 - Metin2 Private Server - 0 Replies
Huhu, bei mir hat das entbuggen des Dorfplatzwächtes nicht geklappt, ich hab diese Guildmanage_Quest oder wie sie heißt eingepackt, ich hab danach sogar ALLE Questen reingepackt. Ging alles nicht, brauche umbedingt Hilfe. Will nämlich den Clienten von NeonBlue benutzen, oder muss ich dazu noch ne Mob_Proto + Item_Proto (übersetzt) haben? bitte um Hilfe. MfG P.S. SuFu und Google haben beide nichts ausgespuckt. -.-"
Bei mir funktioniert das Löschcode nicht. Er hat mal funktioniert
01/07/2010 - Metin2 Private Server - 0 Replies
Hi. Also auf mienem PServer geht das mit dem Löschcode nicht. Kann mir jemand sagen warum? Ich weiß noch das es mal ging. Aber den Spieler in der Datenbank löschen geht nicht weil da diser lvl 0 charackter bleibt und ich nciht weiß wie man den weg kriegt Bitte kan mir jemand helfen.
Metin2 als Startbutton
08/18/2009 - Metin2 Guides & Templates - 5 Replies
Euch nervt der Startbutton von Windows?? Ihr hättet da gerne das Windowszeichen?? Lösung | |_Was braucht ihr?? --| --|_ Diese Dateien! --|_ Windows XP
Mhs funktioniert nicht mehr auch nicht mit metin programm!
10/05/2008 - Metin2 - 8 Replies
Metin programm funktioniert bei mir nicht seit gestern



All times are GMT +2. The time now is 04:31.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.