example this code
Code: Select all
^+f::
clipboard = Wazowski
Send ^v
return
Sorry for my bad English.
Code: Select all
^+f::
clipboard = Wazowski
Send ^v
return
Code: Select all
^+f::
ClipSaved := ClipboardAll ; Save the original clipboard
clipboard = ; Clear the clipboard (required for ClipWait)
clipboard = Wazowski
ClipWait, 1 ; Waits for the clipboard to contain data
if (!ErrorLevel) ; If ClipWait was successful...
Send ^v ; Paste
Sleep, 10
Clipboard := ClipSaved ; Restore the original clipboard
return
helpfile Control wrote:EditPaste, String: Pastes String at the caret/insert position in an Edit control (this does not affect the contents of the clipboard).
but why not use the clipboard?ControlSetText wrote:Changes the text of a control.
ControlSetText [, Control, NewText, WinTitle, WinText, ExcludeTitle, ExcludeText]
Code: Select all
^+f::
clipsave := ClipboardAll
clipboard := "Wazowski"
Send ^v
sleep 200
clipboard := clipsave
return