Jump to content

Retrieving selected text in SciTe into an AutoIt variable


c.haslam
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...