Jump to content
Sign in to follow this  
c.haslam

Retrieving selected text in SciTe into an AutoIt variable

Recommended Posts

c.haslam

How can I retrieve text which has been selected in SciTe into an AutoIt variable?

I have got as far as selecting a line of text using Send("{Home}+{End}")

...chris

Edited by c.haslam

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

Share this post


Link to post
Share on other sites
c.haslam

I have got part-way to a solution:

#include <clipboard.au3>
Local $line, $ar
Send("{Home}+{End}")
Sleep(1000)
Send("^C")
$line = _ClipBoard_GetData()

but this replaces the current line with ETX.

...chris

Edited by c.haslam

Spoiler

CDebug Dumps values of variables including arrays and DLL structs, to a GUI, to the Console, and to the Clipboard

 

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.