Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / July 2008



Tip: Looking for answers? Try searching our database.

send message to inactive window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nick - 26 Jul 2008 19:48 GMT
Hi everyone,

I am interested in sending messages to an inactive window. I know that
it
is possible, I tested it with notepad.
I was able to send WM_CHAR and "type" in the edit box of notepad while
it
was inactive.

Now, I want to do a similar thing using an applet interface instead of
notepad. The applet runs in Firefox. The main thing I want to
accomplish
is to press a button. I was not able to obtain any identifier for
the button. When I used the spy++ from visual studio I could not
select independently the button. I could select only a larger area
that includes the button.

I sent the messages captured by spy++ to that larger area while
Firefox
was inactive but nothing  happened. The button was not pressed.

So, is it possible to press a button while the window that contains
the
button is inactive? Is the code that processes the message run if the
window is inactive?

Thanks.
PeterD - 26 Jul 2008 21:31 GMT
>Hi everyone,
>
[quoted text clipped - 7 lines]
>Now, I want to do a similar thing using an applet interface instead of
>notepad. The applet runs in Firefox.

Ouch. Study how Firefox works, how it was made to be portable, and OS
independant.

>The main thing I want to
>accomplish
>is to press a button. I was not able to obtain any identifier for
>the button.

Because there is *no* identifier. Everythign you see in Firefox (or
Thunderbird) is 'faked' by them!

>When I used the spy++ from visual studio I could not
> select independently the button. I could select only a larger area
[quoted text clipped - 7 lines]
>the
>button is inactive?

In a 'true' Windows application? Yes, possible. In
Firefox/Thunderbird? Not likely.

>Is the code that processes the message run if the
>window is inactive?
>
>Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.