copy some words and then when i press one key autohotkey will paste it in chattbox.

Ask gaming related questions (AHK v1.1 and older)
maload
Posts: 40
Joined: 05 Mar 2017, 22:13

copy some words and then when i press one key autohotkey will paste it in chattbox.

25 Feb 2018, 04:21

i want to copy some words and then when i press one key autohotkey will paste it in chattbox.

i look at this script and sometime it work and sometime it keep spam There is no place like home ....

1::
;;;;;SavedClip := ClipboardAll
Clipboard := "There is no place like home"
Send ^v
;;;;;Clipboard := SavedClip
;;;;;SavedClip := ""
return

thank you
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: copy some words and then when i press one key autohotkey will paste it in chattbox.

25 Feb 2018, 04:45

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

1::
    Send ^v
    return

esc:: ExitApp ; press esc to close script
From my inference you want to press 1 to paste clipboard?

Keep in mind you should press 1 only once. The reason it said "There is no place like home" was because you assigned a value to clipboard, and this was within the hotkey. So when you pressed the hotkey, your clipboard would have that text regardless of what you had selected. And ctrl+v pastes clipboard, hence that text was sent.
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 158 guests