I did not switch my request. I want to get the highlighted text in all programs. But you see, in IDEs, if we send("^c") when we highlighting nothing, we will get a line of text; But when we highlighting some text then send("^c"), we get the text highlighted. You will always copy some text, even you did not highlight any text. So, if you runing this script in those programs(IDEs): Send("^c")
Func f()
$Data = ClipGet();gets data from clipboard
If $Data <> "" Then
Local $text='@'&$textHighlighted&'@' ;if you highlight a word "apple", $text="@apple@"
ClipPut($text)
Send($Data) ;"@apple@" instead of "apple"
Else
MsgBox(0,"","NOTHING")
EndFuncYou will never see the MsgBox, even nothing highlighted. ps.May be I describe aren't good enough, English is not my native language, and my English is a shit.