Hi,
kurz und knapp: Ist es möglich, z.b. eine Textdatei (*.txt) mit Editor ODER Notepad zu öffnen?
Eigentlich möchte ich aus einer GUI heraus eine PDF in verschiedenen Programmen öffnen können (PDF Reader, PDF Explorer, TerraExplorer,...)
Beispiel:
AutoIt
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$GUI = GUICreate("GUI", 396, 116, 192, 114)
$in_file = GUICtrlCreateInput("", 8, 8, 377, 21)
$rb_note = GUICtrlCreateRadio("Öffnen mit Notepad", 8, 40, 113, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$rb_edit = GUICtrlCreateRadio("Öffnen mit Editor", 8, 56, 113, 17)
$open = GUICtrlCreateButton("Öffnen", 8, 80, 115, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $open
$file = GUICtrlRead($in_file)
If $file <> "" Then
If GUICtrlRead($rb_edit) = 1 Then
;$file -> Öffnen mit Editor
ElseIf GUICtrlRead($rb_note) = 1 Then
;$file -> Öffnen mit Notepad
EndIf
EndIf
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Alles anzeigen
Stelle mich da grade etwas an, ist ja quasi schon Schlafenszeit
Danke für die Hilfe.
Grüße,
x0r