You can obviously do as follows:
Code: Select all
Var := "a"
Clipboard := Var
Code: Select all
Var := "a"
Clipboard := Var
Code: Select all
#Requires AutoHotkey v1.1.33+
Gui, Add, Edit, vTestinput w216 h50, %TestInput%
Gui, Add, Button,, Copy to Clipboard
Gui, Add, Button,, Hide
Gui, Add, Button, x+150, Exit
Return
ButtonCopyToClipboard:
Gui, Submit, NoHide
Clipboard := TestInput
Return
GuiClose:
ButtonExit:
ExitApp
ButtonHide:
Gui, Hide
Return
F10::
TestInput := ""
GuiControl,, TestInput, %TestInput%
GuiControl, Focus, TestInput
Gui, Show, x0 y0, TestInput
Send, % "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
Return
Code: Select all
F1::
ClipBoard =
SetTimer, abc, -10
Input, ClipBoard, T2
MsgBox,% ClipBoard
Return
abc:
Send,% "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
Return
Code: Select all
#3::Toggle_ENGnKOR()
SetInputLang(Lang)
{
WinExist("A")
ControlGetFocus, CtrlInFocus
PostMessage, 0x50, 0, % Lang, %CtrlInFocus%
}
GetLocaleID()
{
LocaleID = % DllCall("GetKeyboardLayout", Int,DllCall("GetWindowThreadProcessId", int,WinActive("A"), Int,0))
Return Format("0x{:X}", LocaleID)
}
Toggle_ENGnKOR()
{
LocaleID := GetLocaleID()
If (LocaleID = "0x4120412") ; If Korean
SetInputLang(0x04090409) ; English 0x0409
Else If (LocaleID = "0x4090409") ; If English
SetInputLang(0x04120412) ; Korean 0x0412
}