ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
89 stars 45 forks source link

clickpaste/ #75

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

ClickPaste the Best Program You Never Heard Of

Having Fun with Technology

https://christitus.com/clickpaste/

kAMENkitA commented 2 years ago

Thanks for introducing us with the program..

aamirazad commented 1 year ago

Is there the same thing but for linux?

ChrisTitusTech commented 1 year ago

Is there the same thing but for linux?

@aamirazad Need to do a video on this, but the short of it is install xdotool and then bind an alias like alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"' and it does the same thing.

Vaisakhkm2625 commented 1 year ago

Cool.. did this had a comment section?? i didn't saw this one year ago

I wanted to share few script that does the same thing...

for windows...

$wshell = New-Object -ComObject wscript.shell;$txt='';foreach ($element in $(Get-Clipboard)){$element=$element -replace '[+^%~(){}]','{$0}';$element= -join($element,'{ENTER}');echo $element;$txt = -join($txt,$element);};sleep 4; $wshell.SendKeys($txt);

for linux wayland (chirs shared x11)

sleep 3;ydotool type $(wl-paste)

for macos (https://stackoverflow.com/a/63468725/15070114)

delay 4

tell application "System Events" to keystroke (the clipboard as text)

same thing as a gist.. https://gist.github.com/Vaisakhkm2625/c8c61ef2fca3a345fb1e28f80bd766d8 (one star would be appreciated... :) )

f3rrix commented 1 year ago

And now it has support for hotkeys (I am skeptical of the usefulness, but someone kindly made it a pull request). Next release will hopefully be an MSI installer. There's a partial pull for that already but I need to work on it more. :)