thenewkid Posted July 1, 2007 Posted July 1, 2007 whats wrong with the code under the " Case $Button_open " when i try to opan a file it just deplays the path to that file and not what is inside the file if you know what i mean. this is my 1st time useing FileOpenDialog #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 345, 300, 193, 115, 0, 0) GUISetBkColor(0x808000) $Button_encript = GUICtrlCreateButton("Encript", 256, 184, 83, 25, 0) $Button_decript = GUICtrlCreateButton("Decript", 256, 240, 83, 25, 0) $Button_open = GUICtrlCreateButton("opan file to cript", 256, 128, 83, 25, 0) $Edit = GUICtrlCreateEdit("", 0, 0, 249, 273) $Button_exit = GUICtrlCreateButton("Exit", 256, 72, 83, 25, 0) $Label_pass = GUICtrlCreateLabel("", 266, 16, 54, 16) GUICtrlSetBkColor(-1, 0x808000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button_open $notes = FileOpenDialog("Load notes", @ScriptDir, "Notes (*.txt)", 1 + 2, "Notes") GUICtrlSetData($Edit, $notes) EndSwitch WEnd some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with
Helge Posted July 1, 2007 Posted July 1, 2007 when i try to opan a file it just deplays the path to that fileThat's what it's supposed to do.Check @error after FileOpenDialog and then use FileRead or something.
thenewkid Posted July 1, 2007 Author Posted July 1, 2007 thanks helge i just needed to add fileread some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now