how to send paste command Topic is solved
how to send paste command
I want to make a script that when I hit a key it sends what i have copied like 10 times. All I need is how to paste command.
Re: how to send paste command
evilC wrote:Send ^v
Code: Select all
+SC04D::
Loop, 10
{
Send, {Enter} ^v {Enter}
}
return
Re: how to send paste command
Send, %clipboard%
Re: how to send paste command
This might do it:
[EDIT:] Nice and colourful again (like one other post I did).
Code: Select all
q:: ;put text onto clipboard and invoke paste
vOutput := ""
Loop, 10
vOutput .= "MyText`r`n"
Clipboard := vOutput
SendInput ^v
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: how to send paste command Topic is solved
Send ^v does not work in environments like the command prompt. I particularly appreciated the "Send %clipboard%" idea. Even though that types it out and is slower, it works on all legitimate targets.
If there was a way to emulate "Right-Click Select Paste Click" that would be aweseom.
If there was a way to emulate "Right-Click Select Paste Click" that would be aweseom.
Re: how to send paste command
Ctrl+V works in the command prompt of Win10
Re: how to send paste command
Here's what I'm currently using to copy and paste on the command prompt:
Code: Select all
#IfWinActive, ahk_class ConsoleWindowClass
^v:: ;command prompt - send the clipboard
if InStr(vText, "`r")
vText := SubStr(vText, 1, InStr(vText, "`r")-1)
if InStr(vText, "`n")
vText := SubStr(vText, 1, InStr(vText, "`n")-1)
SendInput, % "{Text}" vText ;note: {Text} requires AHK v1.1.27+
return
^a:: ;command prompt - select all
PostMessage, 0x111, 65525,,, A ;WM_COMMAND := 0x111
return
^c:: ;command prompt - copy
PostMessage, 0x111, 65520,,, A ;WM_COMMAND := 0x111
return
#IfWinActive
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: No registered users and 138 guests