Im trying to make a program that imitates copy/paste, but i cant seem to figure out how i can save the selected text to a string. Does anyone have any ideas? thanks
Ok, here is a little bit changed script, now it's exit as it should (we need to set timer on more than 10 ms, otherwise it will fail):
HotKeySet("{ESC}", "_Mouse_Exit_App")
Global $i_Mouse_Is_Down = False
Global $i_Mouse_Primary = 0x01 ; 0x01 = left for primary, 0x02 = right
Global $a_hMouseMod_hTimer = _Mouse_StartWatch("_Mouse_GetHighlight_ToClipboard", 0, 10001, 1000)
While 1
Sleep(100)
WEnd
Func _Mouse_GetHighlight_ToClipboard()
If Not $i_Mouse_Is_Down Then
Local $a_GetAsync = Dl