DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   C# SendMessage to HTML document controls (http://www.daniweb.com/forums/thread92884.html)

reallm Oct 13th, 2007 6:08 pm
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,

Ramy Mahrous Oct 13th, 2007 9:26 pm
Re: C# SendMessage to HTML document controls
 
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?

reallm Oct 15th, 2007 5:38 pm
Re: C# SendMessage to HTML document controls
 
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?

Ramy Mahrous Oct 15th, 2007 9:34 pm
Re: C# SendMessage to HTML document controls
 
yes you can, in http request put your parameters like
http://xyz.com?name=ramy
in the page being requested and that has the control
textbox1.Text = Request["name"];

reallm Oct 15th, 2007 11:42 pm
Re: C# SendMessage to HTML document controls
 
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!!!

Infarction Oct 18th, 2007 2:55 am
Re: C# SendMessage to HTML document controls
 
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.

Crisboot Dec 26th, 2008 8:40 am
Re: C# SendMessage to HTML document controls
 
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


All times are GMT -4. The time now is 1:52 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC