Jump to content
Sign in to follow this  
polihale

Capturing the highlighted text from Edit box

Recommended Posts

polihale

Hi, first of all, I used AutoIt quite a bit for four years. And this is only the second time I've posted a question. That's a testament to the Help Screens and the stability of the product.

So, I'm using GUICtrlCreateEdit. I manually enter some text, then manually highlight (select) just SOME of the text. I then want to click a button that will be aware of the highlighted text. I can't find a control for this. Think of a word processor where you highlight some text and click "Bold", for example, to modify the highlighted text.

Any suggestions are welcome.

Thanks, Christopher

Share this post


Link to post
Share on other sites
Andreik

You can use _GUICtrlEdit_GetSel() and _GUICtrlEdit_SetSel() or function from GuiRichEdit.au3

Edited by Andreik

When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.