JackT 1 Posted yesterday at 11:14 AM 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
JackT 1 Posted yesterday at 03:00 PM (edited) 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 yesterday at 03:02 PM by JackT Share this post Link to post
FredS 140 Posted 20 hours ago 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
Remy Lebeau 1656 Posted 31 minutes ago (edited) 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 27 minutes ago by Remy Lebeau Share this post Link to post