Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:48

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

Advertisement



[Autoit] Hilfe...komm nicht weiter

Discussion on [Autoit] Hilfe...komm nicht weiter within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2011
Posts: 53
Received Thanks: 15
Exclamation [Autoit] Hilfe...komm nicht weiter

Also ich will/wollte ein kleines Programm erstellen womit ich Programme starten kann damit es ewas schneller ist als immer auf desktop und starmenü zu klicken(ich möchte auch nicht das mein Desktop voller Verknüpfungen sind^^)
also ich habe mit dem Befehl :
GUICtrlCreateCombo
gearbeitet und will nun wenn man etwas auwählt das das Programm startet ..aber ich bekomme das nicth so hin
Hier der kleine Code :
Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$progs = GUICreate("Programme", 623, 442, 192, 124)
GUISetBkColor(0xC0C0C0)
$radiofx = GUICtrlCreateButton("radiofx", 40, 32, 65, 49, BitOR($BS_DEFPUSHBUTTON,$BS_PUSHBOX))

$start = GUICtrlCreateButton("start", 128, 32, 73, 49)

;liste
$List1 = GUICtrlCreateList("", 32, 136, 169, 240)
GUICtrlSetData(-1, "- RadioFx|- Free Moxilla FireFox|- Eingabeaufforderung|- CCleaner|- Speecy","")
;auswählen
$selection = GUICtrlCreateCombo("Programmliste", 304, 40, 193, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1,"- RadioFx|- Free Moxilla FireFox|- Eingabeaufforderung|- CCleaner|- Speecy","Programmliste")
;Funktionen
HotKeySet ("{esc}","Beenden")
Func Beenden()
   exit
   EndFunc
;disable button
GUICtrlSetState($radiofx, $GUI_DISABLE)
GUISetState(@SW_SHOW)


While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $radiofx
			Run ("C:\Programme\Tobit Radio.fx\Client\rfx-client.exe")
			           ; GUICtrlSetState($radiofx, $GUI_ENABLE)


	EndSwitch
WEnd
Ich habs wuach iwie mit der Liste versucht (GUICtrlCreateList) aber das ist iwie dasselbe Problem..
-Ich bin Anfänger..
Masterruffy is offline  
Old 07/29/2012, 15:23   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
z. b. so

PHP Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

HotKeySet ("{esc}","Beenden")

$progs GUICreate("Programme"623442192124)
GUISetBkColor(0xC0C0C0)
$radiofx GUICtrlCreateButton("radiofx"40326549BitOR($BS_DEFPUSHBUTTON,$BS_PUSHBOX))
$start GUICtrlCreateButton("start"128327349)
;
liste
$List1 
GUICtrlCreateList(""32136169240)
GUICtrlSetData(-1"- RadioFx|- Free Moxilla FireFox|- Eingabeaufforderung|- CCleaner|- Speecy","")
;
auswählen
$selection 
GUICtrlCreateCombo("Programmliste"3044019325BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1,"- RadioFx|- Free Moxilla FireFox|- Eingabeaufforderung|- CCleaner|- Speecy","Programmliste")
;
disable button
GUICtrlSetState
($radiofx$GUI_DISABLE)
GUISetState(@SW_SHOW)


While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$start
            $ComboRead 
GUICtrlRead($selection)
            Switch 
$ComboRead
                
Case "- RadioFx"
                    
ShellExecute( .... )
                Case 
"- Free Moxilla FireFox"
                    
ShellExecute( .... )
                Case 
"- Eingabeaufforderung"
                    
ShellExecute( .... )


            EndSwitch
    EndSwitch
WEnd

Func Beenden
()
   exit
EndFunc 
omer36 is offline  
Old 07/29/2012, 16:36   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 53
Received Thanks: 15
Smile

Also erst mal für die Antwort
also ich wollte eigentlich ohne den "start-button" öich habs mit dem versucht darum hab ich es dort eingefügt und du hast mir auch die lösung gezeigt danke
Aber eigentlich wollte ich wenn man etwas von der Liste auswählt dann auch sofort startet ohne auf den startbutton zudrück ^^ funktiioniert das?

Edit : habs selber rausgefunden ..auch wenns vllt nicht ganz richtig ist : man muss anstatt
PHP Code:
Case $start
            $ComboRead 
GUICtrlRead($selection)
            Switch 
$ComboRead
                
Case "- RadioFx"
                    
ShellExecute("C:\Programme\Tobit Radio.fx\Client\rfx-client.exe"
nur "Case" ändern als direkt auf der combo
PHP Code:
Case $selection
            $ComboRead 
GUICtrlRead($selection)
            Switch 
$ComboRead
                
Case "- RadioFx"
                    
ShellExecute("C:\Programme\Tobit Radio.fx\Client\rfx-client.exe"
Masterruffy is offline  
Reply


Similar Threads Similar Threads
Brauch hilfe komm nicht weiter...
09/05/2011 - Metin2 - 9 Replies
Hallo Epvp, Also ich will nach 2 monat wieder DE anfangen bin grad lvl 48 auf hyperion und hab nicht so ein gutes eq !! Also wollte ich euch die Profis fragen was ich jetzt machen soll was würdet ihr mir vorschlagen was ich machen soll? Würde mich sehr freuen wenn ihr mir weiterhelft weil ich hab grad kp was ich machen soll !
Hilfe! Komm nicht weiter
09/01/2011 - Minecraft - 1 Replies
Hey Com, Ich bin ganz neu in der minecraft welt und brauche hilfe ich kann mich nicht auf homepage registrieren , da steht imer captcha ist falsch obwohl kein dabei ist .... Und wenn ich das downloaden will für Windows steht da Keine sicher Internetseite, also sollte ich nich vertrauen, kommt das bei euch oder soll ich ignorieren? Hab keine lust auf Viren oder so -.- Was habt ihr gemacht ? pLs HeLp
KOMM NICHT WEITER!!!HILFE!!!!!
08/27/2010 - Metin2 Private Server - 7 Replies
hallo leutre, ich hab mich in mienen server eingeloggt,doch als ich dann beim russi händler geschaut habe war der shop leer und beim waffenhändler auch. Was muss ich machen. hier ist screenhttp://img833.imageshack.us/img833/7161/item shopproblem.png bitte helft mir. helfer bekommt natürlich thx
Hilfe komm nicht weiter
12/07/2009 - Metin2 Private Server - 0 Replies
Hallo, Bin grade dabei einen server zu machen ich habe die files und so doch ich komme iwi nicht weiter mit accs erstellen und das der auf hamachi leuft glaub wegen portmaps oder so kp. wollte fragen obmir jemand helfen kann und es mir über skype und teamviewer erklären kann. meine skype addi ist: XxSo0nyxX msn: [email protected] könnte uach auf nen Ts server kommen



All times are GMT +1. The time now is 15:49.


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.