Author Topic: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro  (Read 12960 times)

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 655
    • View Profile
NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« on: October 02, 2025, 04:20:31 am »
Hi folks, long time since I've posted on CB forum and apologize for not discussing a more positive topic.

I'm a more occasional user of CB1.0 these days, maybe 3 or 4 times a month.  This past  year I've encounter problems when taking a linear Measurement, expecting the measure value to be copied to the clip board and using the value with 'paste' in other value entry methods without problem.  Sometimes when I need to use a measured value copied and pasted into the NumMove plugin X,Y or Z value nothing gets pasted.  I have to manually type in the measured value.

Today, and as a safety measure I selected the numeric value and ctrl-C'd it, with the polygon object selected and using the NumMov plugin no 'copied' value would paste into the X or Y fields.

I'm sure this worked when I was on Win10 Pro and CB1.0.

I found several topics on a bug with the NumMove plugin on this forum that seemed to be identical to what I described above but it was an issue only in Win10 back in 2019 or so.

Any ideas why this happens?  Any solutions?

Many thanks.
airnocker

Everything depends on everything else

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #1 on: October 02, 2025, 18:13:29 pm »
Hello

Unfortunately, I do not have a Win11/10 to do tests.

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5320
  • Made in England
    • View Profile
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #2 on: October 02, 2025, 18:35:21 pm »
I copied a measurement as airnocker said then tried to past it into a field on the Numerical Move plugin, it did not work.

I then pasted it into a CamBam Text object to see if I had indeed copied the measurement, it pasted correctly into the text window.

CamBam 1.0 64 bit Windows 11 Pro.
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #3 on: October 02, 2025, 19:04:52 pm »
For me, on W7, Ctrl + V do not work to paste into  the nummove, I must use "paste" in the context menu of the textbox.

++
David
« Last Edit: October 02, 2025, 19:06:49 pm by dh42 »

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5320
  • Made in England
    • View Profile
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #4 on: October 02, 2025, 20:10:42 pm »
Yes, that works, I did not realize the textboxes had a right-mouse-click context.
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #5 on: October 02, 2025, 20:56:34 pm »
Yep, I don't know why, but the fact to use a "key filter" for the text box entries kill the ability to use the CTRL V/C .. I never find how to solve this problem.

It is the reversed of what happens in CamBam text editor (text object and GCode editor), no context menus but the CTRL C/V works ...

++
David

Offline airnocker

  • CNC Jedi
  • *****
  • Posts: 655
    • View Profile
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #6 on: October 15, 2025, 19:55:30 pm »
dh42 and EddyCurrent, much appreciate the two of you looking into this.  Eddy thanks for confirming the ubiquitous Windows Ctrl-V paste method worked when pasting the measured value into a Draw Text/Edit Text window but not when pasting in the Numeric move text fields.

dh42, I'm not sure if I was ever aware that right-clicking in one of the Transform > Numeric move, Num move axis input boxes popped up a menu with this "Paste" option.

Now I know, many thanks.  And it works!

airnocker

Everything depends on everything else

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #7 on: October 15, 2025, 20:19:01 pm »
Hello

Almost all input boxes under Windows have this context menu to cut/copy/paste, on all softwares

++
David

Offline rymaeda

  • Ewok
  • *
  • Posts: 35
    • View Profile
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #8 on: October 16, 2025, 01:00:13 am »
Yep, I don't know why, but the fact to use a "key filter" for the text box entries kill the ability to use the CTRL V/C .. I never find how to solve this problem.

It is the reversed of what happens in CamBam text editor (text object and GCode editor), no context menus but the CTRL C/V works ...

David,

This tip comes from my cyber friend — Microsoft Copilot 🤖 — who helps me understand a lot of things… though sometimes it slips up too 😅. Still, it's been a great companion for debugging quirky code behavior!


<Copilot>

You're absolutely right — using a "key filter" or intercepting keyboard events in a Visual Basic TextBox can unintentionally disable standard shortcuts like Ctrl+V or Ctrl+C.

This happens because when you handle KeyDown, KeyPress, or PreviewKeyDown events, you might be overriding or suppressing the default behavior that Windows provides for those shortcuts.
To fix this, you can try the following:

✅ Allow Ctrl+V explicitly in your key filter
If you're using KeyDown, check for Ctrl+V and manually trigger the paste:

Code: [Select]
Private Sub TextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles TextBox1.KeyDown
    If e.Control AndAlso e.KeyCode = Keys.V Then
        TextBox1.Paste()
        e.Handled = True
    End If
End Sub

This ensures that Ctrl+V still works even if you're filtering other keys.
⚠️ Avoid blocking default behavior
If you're setting e.Handled = True or KeyCode = 0 for all keys, make sure you're not doing that for Ctrl+V or Ctrl+C unless you intend to block them.

</Copilot>

HTH

Ricardo

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7564
    • View Profile
    • Cambam V1.0 French Doc
Re: NumMove Plugin V 1.2.0.62 Bug with CB1.0 and Win11 Pro
« Reply #9 on: October 16, 2025, 03:01:04 am »
Hello

Good info ! ... I'll have a test when time permit. I use KeyPress() instead KeyDown() but maybe this can works too .. or I can add a KeyDown in addition to the KeyPress ....

++
David