Skip to content

Instantly share code, notes, and snippets.

@tqk2811
Created April 15, 2021 06:07
Show Gist options
  • Save tqk2811/66fcaf80348e58174c44e47e9253eefe to your computer and use it in GitHub Desktop.
Save tqk2811/66fcaf80348e58174c44e47e9253eefe to your computer and use it in GitHub Desktop.
#include <GUIConstantsEx.au3>
#include <Misc.au3>
$Form1=GUICreate("" ,150,30,-1,-1,-1 ,-1)
$i = GUICtrlCreateInput("4",5,5,20,20)
GUISetState(@SW_SHOW,$Form1)
Global $dll = DllOpen("user32.dll")
AdlibRegister("_HotKeySet",0)
While 1
$nMsg=GUIGetMsg ()
$i_ = GUICtrlRead($i)
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _HotKeySet()
If _IsPressed("11", $dll) And _IsPressed("43", $dll) Then
edit_copy()
EndIf
EndFunc
Func edit_copy()
$data = ClipGet()
$data_ = StringMid($data,$i_)
ClipPut($data_)
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment