Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 09:05:03 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Button to call a menu item ?
Pages: 1 2 »   Go Down
Print
Author Topic: Button to call a menu item ?  (Read 2788 times)
0 Members and 1 Guest are viewing this topic.
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« on: February 19, 2009, 04:05:58 PM »

I know I have seen info on this somewhere but despite my search efforts I can't find it.  Smiley

Just want an on-screen button to call the video window plugin, menu item.

Sure I can do this with a button script.     This is with Scream4.

Thanks,  Greg
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: February 19, 2009, 05:21:20 PM »

Currently you can't acess Plugin control using
Code:
DoMenu( 6,1 )

You might make a request to Brian to change this.
« Last Edit: February 19, 2009, 05:25:14 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #2 on: February 19, 2009, 05:53:52 PM »

Thanks for that Jason

Brian seems to be snowed under at the moment. 

Might leave it for another time.  Smiley

Greg
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #3 on: February 19, 2009, 06:07:07 PM »

I don't know if there is any other call to the Video window that can be made, but maybe we can ask Scott(Poppa bear) to make a plugin to open them up Wink I will talk to him.
Logged

Regards, Jason Blake

www.Fusioncnc.com
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #4 on: February 19, 2009, 06:11:19 PM »

Yeah if any one can do that it will be Scott.   Smiley

Posted a general question on it on the Yahoo group also.

Greg
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #5 on: February 19, 2009, 06:17:15 PM »

Whoa...........  I will look if I can get a handle on it, BUT, you would have to make a plugin to then give you the ability to "Open" if from a button. With an LED like I do in MAD, or a Notify Plugins.

It would be far, far, easier for Brian to fix the "DoMenu" glitch..............

I will see if I can get a handle on it, and if I can, see if there is a way to launch it, but again it will have to be from a plugin that is the only way I know to even touch the menu bar.

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #6 on: February 19, 2009, 06:45:36 PM »

OK as usual I don't realise the complexity of what I am asking for.   Grin

Not worth that sort of effort Scott.  Would have been nice but not a deal breaker.

Greg
Logged
Greolt
Global Moderator
*
Offline Offline

Posts: 872


View Profile
« Reply #7 on: February 20, 2009, 04:16:47 PM »

Sometimes the answer is close to home.

Local CNCer had the answer.

This code used as a button script,

sendKeys "%(P)V"

Calls the video window.  Works a treat.  Smiley

Thanks Rod.

Greg

EDIT:  No that one caused problems with Mach somehow.

This one seems to work,  SendKeys "+%(P)V"

Again thanks to Rod.
« Last Edit: February 21, 2009, 05:33:20 AM by Greolt » Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #8 on: February 21, 2009, 09:44:55 AM »

Wow!!!

   Thank you for the pearl!! Learned somthing new!! Now I gotta look closer at SendKeys to see how it would work for other menu items..........

Scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #9 on: February 21, 2009, 10:58:33 AM »

Did a little reading/testing.....

this also works 

SendKeys("%PV") 

Scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!