954,224 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C# SendMessage to HTML document controls

All hi,

Is it possible to send messages (SENDMESSAGE/PostMessage...) to HTML controls such as Input Type Text or lists? I am able to get/set the url,title but I can't get to the document. Can it be done? Would you show me how?

Your help would be appreciated.
reallm,

reallm
Newbie Poster
5 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

do you mean to assign html script to i.e. richtextbox on a web page from another web page
or sending html email to email address?

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Thanks for your response.
You know how you use "SendMessage" to send a particular message to an APP. Do you know if there away to "SendMessage" to a web page controls? like to a textbox or to a list? or to a button?

reallm
Newbie Poster
5 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

yes you can, in http request put your parameters like

<a href="http://xyz.com?name=ramy">http://xyz.com?name=ramy</a>

in the page being requested and that has the control

textbox1.Text = Request["name"];
Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

Thanks, but not cigar.

I wrote an application that reads and sends information from one application to another application.
Now I would like to have this application send information to a IE window too, any IE window.
I want to read information from it and write to it from the application, just like a user would.

Thanks for your replay.

HELP!!!

reallm
Newbie Poster
5 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

Interacting with IE through another app requires that you control it through a provided API. For most Microsoft products (e.g. IE), they support Microsft Active Accessibilty (MSAA) (and here is another link). I don't know how well it supports manipulating HTML controls inside of the browser though. I think it might be possible through an IHTMLDocument but I honestly don't know how to get or use one.

Infarction
Posting Virtuoso
1,580 posts since May 2006
Reputation Points: 683
Solved Threads: 53
 

I know what are you asking i am looking for an spy++ code for infragistics controls like web controls, certanly i want to make a gui map like Ranorex Spy++, i don't know how but they did it... you know "i have to know", you can use ranorex an c# but that's not enought for me, i want to program it...

if you know something let me know

Bytes

Crisboot
Newbie Poster
1 post since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You