I've run into the problem where multiple script processes writing to a log file at the same time can interfere with one another. That is, file writes using FileWriteLine are not atomic, so a line of text from one process can have fragments of text from other processes mixed in with it. Exclusive file-locking should take care of the problem.
Looking through the standard UDFs, I see that _WinAPI_LockFile is available, but according to the MSDN documentation it doesn't block - it returns immediately if the lock can't be obtained - and there doesn't seem to be a UDF for the LockFileEx function. I considered writing my own UDF for LockFileEx, but some aspects (e.g., creating the OVERLAPPED structure and its members) look too complex for the amount of time I have available. I think approximating LockFileEx using LockFile could solve my problem, but I'd like to keep it simple while still working reliably. I'm not confident that (e.g.) a simple retry loop to simulate blocking will be adequate.
Any suggestions for a simple way to achieve exclusive file-locking with blocking?
I want to sell some small scripts, simple stuff for a few bucks.
How can I make sure users need a password to use it?
Or maybe a licence that is good for a year? Lifetime?
I realize this is a very broad question...but can somebody point me in the right direction to get this done?
Scripts will be small automation snippets.
These example apps can be used to lock the keyboard and mouse (useful for test automation).
I've also included a Toddler/Child Lock app which lets them press some keys A-Z and 0-9 and move the mouse
and plays a sound.
Its uses BlockInputEx UDF
Most example ALT+ESC to end
Hi there! I created this stuff for anyone who wants to lock down their computer for a period of time. Very useful for parents to lock their son's computer
It is very hard to terminate the program by Task Manager because it blocks your input every second and even shutting down Windows is useless because it starts on WIndows startup. Enjoỳ̀̀̀̀̀̀̀̀̀̀̀̀̀̀
To use it, please compile.
Hey, my member's title is "Polymath", what does it mean?
Is it possible to lock a Windows dll (like user32) to block any function call from other applications?
Thanks for anyhelp.