Solved

API+keyboard+url

Posted on 2000-05-13
5
174 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 110
iSeries DB2 Query 2 84
how to monitor remote shell execution on linux 9 93
ShiftLeft challenge 21 66
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now