Jump to content

Triggering a function in a running script externally


sshrum
 Share

Recommended Posts

I wrote a utility that allows me to define different backgrounds for Windows Vista (using guicreate and picture...so basically I'm creating windows with my graphic and keeping it in the back).

Anywho...I wanted to add a context menu item to the gif,jpg,bmp file types (I know how to do this) that would give me the option to "set as desktop" except mine would be: Send to display 1 | Send to display 2 | etc.

I'd like to be able to trigger the running instance to deal with the call that I make from the context menu.

Any ideas? Possible?

TIA

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

You can not call a function directly in your external app. But you could have the external app monitor for a message, changes in a registry setting or use good old TCP/IP.

If I recall right I have a sample using PostMessage in my signature.

Happy scripting.

Link to comment
Share on other sites

I thought about that...monitoring the registry...but I was worried about overhead...polling the registry every (say) 3 seconds.

I'll need to check into it deeper and see what kind of load it causes.

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

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...