Hello Guest it is April 18, 2024, 11:24:59 PM

Author Topic: Button code to send focus back to Mach after opening Camera Plugin  (Read 5835 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
I use Klaus' Camera Plugin and design screens with MachScreen.  Both great pieces of software.

Fixed permanent camera on a router for origin setup.

I have the following code on button to call the page that I use with the camera,

DoOEMButton (3)           'this calls the page
SetUserLED (1103,0)      'turn 1103 off which every other page turns on (1103 exits plugin)
Sleep 200                     'needs this delay for plugin to start reliably
SetUserLED (1102,1)      'this starts the camera plugin

This all works like it should.  Goes to page 3 and starts the camera plugin.  But I would like it to return focus to Mach3. 

Presently one click sends me to the right page and starts the plugin, but leaves focus with the plugin.  Which means I can not jog with a pendant until another click on Mach3 screen returns focus.

Is there a line I can add to return focus to Mach3?

Thanks,

Greg
Re: Button code to send focus back to Mach after opening Camera Plugin
« Reply #1 on: November 25, 2011, 07:47:44 AM »
Hello,

I've added that feature to my camera-plugin. It can be enabled in the config plug in.
I don't want to release a new version, because of this small program change. If you need it, let me know and I will send you it to you by email.


Klaus
The brain isn't a soap, it doesn't shrink when used.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Button code to send focus back to Mach after opening Camera Plugin
« Reply #2 on: November 30, 2011, 09:33:38 PM »
I had some private communication with Klaus about this but forgot to post here.

Klaus sent me a new version of the plugin which now returns focus to Mach.

How good is that !!!!!!!!

Klaus your contribution to the Mach user community is amazing.    Thank you very very much.

Greg

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: Button code to send focus back to Mach after opening Camera Plugin
« Reply #3 on: November 30, 2011, 11:32:37 PM »
I agree Greg, Klaus is on top of his work, a great contributor, and evidently one sharp individual.  I hope to one day be able to do the things Klaus can and has so freely.  :)  Thanks Klaus!!!

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!