Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:38

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

Advertisement



GUI Tasten Funktionen zu ordnen ??

Discussion on GUI Tasten Funktionen zu ordnen ?? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
vames's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 42
Received Thanks: 2
GUI Tasten Funktionen zu ordnen ??

soooo hab mich jetzt was durch den AutoIt Jungel gelesen und hab mir mit hilfe vin Koda FormDesigner nen kleinen Fenster gebastelt
und hab versucht dem start knopf zu sagen wenn er gedrückt wird das die schleife anfängt zu arbeiten

PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$frmMain GUICreate("RübenBot"45085308178)
$Button1 GUICtrlCreateButton("Start"00449570)
$Label1 GUICtrlCreateLabel(" Du hast 10 Sekunden um in den Vollbildmodus zu wechseln."05644725)
GUICtrlSetFont(-1118002"Comic Sans MS")
GUICtrlSetBkColor(-10xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd






HotKeySet
("{f3}""F3")
Func F3()
    
$t1
EndFunc

If _IsPressed($Button1then $t 0



While $t 0  



MouseMove 
(124,124,500)



WEnd 
aber ich weiss net warum des net klapt da ich selbst noch net so erfahren bin


mfg vame
vames is offline  
Old 05/29/2010, 10:38   #2
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Das ist das Gehirn deiner GUI xD
Schau dir mal
PHP Code:
Case $GUI_EVENT_ClOSE
Exit 
an^^
$GUI_EVENT_CLOSE ist das rote Kreuz rechts oben. Klingelts?
Mit Case und $control kannst du Buttons, Feldern etc Funktionen zuweisen.
mipez is offline  
Thanks
1 User
Old 05/29/2010, 10:53   #3
 
vames's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 42
Received Thanks: 2
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$frmMain = GUICreate("RübenBot", 450, 85, 308, 178)
$Button1 = GUICtrlCreateButton("Start", 0, 0, 449, 57, 0)
$Label1 = GUICtrlCreateLabel(" Du hast 10 Sekunden um in den Vollbildmodus zu wechseln.", 0, 56, 447, 25)
GUICtrlSetFont(-1, 11, 800, 2, "Comic Sans MS")
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd

While 1
$Button1 = GUICtrlCreateButton()
Switch $Button1
Case $control $t=0
Exit

EndSwitch
WEnd

If _IsPressed($control) then $t=0


so hab was mehrere möglichkeiten gestet aber irgentwie schau ich net dahinter
vames is offline  
Old 05/29/2010, 10:54   #4
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$frmMain = GUICreate("RübenBot", 450, 85, 308, 178)
$Button1 = GUICtrlCreateButton("Start", 0, 0, 449, 57, 0)
$Label1 = GUICtrlCreateLabel(" Du hast 10 Sekunden um in den Vollbildmodus zu wechseln.", 0, 56, 447, 25)

$startSwitch = False
HotKeySet("{ESC}", "_exit")
HotKeySet("{F3}", "stop")

GUICtrlSetFont(-1, 11, 800, 2, "Comic Sans MS")
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
	Case $Button1
	    $startSwitch = Not $startSwitch
	EndSwitch
		
	If $startSwitch Then
		MouseMove (124,124,500)
		Sleep(2000)
	EndIf
WEnd
	
Func stop()
	$startSwitch = Not $startSwitch
EndFunc

Func _exit()
	Exit
EndFunc
Edit: Probier dir anzugewöhnen niemals mehr als eine "while 1 " schleife zu nutzen, da es sich dabei um eine Endlosschleife handelt und das Script diese normalerweise nicht verlässt, außer wenn du explizit etwas außerhalb der Hauptschleife aufrufst oder die Schleife mit "ExitLoop" abbrichst.
| Moep | is offline  
Thanks
1 User
Old 05/29/2010, 12:02   #5
 
vames's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 42
Received Thanks: 2
vielen dank von euch jetzt hab ich den fehler ^^ sry wenn ich euch zeit gestohlen hab bin noch net so vertraut bin erst seit 3 wochen dammit dran ^^ und bin froh das ich schon mal nen gui und halbwegs was machen kann

bekommt beide nen thanks

mfg vame
vames is offline  
Reply


Similar Threads Similar Threads
°*NEW Funktionen*° th3man0f22 NO MENÜ Public Hack°*NEW Funktionen*° 06.09.2010
09/06/2010 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies
Funktionen: PLAYERPOINTER ¤SERVERPOINTER (Immer an)¤ ¤NOSPREAD (Numm-Pad 7)¤ ¤FULLBRIGHT (Numm-Pad 5)¤ ¤EXTRAAMMO1 (Immer an)¤ ¤EXTRAAMMO2 (Immer an)¤ ¤SCOPE (Rechte Maustaste)¤ ¤FASTAMMO (Immer an)¤
Shop Ordnen
06/11/2010 - Metin2 Private Server - 5 Replies
Hi mal eine dumme Frage habe leider nichts gefunden... Wie ordnet man einen Shop das die items einen bestimmten Platz haben ?? In der Shop_item geht das schonma net denk ich weil ich die untereinander geschrieben habe aber im Shop sind die Wild durcheinander Bitte um Hilfe
3 Tasten Bot (die 2te)
06/08/2010 - Last Chaos - 9 Replies
Huhu, suche einen Bot der nur Tab, also mob anvisieren und attacken F1(1) + F2(2) macht. Quasi nur die 3 funktionen. Hat einer schon so einen und könnte er diesen bitte posten? MfG Tester
Items im Shop ordnen?
03/06/2010 - Metin2 Private Server - 5 Replies
Hi, also wenn ich neue Items in die Tabelle shop_item und damit in das Spiel einfügen möchte, klappt das zwar, aber die Items sind dann im Spiel bei den NPCs nicht geordnet. Gibt es ne Möglichkeit die Items nach meinen Vorstellungen zu ordnen? Schon mal thx :-)
wie kann ich einem Item neu Befehle zu ordnen?
02/10/2010 - Metin2 Private Server - 3 Replies
Hallo.... Also, ich konnt leider trotz SuFu nix finden. Ich würde gern einem Item den Befehl zuweissen das es entsprechenter Person (die das Item hat und benuzt) einen MG gibt. Über hilfe währe ich sehr froh. Hab iwie 0 'Plan wie ich des anstellen könnte. Danke im voraus.



All times are GMT +1. The time now is 11:38.


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.