Solved

API+keyboard+url

Posted on 2000-05-13
5
181 Views
Last Modified: 2013-11-20
hallo,

I want to make a programm that automatically changes the url of my browser to a specific one. Is there any way to do it with MFC?

An easy solution were just to move the mouse, click in "Location" and enter the url. I know how to move the mouse and click it, but, how can I type the text? I know this must be easy, but Im learning MFC only two weeks.


0
Comment
Question by:javiscript
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 2807474
::ShellExecute(hWnd, NULL, _T("http://www.experts-exchange.com"), NULL, NULL, SW_SHOWNORMAL);
0
 

Author Comment

by:javiscript
ID: 2808053
Adjusted points from 100 to 150
0
 

Author Comment

by:javiscript
ID: 2808054
hWnd = Undeclared identifier.
How can I get it?

Sorry, as I said, MFC is new to me! :)
0
 

Author Comment

by:javiscript
ID: 2808202
OK, You get the points and I post the question about hwnd as a separate question. Thanks!
0
 
LVL 23

Expert Comment

by:chensu
ID: 2808634
hWnd is just a window handle. It can be NULL or your window handle. In a CWnd derived member function, you may use

hWnd = this->GetSafeHwnd();
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question