Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: sebba on March 27, 2020, 07:02:46 AM

Title: How to get the last pressed button's oem code?
Post by: sebba on March 27, 2020, 07:02:46 AM
Hello,

There is any way to get the last pressed button's code and place it into macro as variable?
For Mach3.

Thank you,
Seb
Title: Re: How to get the last pressed button's oem code?
Post by: TPS on March 27, 2020, 07:07:21 AM
no, not realy, but you can set/reset OEMLed's in the button script and read those in an other script. you may also use an
OEMDro and set them in the button script.

f.e:
buttonscript off button1 set OEMDro to 1
buttonscript off button2 set OEMDro to 2

and the other script reads the OEMDro
Title: Re: How to get the last pressed button's oem code?
Post by: sebba on March 27, 2020, 10:42:46 AM
thanks for your reply
I thought there is some more "elegant" solution  :)

Title: Re: How to get the last pressed button's oem code?
Post by: Ramzan on April 09, 2020, 12:58:01 AM
hi
i am new here
. can any body help me how to download mach3 vb script editor software
Title: Re: How to get the last pressed button's oem code?
Post by: sebba on April 09, 2020, 03:54:43 AM
install Mach3 and run VB Script Editor from Operator menu