Link to home
Start Free TrialLog in
Avatar of javiscript
javiscript

asked on

API+keyboard+url

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.


ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of javiscript
javiscript

ASKER

Adjusted points from 100 to 150
hWnd = Undeclared identifier.
How can I get it?

Sorry, as I said, MFC is new to me! :)
OK, You get the points and I post the question about hwnd as a separate question. Thanks!
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();