12-21-2004, 07:56 AM
Hello, I am a new user of your program and find it very useful. I have a problem which I can't seem to find a solution. Below is what my boss needs to accomplish.
We are using a program where the user can select up to 6 buttons. The buttons have an id starting at 201, 202, all the way to 206. Each button does different things. At the moment, the user changes the actual macro to only select specific buttons. This is where the problem starts. I have tried using inp- command but I think I need something better or additional error checking. Here are the steps I would like to accomplish.
1. Prompt the user where they can enter the button id. For example: 201, 204, 206. Separated by commas. I am pretty sure the string can be parsed and turn it into numeric variables after the prompt.
2. Error checking, make sure the entered information matches the 6 buttons.
3. Then let macro run only the codes under those selected buttons 3x. for example:
rep 3
,;code 201
,mes "buttom 1 selected"
,;code 204
,mes "buttom 2 selected"
,;code 206
,mes "buttom 6 selected"
I hope I am making this clear. LOL.
Thank you for all your help.
We are using a program where the user can select up to 6 buttons. The buttons have an id starting at 201, 202, all the way to 206. Each button does different things. At the moment, the user changes the actual macro to only select specific buttons. This is where the problem starts. I have tried using inp- command but I think I need something better or additional error checking. Here are the steps I would like to accomplish.
1. Prompt the user where they can enter the button id. For example: 201, 204, 206. Separated by commas. I am pretty sure the string can be parsed and turn it into numeric variables after the prompt.
2. Error checking, make sure the entered information matches the 6 buttons.
3. Then let macro run only the codes under those selected buttons 3x. for example:
rep 3
,;code 201
,mes "buttom 1 selected"
,;code 204
,mes "buttom 2 selected"
,;code 206
,mes "buttom 6 selected"
I hope I am making this clear. LOL.
Thank you for all your help.