|
You last visited: Today at 12:21
Advertisement
AutoIt Frage wege Buttons
Discussion on AutoIt Frage wege Buttons within the AutoIt forum part of the Coders Den category.
12/07/2010, 15:57
|
#1
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
AutoIt Frage wege Buttons
Hallo,
Ich möchte gerne mal von euch wisse wie ich diese Buttons (Siehe Screen)
verlinken kann
also auzf den Button wo ElitePvPers steht
drauf amchen das wenn ich da drauf klicke sich im Browser IE, Morzilla oder so
dann Elitepvpers öffnet.
Screen:
mfg
bitte helft mir
|
|
|
12/07/2010, 16:11
|
#2
|
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
|
also wenn dir der koda form designer dir den code aus spuck steht unterm gui das
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
EndSwitch WEnd
nun must du nur noch den deklarierten button zuschreiben was ermachen soll
Code:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $deinbuttonname
ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen
EndSwitch
WEnd
|
|
|
12/07/2010, 16:14
|
#3
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
Quote:
Originally Posted by maxi39
also wenn dir der koda form designer dir den code aus spuck steht unterm gui das
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
nun must du nur noch den deklarierten button zuschreiben was ermachen soll
Code:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $deinbuttonname
ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen
EndSwitch
WEnd
|
wie lasse ich mir den Code aussprucken? xD
|
|
|
12/07/2010, 16:21
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
oben links unter "Ansicht" den linken grünen 'pfeil' drücken.
|
|
|
12/07/2010, 16:30
|
#5
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
So dasist der Code
PHP Code:
#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $Button1 = GUICtrlCreateButton("Metin2 Pserver - Discussions / Questions", 8, 576, 353, 49, 0) $Button2 = GUICtrlCreateButton("Metin2 Pserver Guides & Strategies", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers EndSwitch WEnd
und jezze ?
wenn ich das bis jezze überhaupt richtig gemacht hab xD
|
|
|
12/07/2010, 16:34
|
#6
|
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
|
alles richtig
brauchst nur noch die funktion
PHP Code:
#include <GUIConstants.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $Button1 = GUICtrlCreateButton("Metin2 Pserver - Discussions / Questions", 8, 576, 353, 49, 0) $Button2 = GUICtrlCreateButton("Metin2 Pserver Guides & Strategies", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
|
|
|
12/07/2010, 16:41
|
#7
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
Quote:
Originally Posted by maxi39
alles richtig
brauchst nur noch die funktion
PHP Code:
#include <GUIConstants.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $Button1 = GUICtrlCreateButton("Metin2 Pserver - Discussions / Questions", 8, 576, 353, 49, 0) $Button2 = GUICtrlCreateButton("Metin2 Pserver Guides & Strategies", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
|
und wenn ich das jezze mit den anderen Buttons auch machen will aber andere Addresse
kann ich doch diese
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
kopieren
einfügen und nur den Link ändern oder ?
kann mir einer mal ein Beispiel davon machen
|
|
|
12/07/2010, 16:46
|
#8
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
DjDEFONE° ich geb dir jetz schon einen tipp, und mach es NICHT wie er es hatt:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
Case $ElitePvPers
ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
sondern so:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
siehst du bestimmt, ist sichtbarer/sauberer...
und wenn du weitere buttons zuweisen willst, machst du es dadrunter:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen Case $button1 ;mach dies und das Case $button2 ;und sowieso EndSwitch WEnd
|
|
|
12/07/2010, 16:51
|
#9
|
elite*gold: 0
Join Date: Nov 2010
Posts: 120
Received Thanks: 89
|
PHP Code:
#include <GUIConstants.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $GoogleBTN = GUICtrlCreateButton("Google", 8, 576, 353, 49, 0) $YoutubeBTN = GUICtrlCreateButton("Youtube", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers _openPage("www.elitepvpers.com") Case $GoogleBTN _openPage("www.google.de") Case $YoutubeBTN _openPage("www.youtube.de") EndSwitch WEnd
Func _openPage($page) ShellExecute($page) Endfunc
EDIT: zu spät..
|
|
|
12/07/2010, 16:54
|
#10
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
Quote:
Originally Posted by omer36
DjDEFONE° ich geb dir jetz schon einen tipp, und mach es NICHT wie er es hatt:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
sondern so:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen EndSwitch WEnd
siehst du bestimmt, ist sichtbarer/sauberer...
und wenn du weitere buttons zuweisen willst, machst du es dadrunter:
PHP Code:
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") ;indem fall e*pvp öffnen Case $button1 ;mach dies und das Case $button2 ;und sowieso EndSwitch WEnd
|
geht net -.-
kannst du mir den code vill machen ich gebe dir die Links von den buttons ?
|
|
|
12/07/2010, 16:56
|
#11
|
elite*gold: 0
Join Date: Nov 2010
Posts: 120
Received Thanks: 89
|
geht ned = welcher Fehler?
wenn kein Fehler dann poste nochmal dein Script
|
|
|
12/07/2010, 16:57
|
#12
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
ich helfe ja wirklic gerne.... aber...einbischen eigeninitiative währe nicht schlecht....
PHP Code:
#include <GUIConstants.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $Button1 = GUICtrlCreateButton("Metin2 Pserver - Discussions / Questions", 8, 576, 353, 49, 0) $Button2 = GUICtrlCreateButton("Metin2 Pserver Guides & Strategies", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") Case $Button1 ShellExecute("DEIN LINK") Case $Button2 ShellExecute("DEIN LINK") Case $Button3 ShellExecute("DEIN LINK") Case $Button4 ShellExecute("DEIN LINK") Case $Button5 ShellExecute("DEIN LINK") Case $Button6 ShellExecute("DEIN LINK") Case $Button7 ShellExecute("DEIN LINK") Case $Button8 ShellExecute("DEIN LINK") EndSwitch WEnd
|
|
|
12/07/2010, 16:59
|
#13
|
elite*gold: 0
Join Date: Nov 2010
Posts: 120
Received Thanks: 89
|
jo das is ja im Endeffekt genau das was ich gepostet hab, aber ich hab eig auch keine Lust immer den Code vorzukauen...
|
|
|
12/07/2010, 17:03
|
#14
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
Quote:
Originally Posted by Kamyshin
jo das is ja im Endeffekt genau das was ich gepostet hab, aber ich hab eig auch keine Lust immer den Code vorzukauen...
|
joa im grunde schon, aber wozu _openPage? wenn du dann in dieser funktion eh shelexecute anwendest? bischen doppelgemoppel odernicht?
aber müsste das selbe dabei herrauskommen...
|
|
|
12/07/2010, 17:05
|
#15
|
elite*gold: 3
Join Date: Nov 2010
Posts: 607
Received Thanks: 227
|
Quote:
Originally Posted by omer36
ich helfe ja wirklic gerne.... aber...einbischen eigeninitiative währe nicht schlecht....
PHP Code:
#include <GUIConstants.au3> #include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Elitepvpers", 377, 755, 437, 124) $ElitePvPers = GUICtrlCreateButton("ElitePvPers", 8, 0, 353, 41, 0) $Button1 = GUICtrlCreateButton("Metin2 Pserver - Discussions / Questions", 8, 576, 353, 49, 0) $Button2 = GUICtrlCreateButton("Metin2 Pserver Guides & Strategies", 8, 632, 353, 49, 0) $Button3 = GUICtrlCreateButton("Metin2 Pserver News", 8, 688, 353, 49, 0) $Button4 = GUICtrlCreateButton("Metin2 Main - Discussions / Questions", 8, 48, 353, 49, 0) $Button5 = GUICtrlCreateButton("Metin2 Korea / US - Discussions / Questions", 8, 104, 353, 49, 0) $Button6 = GUICtrlCreateButton("Metin2 Black Market", 8, 160, 353, 49, 0) $Button7 = GUICtrlCreateButton("Metin2 Guides & Templates", 8, 224, 353, 49, 0) $Button8 = GUICtrlCreateButton("Metin2 Hacks, Bots, Cheats, Exploits & Marcros ", 8, 280, 353, 49, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ElitePvPers ShellExecute("www.elitepvpers.com") Case $Button1 ShellExecute("DEIN LINK") Case $Button2 ShellExecute("DEIN LINK") Case $Button3 ShellExecute("DEIN LINK") Case $Button4 ShellExecute("DEIN LINK") Case $Button5 ShellExecute("DEIN LINK") Case $Button6 ShellExecute("DEIN LINK") Case $Button7 ShellExecute("DEIN LINK") Case $Button8 ShellExecute("DEIN LINK") EndSwitch WEnd
|
geht irgendwie net
bekomme error
wenn ich bei Button1
link rein amche und dan F5 also ma teste
und auf Button 1 drücke kommt "DEIN LINK konnte nicht gefunden werden stelle sicher das der name richtig eingegeben ist."
was das komische ist why sagt der DEIN LINK habs doch geändert...
mfg
|
|
|
|
|
Similar Threads
|
[AUTOIT]Buttons Funktionen Zuweisen ?
08/04/2011 - AutoIt - 6 Replies
Ja brauch ma ne hilfe will ma den buttons Zuweisen das sie ihre ahl klicken zb bei dem
$Button1 = GUICtrlCreateButton("1", 40, 288, 49, 49, 0)
wenn man den anklicken sollte sollte auf nen label oder so eine eins angezeigt werden ;D aber auf inem anderen fenster
; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "Autoit", "Dieses Anfänger Script starten?Ach ja in der Version FUnktioniert der Nein Button Nich :D")
|
[Frage] Wege an G1 zu kommen
08/21/2010 - WarRock - 9 Replies
Gibt es noch andere möglichkeiten umsonst g1 zu verdienen gibt auser Playspan und die offers auf der warrock seite? Also z.b noch ne seite mit offers die g1 anbietet?
|
[AutoIt] Buttons mit Hover Effekt?
05/11/2010 - General Coding - 2 Replies
Hallo,
ich suche nach einer Möglichkeit, dass ich meinen Buttons, denen ich ein Hintergrundbild gegeben hab, einen Hover Effekt geben kann.
Kennt jemand eine Lösung?
Ich hab bis jetzt mit FileInstall eine Bilddatei hinzugefügt und das Bild auf den Button gelegt. Allerdings sieht er langweilig aus, da er nichts "macht" wenn man mit der Maus über ihn geht :(
Greetz
|
AutoIT (pickupbot) Frage wegen buttons
01/28/2010 - AutoIt - 4 Replies
So hallo erstma =) Hoffe ihr könnt mir helfen=)
also der quellcode und der nach mein prob.
Also ihr könnts auch ausprobieren=D Aufjedenfall kann ich den Start Button einmal drücken er startet aber ich kann nur einen Button drücken also kann nicht mehr den stop button klicken bzw klickn ja aber es passiert nichts auch wenn ich den Bot wieder beende geht info usw. nicht. (Also kurz gesagt: Ich kann nur einmal einen Button drücken, dernach funktionieren die anderen ned)
(ist mein 2tes...
|
hab ne frage wege
04/28/2006 - World of Warcraft - 6 Replies
also ich hab mal ne frage ich hab damals ragnarok gespielt und da is es so das man nach jedem lvl up stats points zu vergeben hatte zb. in str,agi,dex....... is es in wow auch so oder is es da ganz anders????
will nähmlich glei am anfang einen guten chara machen :D
|
All times are GMT +2. The time now is 12:21.
|
|