| Author |
Message |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: August 31st, 2008, 10:45 pm
|
|
Replies: 96 Views: 24173
|
| Select folders one at a time. It needs cleaning up, but hopefully you get the point. "Stop" is disabled and directories cannot be removed. (I'll leave it to someone else to add these features.) I'm experimenting your script these days. I am not skilled at all with dll call, but what is it... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 20th, 2008, 3:50 pm
|
|
Replies: 96 Views: 24173
|
| Okay! I will look into it. :) Sorry, another problem with your dll. In a "dos" window, I run "edit newfile.txt" to create a new file and edit its content. The creation is correctly signaled. But when I finish to edit the file I cannot save it. I always receive a "error 32&q... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 17th, 2008, 8:44 pm
|
|
Replies: 96 Views: 24173
|
| I wish an explanation, if you can. Loop { ReadDirectoryChanges() GoSub, Decode_FILE_NOTIFY_INFORMATION Sleep 100 If !Watch Break } I apologize for my previous very stupid question. I did misunderstanding the functioning of ReadDirectoryChanges(). Now it seems to me that the script... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 17th, 2008, 4:53 pm
|
|
Replies: 96 Views: 24173
|
| I wish an explanation, if you can. ...and simplified loop in WatchFolder: Loop { ReadDirectoryChanges() GoSub, Decode_FILE_NOTIFY_INFORMATION Sleep 100 If !Watch Break } I put a msgbox instruction at the beginning of sub Decode_FILE_NOTIFY_INFORMATION. So I realized that the sub is... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 16th, 2008, 10:09 pm
|
|
Replies: 96 Views: 24173
|
SKAN wrote: Oh! Try adding Critical .. might help:
Sorry, no change.
I suspect it depends on the dll. I do not know C, C+, C++, C#, but what about the following line?
Code: FILE_NOTIFY_INFORMATION Buffer[1024]; //currently we only deal with first not all |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 16th, 2008, 9:02 pm
|
|
Replies: 96 Views: 24173
|
| @ caterva : Further to our PMs, I post the DLL version of Synchronous method: Download: dirw.dll ( 16k only ) A template to use the above DLL follows: :) Many many thanks for your wonderfully simple program. Anyhow, it seems to me that it intercepts only file creations and deletions. Do you know ho... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 15th, 2008, 6:18 pm
|
|
Replies: 96 Views: 24173
|
| I realized anomalous behavious when watching folder "c:\documents and settings\user\Documents". Folderspy (or, more precisely, ReadDirectoryChangeW), cyclically continues to signal the modification of all the files in that folder! Moreover, as I have already written, whatever is the watche... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 11th, 2008, 9:55 am
|
|
Replies: 96 Views: 24173
|
| Many thanks for your work. By now, just two questions: 1) What about the "TerminateThread" call? Unlike SKAN script, there is not any call to "OpenThread" 2) I do not understand the need of "CreateFile" call (that is present also in SKAN script")? Can you explain m... |
|
 |
Forum: Support Topic: how to use SciTE for AutoHotKey |
| caterva |
|
Posted: April 10th, 2008, 11:43 pm
|
|
Replies: 2 Views: 499
|
| you can see here Thanks for your reply. I'm download the suggested zip file, and I recognized that the contained SciTe version run only for ahk files. I looked also for other solutions but without success. I wish to know if there is a ready-configured SciTE to use both for au3 scripts and ahk scrip... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 10th, 2008, 5:07 pm
|
|
Replies: 96 Views: 24173
|
Lexikos wrote: No, A_LoopFileLongPath is only valid inside a loop.
Damn, you are right, I'm a stupid man. So, when there are not brackets, I must assume that the loop involves the following only one line?
And what about the several notifications I receive for each file change once FolderSpy is executed? |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 10th, 2008, 10:59 am
|
|
Replies: 96 Views: 24173
|
| In this case it expects there to be only one matching folder; i.e. it uses the loop only to get the full path of the file (A_LoopFileLongPath.) Oh, at last I think to have understood! Equivalently, I could have written Loop %WatchFolder%, 1 { } WatchFolder := A_LoopFileLongPath Isn't it? ... |
|
 |
Forum: Support Topic: how to use SciTE for AutoHotKey |
| caterva |
|
Posted: April 10th, 2008, 9:45 am
|
|
Replies: 2 Views: 499
|
I wish to know how I can use SciTE editor for AutoHotKey script so to have the run [F5]/stop commands available.
I have only a bit experience in AutoIt, so I'm having some difficulties when editing my first scripts in AutoHotKey using notepad .
Thanks for your patience. |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 10th, 2008, 9:34 am
|
|
Replies: 96 Views: 24173
|
| Thanks for your reply. I'm having some doubts yet. You can see what Loop %WatchFolder%, 1 WatchFolder := A_LoopFileLongPath does in the docs for looping a folder Which is the aim of this loop? It seems to me that the variable %WatchFolder% is overwritten at every step. DllCall( "shlwapi\Pat... |
|
 |
Forum: Scripts Topic: Crazy Scripting : FolderSpy v0.96 [ Synchronous ] |
| caterva |
|
Posted: April 9th, 2008, 11:55 pm
|
|
Replies: 96 Views: 24173
|
| I'm a newbie and I'm trying to learn AutoHotKey. So forgive me if I make some trivial questions. Loop %WatchFolder%, 1 WatchFolder := A_LoopFileLongPath DllCall( "shlwapi\PathAddBackslashA", UInt,&Watchfolder ) Which is the meaning of the previous three code lines? Moreover, on... |
|
 |
| Sort by: |