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
copy some words and then when i press one key autohotkey will paste it in chattbox.
Re: copy some words and then when i press one key autohotkey will paste it in chattbox.
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
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.
Who is online
Users browsing this forum: No registered users and 158 guests