Machsupport Forum
		Mach Discussion => VB and the development of wizards => Topic started 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
			 
			
			- 
				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
			 
			
			- 
				thanks for your reply
I thought there is some more "elegant" solution  :)
			 
			
			- 
				hi 
i am new here 
. can any body help me how to download mach3 vb script editor software
			 
			
			- 
				install Mach3 and run VB Script Editor from Operator menu