ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Skrommel's Software

Use PlainPaste without Tray Icon?

(1/1)

JTux:
Is it possible to add the paste function from PlainPaste ahk script to the script that runs when AutoHotKey loads? Basically I love this little app but I want to reduce the number of sytem tray icons that load.
Thanks.

lanux128:
yes, you can. Skrommel has included the source as well with the downloads. let me know if you need help in doing that.

JTux:
yes, you can. Skrommel has included the source as well with the downloads. let me know if you need help in doing that.
-lanux128 (January 07, 2009, 07:53 PM)
--- End quote ---
Well since you have offered...  :)
I am a newbie to AHK so I really have no idea what I should copy from Skrommel's script. I have tried one or two things already but no success so far!

lanux128:
here you go - the paste-only function. i have not tested extensively and also you might need to change the delay period (commented) as to the speed of your keyboard/PC. :)


--- ---;PlainPaste-mod.ahk
; Press Ctrl-V once to paste regularly, or twice fast to paste as text.
; Modded to be included as part of larger scripts
;Skrommel @2006

SetBatchLines,-1
pastecounter=0
delay=333 ;change if necessary

$^v::
pastecounter+=1
SetTimer,PASTETWICE,%delay%
Return

PASTETWICE:
SetTimer,PASTETWICE,Off
wholeclipboard:=ClipboardAll
If pastecounter>1
  Clipboard=%Clipboard%
pastecounter=0
Send,^v
Clipboard:=wholeclipboard
Return

JTux:
Thanks Lanux128! That's great!!  :Thmbsup:

Navigation

[0] Message Index

Go to full version