Sign in to follow this  
Followers 0
corgano

get Richedit text

6 posts in this topic

I need to find a wat to get the text of a richedit control and a way to set the text of a richedit controll.

All i have to do this from is a control ID, and controlgethandle($ID) does not work on richedit controlls

How do I do this? (the control ID is 1000)


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites



Opt('SendKeyDelay', 0)

ShellExecute('wordpad')
WinWaitActive('[CLASS:WordPadClass]')
$hwnd = ControlGetHandle('[CLASS:WordPadClass]', '', '[CLASS:RICHEDIT50W]')
ControlSend('', '', $hwnd, 'AutoIt-1-2-3')

MsgBox(0x40, 'Info', 'Control handle: ' & $hwnd & @LF & 'Control text: ' & ControlGetText('', '', $hwnd))
TY, that indeed works, but i am trying to get the text of a richedit controll in a chat window (gameranger). How would i modify this code?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

that udf did not work at all. i got the example to work though.


0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0