Created
April 15, 2021 06:07
-
-
Save tqk2811/66fcaf80348e58174c44e47e9253eefe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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