🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by TomasVercetti Sat, 10 Jun 2006 22:25
Accessing desktop's right-click menu items from application
#3444
Author: TomasVercetti
Date: Sat, 10 Jun 2006 22:25
15 lines
1445 bytes
I have a utility which organizes the positions of desktop icons.
(It`s a .dll extension for explorer.) But the only way to switch
profiles is through the desktop's right-click menu > Icon Keeper
> Select Active Profile > Profiles name. So I want to switch that
profiles using hotkey manager (like through the Windows Run) by
the following manner: myapplication.exe -profilename. 
Myapplication is assumed to have no window.
1. How to create application without window at all?
2. How can I pass "-someoption" into the application?
3. How access desktop's right-click menu items to simulate click
action?

Please give me directions how to act.
Sorry for my English and Thank You.
Re: Accessing desktop's right-click menu items from application
#3454
Author: TomasVercetti
Date: Mon, 12 Jun 2006 10:03
10 lines
1096 bytes
I made:

>1. How to create application without window at all?
>2. How can I pass "-someoption" into the application?

but still wonder

>3. How access desktop's right-click menu items to simulate click
>action?
Re: Accessing desktop's right-click menu items from application
#3459
Author: JF Jolin
Date: Mon, 12 Jun 2006 19:15
1 lines
911 bytes
::mouse_event()
Re: Accessing desktop's right-click menu items from application
#3463
Author: TomasVercetti
Date: Tue, 13 Jun 2006 15:07
2 lines
1131 bytes
Thank you. I can simulate mouse actions using SendInput. But I don`t want to manipulate with the mouse coursor, expand right-click menu and so on. As I presume the list of items in right-click menu is kept in registry. How can I get the item needed and execute it?
Re: Accessing desktop's right-click menu items from application
#3461
Author: Bob Gonder
Date: Tue, 13 Jun 2006 15:35
13 lines
1613 bytes
TomasVercetti wrote:

> As I presume the list of items in right-click menu is kept in registry. How can I get the item needed and execute it?

It starts with RegOpenKeyEx()
You might look in the help for "Retrieving Data from the Registry"
If you want to use the VCL, Google for Remy and registers. He has
posted many examples.

As for parameters to the executable, that depends on which of several
functions you are going to use to execute it. However, they all have a
"parameters" parameter.
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads