|
Post by zeak on Jul 29, 2020 6:40:02 GMT
Hi Steve , Would it be possible to make custom Variables, for example below. 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %X%::1234 So this would make %X% the value of 1234, or 2 | RUN ACTION | DEFINE STRING VARIABLE | %TXT1%::ABCD where %TXT1% would be the text value of ABCD. And the same with BOOLEAN and DECIMAL, I feel that ability to declare personal variables would make the macro a lot easier to follow.
|
|
|
Post by Steve on Jul 29, 2020 7:24:07 GMT
This has crossed my mind. Thanks zeak i'll look into it for the next update.
|
|
|
Post by Steve on Jul 29, 2020 7:25:06 GMT
I feel that ability to declare personal variables would make the macro a lot easier to follow. Yeah heaps easier.
|
|
|
Post by Steve on Sept 18, 2020 20:25:15 GMT
Hi Steve , Would it be possible to make custom Variables, for example below. 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %X%::1234 So this would make %X% the value of 1234, or 2 | RUN ACTION | DEFINE STRING VARIABLE | %TXT1%::ABCD where %TXT1% would be the text value of ABCD. And the same with BOOLEAN and DECIMAL, I feel that ability to declare personal variables would make the macro a lot easier to follow. Hi zeakI've added this in for the next update. Thanks for the idea. Do you want to try it out early? It code below is a sample of how it works now. It might change on release but it's unlikely. I've added a DEBUG action to clear any custom vars on the fly. Custom variables last until the macro is closed. If your keen to try it out let me know and I'll shoot you through a copy. 1 | RUN ACTION | DEFINE STRING VARIABLE | %FISH%::fishy 2 | RUN ACTION | DEBUG | CLEAR CUSTOM VARIABLES 3 | RUN ACTION | DEFINE STRING VARIABLE | %cat%::kitten 4 | RUN ACTION | DEFINE STRING VARIABLE | %dog%::tank 5 | RUN ACTION | DEFINE STRING VARIABLE | %farm%::barn 6 | RUN ACTION | DEFINE DECIMAL VARIABLE | %DEC%::1.1 7 | RUN ACTION | DEFINE DECIMAL VARIABLE | %DEC%::+9.8 8 | RUN ACTION | DEFINE BOOLEAN VARIABLE | %BOOL%::YES 9 | RUN ACTION | DEFINE integer VARIABLE | %5%::+5 10 | RUN ACTION | DEFINE integer VARIABLE | %ten%::10 11 | IF | INTEGER VARIABLE | %ten% | IS | 10 | DEFINE INTEGER VARIABLE | %ten%::+%random% 12 | RUN ACTION | MESSAGE PROMPT | %fish%::::1 13 | RUN ACTION | MESSAGE PROMPT | %cat%::::1 14 | RUN ACTION | MESSAGE PROMPT | %5%::::1 15 | RUN ACTION | MESSAGE PROMPT | %ten%::::1 16 | RUN ACTION | MESSAGE PROMPT | %DEC%::::1 17 | RUN ACTION | MESSAGE PROMPT | %BOOL%::::1
|
|
|
Post by zeak on Sept 24, 2020 0:47:10 GMT
Hi Steve,
yea I can give it a test.
|
|
|
Post by Steve on Oct 17, 2020 22:03:37 GMT
Hi zeakI've sent you a copy of the app with the changes. Let me know how you go.
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 18, 2020 7:13:01 GMT
Hello Steve,
I like the idea very much. Can I have a copy too?
Regards Hans-Peter Germany
|
|
|
Post by Steve on Oct 20, 2020 8:46:32 GMT
Hello Steve, I like the idea very much. Can I have a copy too? Regards Hans-Peter Germany Sure Hans-Peter. Send me a email from the account you registered with your pro version and I'll send you a copy.
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 20, 2020 17:20:52 GMT
Hello Steve,
Just did it. Thanks for the exelent support!
Regards Hans-Peter
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 21, 2020 12:38:32 GMT
10.21.2020 02:24:11.92 Starting macro playback
10.21.2020 02:24:12.15 Macro condition: 1 | RUN ACTION | DEFINE STRING VARIABLE | %FISH%::fishy
10.21.2020 02:24:12.48 Macro condition - Condition TRUE
10.21.2020 02:24:12.79 Macro action - Variable (%FISH% = fishy)
10.21.2020 02:24:12.84 Macro condition: 2 | RUN ACTION | DEBUG | CLEAR CUSTOM VARIABLES
10.21.2020 02:24:12.85 Macro condition - Condition TRUE
10.21.2020 02:24:12.90 Macro action - DEBUG (CLEAR CUSTOM VARIABLES)
10.21.2020 02:24:12.95 Debug - All custom variables have been cleared
10.21.2020 02:24:12.99 Macro condition: 3 | RUN ACTION | DEFINE STRING VARIABLE | %cat%::kitten
10.21.2020 02:24:13.04 Macro condition - Condition TRUE
10.21.2020 02:24:13.09 Macro action - Variable (%cat% = kitten)
10.21.2020 02:24:13.13 Macro condition: 4 | RUN ACTION | DEFINE STRING VARIABLE | %dog%::tank
10.21.2020 02:24:13.16 Macro condition - Condition TRUE
10.21.2020 02:24:13.21 Macro action - Variable (%dog% = tank)
10.21.2020 02:24:13.26 Macro condition: 5 | RUN ACTION | DEFINE STRING VARIABLE | %farm%::barn
10.21.2020 02:24:13.29 Macro condition - Condition TRUE
10.21.2020 02:24:13.34 Macro action - Variable (%farm% = barn)
10.21.2020 02:24:13.38 Macro condition: 6 | RUN ACTION | DEFINE DECIMAL VARIABLE | %DEC%::1.1
10.21.2020 02:24:13.44 Macro condition - Condition TRUE
10.21.2020 02:24:13.49 Macro action - Variable (%DEC% = 1.1)
10.21.2020 02:24:13.52 Macro condition: 7 | RUN ACTION | DEFINE DECIMAL VARIABLE | %DEC%::+9.8
10.21.2020 02:24:13.58 Macro condition - Condition TRUE
10.21.2020 02:24:13.63 Macro action - Variable (%DEC% = +9.8)
10.21.2020 02:24:13.66 Macro condition: 8 | RUN ACTION | DEFINE BOOLEAN VARIABLE | %BOOL%::YES
10.21.2020 02:24:13.69 Macro condition - Condition TRUE
10.21.2020 02:24:13.74 Macro action - Variable (%BOOL%(YES) = TRUE
10.21.2020 02:24:13.79 Macro condition: 9 | RUN ACTION | DEFINE integer VARIABLE | %5%::+5
10.21.2020 02:24:14.47 Macro condition - Condition TRUE
10.21.2020 02:24:14.54 Macro condition: 0 to +5 = 5
10.21.2020 02:24:14.58 Macro action - Variable (%5% = +5)
10.21.2020 02:24:14.61 Macro condition: 10 | RUN ACTION | DEFINE integer VARIABLE | %ten%::10
10.21.2020 02:24:14.66 Macro condition - Condition TRUE
10.21.2020 02:24:14.71 Macro condition: 0 to 10 = 10
10.21.2020 02:24:14.74 Macro action - Variable (%ten% = 10)
10.21.2020 02:24:14.79 Macro condition: 11 | IF | INTEGER VARIABLE | %ten% | IS | 10 | DEFINE INTEGER VARIABLE | %ten%::+%random%
10.21.2020 02:24:14.82 Macro condition - 10=10
10.21.2020 02:24:14.86 Macro condition - Condition TRUE
10.21.2020 02:24:14.90 Macro condition: 10 to +883695232 = 883695242
10.21.2020 02:24:14.93 Macro action - Variable (%ten% = +%random%)
10.21.2020 02:24:14.97 Macro condition: 12 | RUN ACTION | MESSAGE PROMPT | %fish%::::1
10.21.2020 02:24:15.02 Macro condition - Condition TRUE
10.21.2020 02:24:15.05 Macro action - Running ACTION: MESSAGE PROMPT - Message(%fish%::::1)
10.21.2020 02:24:15.61 Macro condition: 13 | RUN ACTION | MESSAGE PROMPT | %cat%::::1
10.21.2020 02:24:15.66 Macro condition - Condition TRUE
10.21.2020 02:24:15.71 Macro action - Running ACTION: MESSAGE PROMPT - Message(kitten::::1)
10.21.2020 02:24:16.74 Macro condition: 14 | RUN ACTION | MESSAGE PROMPT | %5%::::1
10.21.2020 02:24:16.78 Macro condition - Condition TRUE
10.21.2020 02:24:16.85 Macro action - Running ACTION: MESSAGE PROMPT - Message(5::::1)
10.21.2020 02:24:17.86 Macro condition: 15 | RUN ACTION | MESSAGE PROMPT | %ten%::::1
10.21.2020 02:24:17.91 Macro condition - Condition TRUE
10.21.2020 02:24:17.95 Macro action - Running ACTION: MESSAGE PROMPT - Message(883695242::::1)
10.21.2020 02:24:18.98 Macro condition: 16 | RUN ACTION | MESSAGE PROMPT | %DEC%::::1
10.21.2020 02:24:19.04 Macro condition - Condition TRUE
10.21.2020 02:24:19.09 Macro action - Running ACTION: MESSAGE PROMPT - Message(109::::1)
10.21.2020 02:24:20.12 Macro condition: 17 | RUN ACTION | MESSAGE PROMPT | %BOOL%::::1
10.21.2020 02:24:20.17 Macro condition - Condition TRUE
10.21.2020 02:24:20.21 Macro action - Running ACTION: MESSAGE PROMPT - Message(TRUE::::1)
10.21.2020 02:24:21.35 Macro playback finished
This is the event-log from running your demo code. The message promt with the unset %fish% should show the variable-name?
Regards Hans-Peter
|
|
|
Post by Steve on Oct 22, 2020 8:52:59 GMT
Hi hpw Yep the %fish% should show because we clear the custom variables with the debug statement 2 | RUN ACTION | DEBUG | CLEAR CUSTOM VARIABLES
|
|