Register for your free account! | Forgot your password?

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

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

Advertisement



[AutoIt] Brauche Hilfe bei GUI

Discussion on [AutoIt] Brauche Hilfe bei GUI within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 11
Received Thanks: 1
[AutoIt] Brauche Hilfe bei GUI

Hallo

ich bin im Bereich GUI für AutoIt noch ziemlicher Anfänger.

Eine ganz einfache Frage:

Wie belege ich ein OnClick Ereignis auf einen Button?
Also das wenn man drauf drückt das was bestimmtes passiert?

Ich weiß es ist ziemlich simpel aber ich weiß es trotzdem nicht. xD

LG
Coolchecker is offline  
Old 04/18/2010, 12:50   #2
 
epiTR's Avatar
 
elite*gold: 185
Join Date: May 2008
Posts: 3,646
Received Thanks: 603
Gui erstellen und dann bei Switch:

Case $Buttonx
;code
Case $Button2x
;code...
epiTR is offline  
Old 04/18/2010, 13:10   #3
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"625443192124)
$Button1 GUICtrlCreateButton("Button1"104327525$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            Machwas
() ;Dein Code der ausgeführt wird

    
EndSwitch
WEnd

Func Machwas
()
    ;
Dein Code
EndFunc 
HardCore.1337 is offline  
Old 04/18/2010, 14:38   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
Und bei GUIOnEventMode

GUICtrlSetOnEvent ( $button, "funktion" )
mipez is offline  
Reply


Similar Threads Similar Threads
AutoIT brauche Hilfe...
07/25/2009 - AutoIt - 1 Replies
Hi, zuerst solltet ihr euch diesen Bot mal eben anschauen. Er ist nicht von mir gecoded. #include <GUIConstantsEx.au3> #include <GUIConstants.au3> #include <GUIListBox.au3>
Brauche Hilfe (AutoIT)
04/07/2009 - AutoIt - 4 Replies
Hallo Leute ich bekomme den skript einfach nicht hin. Ich gebe meine Daten ein aund er schreibt 79 79 79 79 immer nur. Antatt meinen Login Daten woran kann das liegen..?.. kann mir pls jmd. den Bot richtig machen..?.. Hier der Skript: ------------------------------------------------- ---------------------- HotKeySet ( "{Numpad1}" , "start") HotKeySet ( "{Numpad2}" , "ende") #include <GUIConstants.au3>
Brauche AutoIt v3 Hilfe
09/13/2008 - Metin2 - 10 Replies
aaaaaalso^^ wie bringe ich den cursor dazu das der sich zum farbcode bewegt?
brauche hilfe (AutoIt)
07/08/2008 - Metin2 - 8 Replies
brauchte ein script für mich und habe es versucht zu schreiben... so siehts jetzt aus und ich bekomme dauernd errors HotKeySet ( "{Numpad1}" , "Start" ) HotKeySet ( "{Numpad0}" , "Ende" ) While (1) Sleep (1000) WEnd



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


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