c.haslam Posted May 6, 2015 Posted May 6, 2015 I have a script (Script 1) that schedules tasks to the Task Scheduler. It has no UI. (It runs when the Task Scheduler tells it to run.)I have another script (Script 2) that has a UI that reads task info from the Task Scheduler. It shows task info in a ListViewIf Script 2 is running, when Script 1 schedules a task, I want Script 2 to update the ListView.How do I do this?I have got as far as:Use the message queuePostMessage might post a messageThis message would need a non-system message, i.e.to be greater than WM_USERMSDN says that for non-system messages, I must do custom marshalling. I don't know what custom marshalling is.Script 2 uses a message loop. Will GetMsg() receive the message?Am I on the right track? Is there an easy way? Is there anything on the forums that would help?...chris Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard
jguinch Posted May 6, 2015 Posted May 6, 2015 MailSlot ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
CodeTinkerer Posted May 6, 2015 Posted May 6, 2015 Pass the message through a file, read the file from the second script?
c.haslam Posted May 7, 2015 Author Posted May 7, 2015 jguinch, thanks for mailslot. Looks like a good candidate. Code Tinkerer, not sure where in the UIish script, to check for file existence. In the message loop, but how? Spoiler CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard
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