Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

do not move my topic to general help forum - but here it is anyway!

$
0
0
hi my friends

i am desirable person because of i am beginner in autoitscript. also People differ levels in mental capacity and I approve that I am not a genius . therefor i write my topic in this forum for getting your help and i can not post any thing in general help forum because of maybe admin melba give me block

can you help me in making tool that contain 2 buttons
lock (folder or file)
unlock(folder or file)

my script is not complete
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$form = GUICreate("", 149, 131, 247, 164)
$Button1 = GUICtrlCreateButton("block", 32, 64, 75, 25)
$Button2 = GUICtrlCreateButton("unbblock", 32, 96, 75, 25)
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  Case $Button1
			  Local $var = FileSelectFolder("Choose a folder.", "")

				 If @error Then
	MsgBox(4096, "", "No Folder(s) chosen")
	Else
				Example_1()
				Func Example_1()
		 Local $sFilePath = ($var)

Local $hLock = LockFile($sFilePath, 1)
	Local $hLock = FileOpen($sFilePath, 2)
	EndIf
	EndFunc
  Case $Button2
EndSwitch
WEnd



there is attached image for block

Attached Thumbnails

  • blockfolder.PNG

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>