100 posts in this topic
End process if not after 5:00
All I'm after is a script that will continuously check the time, and if a process starts before 5:00, then it will be killed straight away, if its after 5:00, then it is allowed to run. But on weekends the process is allowed to run at any time.
A script that I could just modify to my needs would be nice, but if someone could point me to the Help File section that will do what I need, that would be better.
Load Cell DLL Help
Not sure if this is the right area: I would like to create a small sub that runs a timer and uses a dll to query a USB load cell. I have had a general look at some of the resources on the forum...there is a lot...but was wondering whether someone could give me a bump in the right direction; I have linked the docs that came with the dll (5mg). Thanks for any advice.
Open Windows Shell Explorer
How can I start the Window SHell Explorer after closing it with this:
Run('TASKKILL /F /PID ' & ProcessExists('explorer.exe'))
I want to restart a program, if the window or process closes, the program gets crashed and so on.
I used Runwait in a While loop, that worked so far really good.
Now I got the problem that Windows sometimes does show me this window
it is not excatly that one but looks close to it.
So I want to close that window immidiatly if it appears.
Help with calling a DLL
I am trying to call my first DLL function but it won't work , I am trying to call GetFinalPathNameByHandle
$sFile = @DesktopDir & '\Test.txt' $hFile = FileOpen($sFile) $sFilePath = "" DllCall("Kernel32.dll", "STR", "GetFinalPathNameByHandle", "HANDLE", $hFile, "sz*", $sFilePath) MsgBox(0, 0, @error)Thanks in Advance, TD