Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:29

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

Advertisement



AutoIt Script in Button einbauen?

Discussion on AutoIt Script in Button einbauen? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Froce's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 64
Received Thanks: 3
AutoIt Script in Button einbauen?

Hey,
nach langer Zeit wollt ich wieder mit AutoIt hantieren hab aber leider keine Ahnung mehr wie ich z.B. nen RunScript in nen Button einbaue.
bitte um Hilfe! >_<
Froce
Froce is offline  
Old 06/09/2010, 13:53   #2


 
Cholik's Avatar
 
elite*gold: 4
Join Date: Aug 2008
Posts: 6,783
Received Thanks: 4,992
#moved
Cholik is offline  
Thanks
1 User
Old 06/09/2010, 14:25   #3
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
Dein Code könnte so aussehn:
PHP Code:
GuiCreate (...)
$ButtonID GuiCtrlCreateButton(...)
$ButtonID2 GuiCtrlCreateButton(...)

While 
1=1
Switch GUIGetMsg()

Case 
$ButtonID
FuncX 
(...)

Case 
$ButtonID2
FuncY 
(...)

EndSwitch
WEnd 
Der Code ist nicht ausführbar, du musst die ... durch Parameter ergänzen
.nAno is offline  
Thanks
1 User
Old 06/09/2010, 15:24   #4
 
Froce's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 64
Received Thanks: 3
Hmm und wie bau ich Msgbox ein? also dass sich eine öffnet wenn ich aufn button klick? :O
Geht so leicht aber ich packs net mehr
Froce is offline  
Old 06/09/2010, 15:45   #5
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
FuncX oder FuncY dienen als Beispiel, du kannst die gegen beliebige andere Funktionen austauschen oder neue hinzufügen
.nAno is offline  
Old 06/09/2010, 16:14   #6
 
elite*gold: 0
Join Date: Sep 2009
Posts: 531
Received Thanks: 1,775
ich würde das so machen

Code:
<GUI <
$Button1 >Details $Button1<
$Button2 >Details $Button2<

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox (0,"Dein Titel","Dein Text")
Case $Button2
MsgBox (0,"Mein Titel","Mein Text")
EndSwitch
WEnd
so solte es gehen
Italien...Donni is offline  
Reply


Similar Threads Similar Threads
AutoIt Aufgabe für Button
07/29/2010 - AutoIt - 3 Replies
Ich habe gestern zum erstenmal mit Autoit gearbeitet (naja eher rumgespielt^^) Und mir tat sich gleich ein Problem auf: Wie bekomme ich dass hin, wenn ich auf einen Button klicke / oder einen Menüpunkt, dass AutoIt dann eine Aufgabe ausführt? GuiCtrlCreateButton("Update", 20, 460, 100, 30) Wie bekomme ich es hin, dass mir AutoIt beim draufklicken dann folgendes ausführt?:
Lvl-Begrenzung einbauen? Hilfe bitte Script-Profis!
07/02/2010 - Metin2 Private Server - 3 Replies
Hey Com, wie baue ich in einen Quest von einem Event-Map-Porter eine lvl-Begrenzung ein,das der npc dann z.B. sagt du bist zu niedrig komm wieder wenn du 85 bist oder so ähnlich..oder zweite möglichkeit das man den Npc vorher nicht anklicken kann. Hier mein Quest: quest ***** begin state start begin when login or levelup with pc.level >0 begin set_state(tanaka) end end
GUI Button function w/ autoit
01/02/2009 - Conquer Online 2 - 12 Replies
kk im a newbie at makin bots but heres the code i have now... okay im a TOTAL newb at making stuff with autoit, so far i can only make simple things with clicking and what not...but i ran into a problem today. my bot creates a gui that instructs you on how to use the bot, what i need help with is how to create a hotkey that "Starts" the bot(the opposite of the exiting hotkey) HotKeySet("^!x", "QuitProg") Func QuitProg() Exit EndFunc thats the exit hotkey that i got, but i was wondering...
AutoIt Button
04/17/2008 - General Coding - 1 Replies
Hi, ich habe mir mal nen pickup bot erstellt mit nem button der funct aber ich möchte noch ein button hinzufügen für AutoSend und Fish Bot Und so habe ich mein erster Butto erstellt aber ich gebe genau das gleiche ein aber es kommt kein 2 button warumP? Und ich möchte halt noch nen buton erstellen das der pick up ausgeht wie geht das?? ------------------------------------------------ #include <GUIConstants.au3> GUICreate("AmelieMaus Hack")



All times are GMT +1. The time now is 10:29.


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.