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
HotKeySet("{ESC}", "_Mouse_Exit_App")
Global $f_mouse_is_down = False
Global $i_mouse_primary = 0x01 ; 0x01 = left for primary, 0x02 = right
Global $h_mouse_mod, $h_mouse_timer
$h_mouse_timer = _Mouse_StartWatch($h_mouse_mod, "_Mouse_GetHighlight_ToClipboard", "int", "", 0, 10003, 10)
While 1
Sleep(100000)
WEnd
Func _Mouse_GetHighlight_ToClipboard()
If Not $f_mouse_is_down Then
Local $a_getasync = DllCall("User32.dll", "int", "GetAsyncKeyState", "int", $i_mouse_primary)
If Not @error An