Paste, NO typing.

Get help with using AutoHotkey and its commands and hotkeys
Wazowski
Posts: 59
Joined: 16 Jun 2015, 21:04

Paste, NO typing.

22 Jun 2015, 16:33

There is some form of paste without typing do not have to do not copy it to the clipboard

example this code

Code: Select all

^+f::
clipboard = Wazowski
Send ^v
return
In short I want without typing without sticking to save it to the clipboard

Sorry for my bad English.
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Paste, NO typing.

22 Jun 2015, 16:52

Hi and welcome to the forum!
Paste uses the contents of the clipboard. There is no paste without the clipboard.
It is possible to save the current clipboard though:

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
User avatar
Blackholyman
Posts: 1292
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: Paste, NO typing.

22 Jun 2015, 16:56

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).
ControlSetText wrote:Changes the text of a control.
ControlSetText [, Control, NewText, WinTitle, WinText, ExcludeTitle, ExcludeText]
but why not use the clipboard?

Code: Select all

^+f::
clipsave := ClipboardAll
clipboard := "Wazowski"
Send ^v
sleep 200
clipboard := clipsave
return
will not affect the content of the clipboard

Edit: to slow :)
Also check out:
Courses on AutoHotkey

My Autohotkey Blog
:dance:
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Paste, NO typing.

22 Jun 2015, 17:06

I should have mentioned EditPaste and ControlSetText. Thanks.
Wazowski
Posts: 59
Joined: 16 Jun 2015, 21:04

Re: Paste, NO typing.

22 Jun 2015, 17:08

excellent reply

Thx kon

Thx Blackholyman

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, albertocv, braunbaer, Eureka, gero, Google [Bot], jekko1976 and 45 guests