Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:40

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

Advertisement



Problem mit AutoIt

Discussion on Problem mit AutoIt within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Goxide's Avatar
 
elite*gold: 11
Join Date: Jan 2009
Posts: 247
Received Thanks: 100
Problem mit AutoIt

Hallo Com
Hab ein kleines Problem.
Ich hab mich mal drangemacht AutoIt zu lernen und behersch die Grundlagen aus der Guide (Grundlagen I-V).
Wollt mich mal an die GUI machen.
Hab ne GUi mit Koda gesingt und wollt den Button jetzt mal Funktionen zuweisen.

Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Erste GUI", 413, 299, 263, 201)
$Button1 = GUICtrlCreateButton("Ein Button", 40, 32, 81, 33, 0)
GUICtrlSetBkColor(-1, 0x99B4D1)
$Group1 = GUICtrlCreateGroup("Optionen:", 216, 16, 161, 209)
$Button2 = GUICtrlCreateButton("Editor", 240, 64, 105, 25, 0)
$Button3 = GUICtrlCreateButton("Firefox", 240, 104, 105, 25, 0)
$Button4 = GUICtrlCreateButton("Opera", 239, 146, 105, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button6 = GUICtrlCreateButton("2ter Button", 42, 88, 81, 33, 0)
GUICtrlSetBkColor(-1, 0x99B4D1)
$Button7 = GUICtrlCreateButton("Exit", 40, 240, 241, 41, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

		Case $Button2
			_Func2 ()

		Case $Button6
			_Func3 ()

		Case $Button7
			_Func4 ()

		Case $Button3
			_Func5 ()

		Case $Button4
			_Func6 ()

	EndSwitch
WEnd

Func _Func1 ()
	MsgBox (0, "JA :)", "Du hast meinen Button geklickt :)")
EndFunc
Func _Func2 ()
Run ("notepad.exe")
EndFunc
Func _Func3 ()
	MsgBox ( 0, "You have clicked Button2", "Hay :D", 5)
EndFunc
Func _Func4 ()
	Exit
EndFunc
Func _Func5 ()
	Run ("firefox.exe")
	EndFunc
Func _Func6 ()
	Run ("opera.exe")
	EndFunc
Doch wenn ich Button 3 oder 4 drücke öffnen sich weder Firefox noch Opera...
Woran liegt dies?

Ich freu mich über eure Antworten
mfg
Goxide is offline  
Old 11/13/2009, 10:49   #2
 
muse-'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
weil du den jeweiligen pfad nicht angegeben hast

z.b. "C://Programme/Opera/Opera.exe"

damit er weiß worauf er zurückgreifen soll

gruß
muse- is offline  
Thanks
1 User
Old 11/13/2009, 10:55   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 429
Received Thanks: 78
Quote:
Originally Posted by pwna=) View Post
weil du den jeweiligen pfad nicht angegeben hast

z.b. "C://Programme/Opera/Opera.exe"

damit er weiß worauf er zurückgreifen soll

gruß
^this geh mal in den Task-Manager, führ nen neuen Prozess mit dem Namen "firefox.exe" aus. Er wird dir anzeigen, dass der Prozess nicht gefunden wurde. Nichts anderes tut AutoIt
Esamu is offline  
Old 11/13/2009, 13:46   #4
 
Goxide's Avatar
 
elite*gold: 11
Join Date: Jan 2009
Posts: 247
Received Thanks: 100
perfect danke jetzt weiß ichs..
hast ein thx.
kann geschloßen werden.
Goxide is offline  
Reply




All times are GMT +1. The time now is 03:40.


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.