Mbee Posted November 4, 2016 Author Posted November 4, 2016 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...
Moderators Melba23 Posted November 4, 2016 Moderators Posted November 4, 2016 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 Mbee 1 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Mbee Posted November 5, 2016 Author Posted November 5, 2016 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!
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