DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Use PlainPaste without Tray Icon?  (Read 12,857 times)

JTux

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
Use PlainPaste without Tray Icon?
« on: January 08, 2009, 01:28 AM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Use PlainPaste without Tray Icon?
« Reply #1 on: January 08, 2009, 01:53 AM »
yes, you can. Skrommel has included the source as well with the downloads. let me know if you need help in doing that.

JTux

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
Re: Use PlainPaste without Tray Icon?
« Reply #2 on: January 08, 2009, 02:01 AM »
yes, you can. Skrommel has included the source as well with the downloads. let me know if you need help in doing that.
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Use PlainPaste without Tray Icon?
« Reply #3 on: January 08, 2009, 03:59 AM »
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. :)

Code
;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

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
Re: Use PlainPaste without Tray Icon?
« Reply #4 on: January 11, 2009, 09:50 PM »
Thanks Lanux128! That's great!!  :Thmbsup:

Original address: https://www.donationcoder.com/forum/index.php?topic=16470.0