Hello Guest it is April 17, 2024, 08:06:59 PM

Author Topic: Button to call a menu item ?  (Read 11542 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
    • View Profile
Button to call a menu item ?
« 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.  :)

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

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Button to call a menu item ?
« Reply #1 on: February 19, 2009, 05:21:20 PM »
Currently you can't acess Plugin control using
Code: [Select]
DoMenu( 6,1 )
You might make a request to Brian to change this.
« Last Edit: February 19, 2009, 05:25:14 PM by zealous »

Offline Greolt

*
  •  956 956
    • View Profile
Re: Button to call a menu item ?
« 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.  :)

Greg

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Button to call a menu item ?
« 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 ;) I will talk to him.

Offline Greolt

*
  •  956 956
    • View Profile
Re: Button to call a menu item ?
« Reply #4 on: February 19, 2009, 06:11:19 PM »
Yeah if any one can do that it will be Scott.   :)

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

Greg

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Button to call a menu item ?
« 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
fun times

Offline Greolt

*
  •  956 956
    • View Profile
Re: Button to call a menu item ?
« 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.   ;D

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

Greg

Offline Greolt

*
  •  956 956
    • View Profile
Re: Button to call a menu item ?
« 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.  :)

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 »

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Button to call a menu item ?
« 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
fun times

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Button to call a menu item ?
« Reply #9 on: February 21, 2009, 10:58:33 AM »
Did a little reading/testing.....

this also works 

SendKeys("%PV") 

Scott
fun times