Mach Discussion > VB and the development of wizards
Read a value and execute a User-Macro
Kissling:
Hello
I'm optimizing my Screenset.
The Basis of my Sreenset is from PA.
But I did so many imprvements and Errorcorections.
Now I try to build a button where set the x-coordinate an then the Spindle goes to this coordinate.
Simply: Goto X Goto Y Goto Z
Im try to do this with machsreen.
My question is:
How can I build a Button that reads the valeu and then executes a VB-Script where i can Use the value?
I only find something where I can define the Value and something where I can execute Code.But I need a Button whitch is dooing both!
Thanks a lot
TPS:
you can use a Button Standard code 34 -> run basic script
then you can program your own VB-Script within this button.
Kissling:
Thanks to TPS
But than I have to Insert 2 thinks.
one to write the value
and
as you wrote
one for executing the script
I there no way to way to get this:
write the value in the feeld
by pressing Enter the macro is executed
Regards
TPS:
[1] first select function - execute basic script
[2] doubleclick execute Code value, then editor for basic script is comming up
and now you can proramm your basic code to enter the value and execute G-code
Kissling:
Hello TPS,
this is all no problem!
My Problem is:
How can i execute the basic Sript when I write a new value to the UserDRO?
Do I have to design a UserDRO AND a Button?
Regards
Navigation
[0] Message Index
[#] Next page
Go to full version