Visit TC's Web site (how do you do that?)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tungwaiyip
Junior Member
Junior Member
Posts: 23
Joined: 2003-03-07, 23:27 UTC
Location: San Francisco, US
Contact:

Visit TC's Web site (how do you do that?)

Post by *tungwaiyip »

Under the help menu, there is an item "Visit Totalcmd's Web Site". Choosing it would make the default browser to load a new page with the URL http://www.ghisler.com/. I want to something similar in my own program. How is that done? Is there thru any COM api?

Thanks

Wai YIp Tung
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

Something like this:

Code: Select all

ShellExecute(0,NULL,"www.ghisler.com","","",SW_SHOWNORMAL);
Read About ShellExecute @ msdn.
Of all the planets I've been to, this one is my favorite.
tungwaiyip
Junior Member
Junior Member
Posts: 23
Joined: 2003-03-07, 23:27 UTC
Location: San Francisco, US
Contact:

Post by *tungwaiyip »

Cool. It works!

If there is an API to query the current URL for certain browser window it would be even cooler :mrgreen:
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

tungwaiyip wrote:Cool. It works!

If there is an API to query the current URL for certain browser window it would be even cooler :mrgreen:
Something like that:

Code: Select all

ShellExecute(0,NULL,"opera.exe","www.ghisler.com","",SW_SHOWNORMAL);
it was not tested.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Don't forget the http:// prefix, otherwise it may not work with some browsers! The command is

ShellExecute(0,NULL,"opera.exe","http://www.ghisler.com","",SW_SHOWNORMAL);
Author of Total Commander
https://www.ghisler.com
Post Reply