Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:22

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

Advertisement



AutoIT hack hilfe

Discussion on AutoIT hack hilfe within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
AutoIT hack hilfe

hi,
ich habe ein 4story mini bot gemacht für mich aber brauche bei einer sache eure hilfe.
Quote:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=C:\Users\Marcel\Desktop\Form1.kxf
$Form1 = GUICreate("4Story Mini Level Bot ", 171, 208, 241, 219)
$Button1 = GUICtrlCreateButton("Start", 16, 8, 137, 49, 0)
$Button2 = GUICtrlCreateButton("Stop", 16, 120, 137, 49, 0)
$Label1 = GUICtrlCreateLabel("Made by Kalipo", 48, 176, 77, 17)
$Label2 = GUICtrlCreateLabel("Attacke 1 auf 3", 40, 64, 77, 17)
$Label3 = GUICtrlCreateLabel("Attacke 2 auf 2", 40, 80, 77, 17)
$Label4 = GUICtrlCreateLabel("HP Trank auf F2", 40, 96, 83, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Wie Baue ich das untere in Button1 ein?


MouseClick ("left", 857, 617, 2)
Sleep (2000)
While 2
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{F2}")
Sleep (1000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
WEnd Was muss ich in Button2 eingeben damit er alle Befehle Stopt?
kalipo is offline  
Old 06/12/2010, 22:29   #2
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Alles ab MouseClick bis zu dem sleep in eine Funktion

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            Start
()
        Case 
$Button2
            
Exit

    EndSwitch
WEnd

Func Start
()
    
MouseClick ("left"8576172)
    ...
    
sleep(5000)
EndFunc 
HardCore.1337 is offline  
Old 06/12/2010, 22:46   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
jetzt habe ich es so aber wenn ich auf Start klicke beendet es sich
Quote:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=C:\Users\Marcel\Desktop\Form1.kxf
$Form1 = GUICreate("4Story Mini Level Bot ", 171, 208, 241, 219)
$Button1 = GUICtrlCreateButton("Start", 16, 8, 137, 49, 0)
$Button2 = GUICtrlCreateButton("Stop", 16, 120, 137, 49, 0)
$Label1 = GUICtrlCreateLabel("Made by Kalipo", 48, 176, 77, 17)
$Label2 = GUICtrlCreateLabel("Attacke 1 auf 3", 40, 64, 77, 17)
$Label3 = GUICtrlCreateLabel("Attacke 2 auf 2", 40, 80, 77, 17)
$Label4 = GUICtrlCreateLabel("HP Trank auf F2", 40, 96, 83, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Start(MouseClick ("left", 857, 617, 2)
Sleep (2000)
While 2
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{F2}")
Sleep (1000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
WEnd
Case $Button2
Exit

EndSwitch
WEnd




MouseClick ("left", 857, 617, 2)
Sleep (2000)
While 2
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{F2}")
Sleep (1000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
WEnd
was nun?
kalipo is offline  
Old 06/12/2010, 22:48   #4
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Warum hast du es nicht so gemacht wie ich es gesagt habe?
HardCore.1337 is offline  
Old 06/12/2010, 22:48   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
hab ich doch
kalipo is offline  
Old 06/12/2010, 22:52   #6
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by HardCore.1337 View Post
Warum hast du es nicht so gemacht wie ich es gesagt habe?
Weil's nix bringen würde, weil sobald mit Button1 gestartet würde, es sich mit Button2 nicht mehr beenden lassen würde.
huberhans is offline  
Old 06/12/2010, 22:53   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
Und was soll ich jetzt machen?
kalipo is offline  
Old 06/12/2010, 23:00   #8
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by kalipo View Post
Und was soll ich jetzt machen?
This:

PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=C:\Users\Marcel\Desktop\Form1.kxf
$Form1 GUICreate("4Story Mini Level Bot "171208241219)
$Button1 GUICtrlCreateButton("Start"168137490)
$Button2 GUICtrlCreateButton("Stop"16120137490)
$Label1 GUICtrlCreateLabel("Made by Kalipo"481767717)
$Label2 GUICtrlCreateLabel("Attacke 1 auf 3"40647717)
$Label3 GUICtrlCreateLabel("Attacke 2 auf 2"40807717)
$Label4 GUICtrlCreateLabel("HP Trank auf F2"40968317)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $Bedingung False

While 1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
Case 
$Button1
$Bedingung 
True
MouseClick 
("left"8576172)
Case 
$Button2
$Bedingung 
False
EndSwitch

If 
$Bedingung True Then Start()

WEnd




Func Start
()
Sleep (2000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
Send ("{F2}")
Sleep (1000)
Send ("{TAB}")
Send ("{3}")
Sleep (1000)
Send ("{2}")
Sleep (20000)
Send ("{z}")
Sleep (5000)
EndFunc 
Allerdings dauert's knapp ne Minute, bis du mit Button2 dein Script wieder anhalten kannst, da die Funktion Start() erstmal durchgearbeitet wird und das dank der vielen Sleep ziemlich lang dauert.
huberhans is offline  
Old 06/12/2010, 23:10   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
Danke es geht aber nach einer zeit kommt irgend ein fehler den ich nicht lesen konnte weil es sich alles sozfort beendet hat.
Woran kann das liegen?
kalipo is offline  
Old 06/12/2010, 23:27   #10
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by kalipo View Post
Danke es geht aber nach einer zeit kommt irgend ein fehler den ich nicht lesen konnte weil es sich alles sozfort beendet hat.
Woran kann das liegen?
Versuch mal, das Script aus dem Editor heraus mit F5 zu starten, dann kannst du unten lesen, was der Fehler ist
huberhans is offline  
Old 06/12/2010, 23:32   #11
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
Ok es ist weg.
Wie kann ich es abspeichern das es nur als Run script startet?
kalipo is offline  
Old 06/12/2010, 23:39   #12
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by kalipo View Post
Ok es ist weg.
Wie kann ich es abspeichern das es nur als Run script startet?
Als was? Oder meinst du 'ne .exe-Datei draus machen?
huberhans is offline  
Old 06/12/2010, 23:40   #13
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
Ja als .exe-Datei
kalipo is offline  
Old 06/12/2010, 23:43   #14
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by kalipo View Post
Ja als .exe-Datei
STRG + F7 im Editor drücken
huberhans is offline  
Thanks
1 User
Old 06/12/2010, 23:47   #15
 
elite*gold: 0
Join Date: May 2010
Posts: 69
Received Thanks: 31
Dann kommt
Aut2Exe Error
Error:Unalbe to execute upx.exe to compress stub file:
upx: C:\Users\Marcel\Desktop\4story mini BOT.exe IOException: rename error:File exists
was nun
kalipo is offline  
Reply


Similar Threads Similar Threads
[Hilfe]Autoit
06/23/2010 - Metin2 Private Server - 6 Replies
hallo.... habe gestern mal angefangen eautoit zu lernen.... und möchte nun zu mien pickup bot ein fenster zu fügen nur wie? es sollt ungefähr so ausehen: http://www.bilder-hochladen.net/files/fg2u-1.jpg hier mien code: HotKeySet ( "{F8}" , "Start" )



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


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.