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
Visit TC's Web site (how do you do that?)
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 23
- Joined: 2003-03-07, 23:27 UTC
- Location: San Francisco, US
- Contact:
Something like this:
Read About ShellExecute @ msdn.
Code: Select all
ShellExecute(0,NULL,"www.ghisler.com","","",SW_SHOWNORMAL);
Of all the planets I've been to, this one is my favorite.
-
- Junior Member
- Posts: 23
- Joined: 2003-03-07, 23:27 UTC
- Location: San Francisco, US
- Contact:
Something like that:tungwaiyip wrote:Cool. It works!
If there is an API to query the current URL for certain browser window it would be even cooler
Code: Select all
ShellExecute(0,NULL,"opera.exe","www.ghisler.com","",SW_SHOWNORMAL);
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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);
ShellExecute(0,NULL,"opera.exe","http://www.ghisler.com","",SW_SHOWNORMAL);
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com