AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1257
|
Posted: Mon Mar 22, 2021 12:39 pm Post subject: Copy and paste text with hotkey (Tutorial) |
|
|
I could not see a similar example in the forum archive.
Or for the search, the "Keyword" was wrong.
Below, I leave the copy-paste code used with the "F8" key.
Mouse movement will work inside or outside of CE.
(After double-clicking the text and selecting it; click "F8" to copy, click "F8" to paste.)
Code: | local indd1=1
function coppyy1()
if indd1==1 then
keyDown(VK_CONTROL)
doKeyPress(VK_C)
keyUp(VK_CONTROL)
indd1=2
else
keyDown(VK_CONTROL)
doKeyPress(VK_V)
keyUp(VK_CONTROL)
indd1=1
end
end
if hk then hk.destroy() hk=nil end
hk = createHotkey(coppyy1, VK_F8) |
Hopefully it benefits your business.
_________________
|
|