Jump to content

How to tell a UI to refresh from another script


Recommended Posts

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 ListView

If 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:

  1. Use the message queue
  2. PostMessage might post a message
  3. This message would need a non-system message, i.e.to be greater than WM_USER
  4. MSDN says that for non-system messages, I must do custom marshalling. I don't know what custom marshalling is.
  5. 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

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...