Jump to content
JackT

Understanding TJumpList

Recommended Posts

When right clicking my programs toolbar button it open the JumpList menu. I can add a Task which runs a program when selected with command line parameters ?

Is there any way to simply send a command to the program generating the taskbar button so that it executes the command against the current instance ?

I just want to add a function to show a hidden window.

 

Thanks for any help in advance

 

 

Jack T

Share this post


Link to post

My work around is to create a dll and call a function in it using RunDLL32 as the Task. I pass in the windows handle of my main window along with the name of the function I want to execute. The DLL posts a message to the main program window to make it do the thing I wanted it to do.

Edited by JackT

Share this post


Link to post

I used an EXE built in an older version (smaller size), it parses the cmdline, registers a mutual Windows Message then sends it back in the form of a WM_CopyData message.

 

Note:  WM_CopyData works across Application and Bitness boundaries

Share this post


Link to post
20 hours ago, FredS said:

I used an EXE built in an older version (smaller size), it parses the cmdline, registers a mutual Windows Message then sends it back in the form of a WM_CopyData message.

Or, you could just have the main EXE do that same work in its startup code to send the message to an existing instance of itself.  This has the added benefit that if there is no existing instance running, the new instance can continue to load itself normally, and then take the requested action when ready.

Edited by Remy Lebeau

Share this post


Link to post

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

×