# Scripts are auto pasting text from the clipboard into my scripting libraries seemingly at random

**URL:** <https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [May 12, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154 "2025-05-12T17:38:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Long](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_long/32/50540_2.png) [@Robert\_Long](https://forum.inductiveautomation.com/u/Robert_Long)\
**Post date:** [May 12, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154/1 "2025-05-12T17:38:14Z")

</div>

I use the scripting libraries heavily when developing in ignition. I also use the copy and paste function frequently because I develop my new scripts in the script console, and then typically copy it into a scripting library file that I have created.  
I have noticed that when I open a scripting library file to check or verify some bit of script that I have created, at random script that I copied will paste into that open file... This has happened so many time that I know its not me triggering a paste in any way. It seems to be when I scroll down the page and reach the end, the clipboard contents are then pasted where ever my cursor landed (if I clicked the page).... Has anyone else experienced this, and has anyone found a solution? It drives me crazy, because (of course) it will cause my scripts in that library file to stop working... Then I have to back track and usually find that a new script was pasted into the middle of an old one !  
This happens often enough that surely I am not the only one experiencing it .  
Thanks in advance for any information anyone has on this...

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [May 12, 2025, 5:46pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154/2 "2025-05-12T17:46:26Z")

</div>

I never noticed it before, but I tried this out and it seems the middle mouse button (pressing down your scroll wheel) is a shortcut for pasting from your clipboard.

I suspect this is what is triggering the paste when you are scrolling through a script. Not sure how you would go about disabling that shortcut (if you can).

Best I have is to try not to press down the scroll wheel when you are using it... 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 12, 2025, 5:52pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154/3 "2025-05-12T17:52:39Z")

</div>

I have this issue with certain logitech mouses on my windows 11 lenovo thinkpad. It would randomly pull up the right click/page up menu, and then I would accidentally select my whole text if I pressed A and then overwrite it. Very frustrating - but I never experienced this just from Ignition. I agree it's likely a mouse, specifically the wheel/third button press issue.

---

<div class="post-metadata">

**Author:** ![Robert\_Long](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_long/32/50540_2.png) [@Robert\_Long](https://forum.inductiveautomation.com/u/Robert_Long)\
**Post date:** [May 12, 2025, 6:15pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154/6 "2025-05-12T18:15:31Z")

</div>

I'm sorry I didn't mean to delete this sir. I was trying to remove my reply ... everyone that posted nailed it... Middle mouse button.

---

<div class="post-metadata">

**Author:** ![Robert\_Long](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_long/32/50540_2.png) [@Robert\_Long](https://forum.inductiveautomation.com/u/Robert_Long)\
**Post date:** [May 12, 2025, 6:22pm UTC](https://forum.inductiveautomation.com/t/scripts-are-auto-pasting-text-from-the-clipboard-into-my-scripting-libraries-seemingly-at-random/106154/7 "2025-05-12T18:22:08Z")

</div>

I accidentally deleted your other reply... but you were correct - I don't know how to fix the issue yet... because I have no setting for the center wheel button press on this mouse... it just auto pastes. Thanks for your input...I really appreciate it. That puts me a little closer to fixing it anyway. I should have considered that ... lol, oh well.
