# \[BUG-12519\] Scripting character / cursor position

**URL:** <https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432>\
**Category:** Ignition Early Access\
**Created:** [February 8, 2019, 12:13am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432 "2019-02-08T00:13:18Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [February 8, 2021, 4:14pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/21 "2021-02-08T16:14:49Z")

</div>

@Bronzebeard62 do you only see it at a fractional scaling value and not at a proportional one? (like 200%)

Thanks,  
Jonathan C

---

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [February 8, 2021, 4:27pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/22 "2021-02-08T16:27:25Z")

</div>

Hi Jonathan,  
Yes this is the case. 200% works fine, 150% does not.

EDIT: It seems I may have made that conclusion too soon, after using it at 200% for a few minutes this issue returned.

---

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [April 7, 2021, 5:33pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/23 "2021-04-07T17:33:43Z")

</div>

Any new progress on this bug? Using a 4k monitor at 100% zoom level is taking it’s toll on my eyes.

---

<div class="post-metadata">

**Author:** ![nate.spangler](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@nate.spangler](https://forum.inductiveautomation.com/u/nate.spangler)\
**Post date:** [June 22, 2021, 2:33pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/24 "2021-06-22T14:33:43Z")

</div>

@jcoffman @Bronzebeard62 I’m also experiencing this issue on 8.1.2 with a 4K monitor set to 150% scaling. I looked through the release notes for 8.1.3-7 but didn’t see any mention of this, so not sure if its been fixed or not. I also changed the scaling on my 1200p and 1080p monitors to 125% and the issue then shows up as well, but are fine at 100%. So I believe it is a scaling issue, maybe Java related? Additionally the 200% scaling does seem to work for me on my 4K monitor.

This does seem to be an x-axis issue and oddly enough, it gets worse the further along the x-axis I travel with the mouse cursor. If I click on a line in a script library within the first 10 characters, it seems to be accurate, but as I move to the right that is when I click and the cursor appears 2-3 characters to the right of where I clicked. The further right I go the worse that character offset gets. Additionally, if I launch a designer this issue isn’t present right away, but after a few minutes it starts acting up.

I also launched a 7.9.x designer and I have no issues.

---

<div class="post-metadata">

**Author:** ![Bronzebeard62](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Bronzebeard62](https://forum.inductiveautomation.com/u/Bronzebeard62)\
**Post date:** [June 30, 2021, 10:36am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/25 "2021-06-30T10:36:14Z")

</div>

Yes this is the exact issue I have, and no it is not fixed in 8.1.7.

You should do some more testing with 200% scaling, in my tests, it went okay for a little while but as I scrolled further down a script it started to present itself again.

---

<div class="post-metadata">

**Author:** ![jarno.vandenberg](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jarno.vandenberg](https://forum.inductiveautomation.com/u/jarno.vandenberg)\
**Post date:** [July 12, 2021, 9:53am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/26 "2021-07-12T09:53:01Z")

</div>

Hello,

Soft Bump

Experiencing the same issue, and it is utterly annoying. Cursor simply does not end up where you click, but offsets x amount of characters to the right.

Affected setups:

1920x1080 150% DPI  
3840x2160 150% DPI

Only in 100% & 200% DPI it works fine.

As a work around we change DPI to 200% when scripting, but our fancy 4K 32" monitor real-estate is lost this way. And I specifically purchased these monitors to show all panels when editing while keeping a full preview on the preview window.

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [July 22, 2021, 10:03am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/27 "2021-07-22T10:03:39Z")

</div>

This bug is still present, tried to delete the cache as well. Been using 4K monitors many years now. Is it not the new standard?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [July 30, 2021, 9:07pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/28 "2021-07-30T21:07:44Z")

</div>

This happens to me as well. I’ve noticed that if you zoom in your script area the accurate improves a little

---

<div class="post-metadata">

**Author:** ![SBL\_MC](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sbl_mc/32/56813_2.png) [@SBL\_MC](https://forum.inductiveautomation.com/u/SBL_MC)\
**Post date:** [March 29, 2022, 10:51am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/29 "2022-03-29T10:51:05Z")

</div>

Any news?

Scaling 100% is to small, 200 % is to big.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 29, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/30 "2022-03-29T15:55:57Z")

</div>

The editor used for scripting is being replaced (hopefully as soon as 8.1.17). The new editor doesn’t have this issue.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [March 30, 2022, 4:30am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/31 "2022-03-30T04:30:16Z")

</div>

One day if this used Monaco, it would be an insane leap forward. Could allow for easy vs code style extension integration with js in the built in editors

> **[GitHub - microsoft/monaco-editor: A browser based code editor](https://github.com/microsoft/monaco-editor)**
>
> A browser based code editor. Contribute to microsoft/monaco-editor development by creating an account on GitHub.

EDIT: though I would think this is very pro perspective, and a bit harder for vision. Since it is a web based thing that would fit better in electron or something like the chromium preview than in a swing popup.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [April 11, 2024, 3:19am UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/32 "2024-04-11T03:19:59Z")

</div>

Not to revive this old topic, but is there any progress on this? Got a new laptop and was working on my normal desktop monitors without issue, then went on the road and was having issues. Since one of the first things I did was upgrade my Docker instance to 8.1.39 to play with (before even opening the designer today), and I was having the issue described here. This caused me to think it was 8.1.39, so connected to older gateways and had the same issue. Then remoted into a different server through RDP and had no issues even with 8.1.39. That's when I found this, and see that only 100% and 200% really work, but 100% is too small to see, and 200% is way too big (although as I get older I'll probably want more things at 200%) 😄

---

<div class="post-metadata">

**Author:** ![jshannon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jshannon/32/81937_2.png) [@jshannon](https://forum.inductiveautomation.com/u/jshannon)\
**Post date:** [August 29, 2024, 8:05pm UTC](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432/33 "2024-08-29T20:05:47Z")

</div>

I am also having this issue editing expressions in 8.1.39. Shows the correct cursor placement flash but typing is a few characters off. Set display to 200%, issue went away. Guess I have an excuse for bigger screens now

[Previous page](https://forum.inductiveautomation.com/t/bug-12519-scripting-character-cursor-position/22432.md?page=1)
