Jump to content

Recommended Posts

Posted

Hi. can someone help me with this code, why it won't work :/:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$GUI = GUICreate("Hide", 194, 23, 192, 124)
GUISetBkColor(0x000000)
$input = GUICtrlCreateInput("", 0, 0, 137, 21)
$GO = GUICtrlCreateButton("GO", 144, 0, 49, 21, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE

            Exit

        Case $GO
        FileSetAttrib($input, "+SHR")

    EndSwitch
WEnd

i can't get FileSetAttrib working with a variable :S.

Posted (edited)

FileSetAttrib(GUICtrlRead($input), "+SHR")

And I would suggesting looking at FileOpenDialog()

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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
  • Recently Browsing   0 members

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