Jump to content

Melba23: Can I get your help with FileSystemMonitor UDF?


Mbee
 Share

Recommended Posts

I've found another UDF that might possibly do what I want, by @Yashied , but it's too poorly documented for a noob like me to figure out whether it'll do what I need and how, exactly, to use it.  Here's a link to it: RDC UDF (ReadDirectoryChanges Wrapper).

There's also the official (i.e., non-UDF) function: _WinAPI_ReadDirectoryChanges(), but again, I can't quite figure out whether it'll do what I need and how to use it the way I want, which is with OnEvent mode.  The doc page on that function confusingly states: "The _WinAPI_ReadDirectoryChanges() function works only in synchronous mode."  But isn't AutoIt always synchronous?  Or is that warning saying that you can only use it in Message Mode, and never in OnEvent mode?  I'm confused...

 

Link to comment
Share on other sites

  • Moderators

Mbee,

It does look very much as if the seangriffin UDF does not want to play nicely with your 64-bit system, but as I do not have access to such a  beast I cannot investigate further.

The Yasheid UDF works very nicely using the 32-bit DLL - which given his talent is hardly surprising. This is a sample output I get:

1 - M:\Program\Au3 Scripts\~TEST1~\fred1.au3
3 - M:\Program\Au3 Scripts\~TEST1~\fred1.au3
1 - M:\Program\Au3 Scripts\~TEST3~\fred1.au3.2.bak
3 - M:\Program\Au3 Scripts\~TEST3~\fred1.au3.2.bak
2 - M:\Program\Au3 Scripts\~TEST1~\fred1.au3

The codes seem to be the same as used in the seangriffin UDF - 1 = added, 2 = deleted, 3 = modified.

So I would suggest trying to use Yashied's UDF and see how it works for you on x64. You will need to download the zip and place RDC.au3 and the RDC_x64.dll files in the script folder.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Thanks whole big bunches for your time and patience @Melba23 !

@Yashied 's UDF (after some very minor corrections) worked great in 64-bit mode!  (I described the corrections and uploaded the corrected UDF here: https://www.autoitscript.com/forum/topic/167024-rdc-udf-readdirectorychanges-wrapper/?do=findComment&comment=1331694

That UDF was ideal for me because I wanted to work in OnEvent mode, which it handled with aplomb by creating another thread to watch for directory changes which sent a special message to indicate such changes.  Nice!

As always, I am extremely grateful to yourself and all the other brilliant coders and posters here!

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...