Jump to content

FileOpenDialog


Recommended Posts

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...