1. How can I make the new assigned hotkey for Copy work even if in Paste and Cut is blank/empty? i get an error " " is not a valid key name.
2. The assigned hotkeys won't work if the checkbox is unchecked.
I'm really new and i don't know where to go to fix the error. This code giving me a hard time thanks in advance!
Code: Select all
#SingleInstance, Force
Gui, Add, Text,,Assign hotkey for Copy
Gui, Add, Hotkey, vKey1,
Gui, Add, Text,,Assign hotkey for Paste
Gui, Add, Hotkey, vKey2,
Gui, Add, Text,,Assign hotkey for Cut
Gui, Add, Hotkey, vKey3,
Gui, Add, CheckBox, x10 y150 vVClipHistory gGClipHistory, Use app's Clipboard History shortcut
Gui, Add, Button, gStoreKey, Save Settings
Gui, Show
OnClipboardChange("clipchanged")
return
clipchanged()
{
SoundBeep, 1500, 70
}
Return
GuiClose:
ExitApp
Copy:
Send ^c
return
Paste:
Send ^v
return
Cut:
Send ^x
return
StoreKey:
Gui, Submit, NoHide
Hotkey, %Key1%, Copy
Hotkey, %Key2%, Paste
Hotkey, %Key3%, Cut
return
GClipHistory:
Gui, Submit, NoHide
return
#If VClipHistory
~LButton & RButton::
Send, #v
return