944,204 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 6387
  • C# RSS
Oct 13th, 2007
0

C# SendMessage to HTML document controls

Expand Post »
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,
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
reallm is offline Offline
5 posts
since Aug 2007
Oct 13th, 2007
0

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?
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Oct 15th, 2007
0

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
reallm is offline Offline
5 posts
since Aug 2007
Oct 15th, 2007
0

Re: C# SendMessage to HTML document controls

yes you can, in http request put your parameters like
C# Syntax (Toggle Plain Text)
  1. <a rel="nofollow" href="http://xyz.com?name=ramy" target="_blank">http://xyz.com?name=ramy</a>
in the page being requested and that has the control
C# Syntax (Toggle Plain Text)
  1. textbox1.Text = Request["name"];
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
Oct 15th, 2007
0

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!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
reallm is offline Offline
5 posts
since Aug 2007
Oct 18th, 2007
0

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.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Dec 26th, 2008
0

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Crisboot is offline Offline
1 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: textbox value check with Access
Next Thread in C# Forum Timeline: Adding new item to combobox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC