Jump to content
Macro Express Forums

Countdown msg box from variable


Recommended Posts

ok, so I just started using Macro Express again after nearly 8 years of not doing anything. I am working on a multi-part macro that has sections that repeat a random number of times. what I am trying to do is get a msg box that pops up and shows the remaining "cycles". so for example the macro will call "Repeat Start (Repeat %Repeat% times)" where %Repeat% is a random number between 10 and 15. what I want the box to do is display the number of "cycles" left. I get it to display the initial cycle from %Repeat% but no count down. I added an "Update Textbox" with the same header name as my "Floating box until end of macro". both of these have the %Repeat% variable set under "box contents" since I figured it would update from the repeat variable when it counts down. Any Idea what I am doing wrong here? I have tried to google this but not having much luck.

Thanks in advance!

Help!.bmp

Link to post
Share on other sites

It looks like you have the Repeat command right inside the textbox.  I suspect your setup will need to be more like:

 

Set Number Variable (NumVar) to random number.

Repeat until NumVar is less than 1.

-Textbox: Loops remaining is %NumVar%

-Modify variable NumVar by "-1"

End repeat

 

Or something like that.  (I haven't actually tried this.)

Link to post
Share on other sites
1 hour ago, kunkel321 said:

It looks like you have the Repeat command right inside the textbox.  I suspect your setup will need to be more like:

 

Set Number Variable (NumVar) to random number.

Repeat until NumVar is less than 1.

-Textbox: Loops remaining is %NumVar%

-Modify variable NumVar by "-1"

End repeat

 

Or something like that.  (I haven't actually tried this.)

Still no luck...

 

Link to post
Share on other sites

Here, this one seems to work as expected.  I didn't have an activation... Just played it from the play button on them MacroExplorer (blue triangle button).  

 

<VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="4" Maximum="12"/>
<REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/>
<MESSAGEBOX Caption="Current Value" Message="The variable, \"VarNum\" currently has the value %VarNum%.  " Icon="0"/>
<VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/>
<END REPEAT/>
 

 

Link to post
Share on other sites
6 hours ago, Cory said:

Sorry, short response. Not much time. You need to update the text box each time. Did you do that. 

Yes the text box update is right under the repeat command so that it updates each time the repeat starts, the show box command is above the repeat since it was creating a new box each time. that didn't seem to work. about to try the method kunkel321 posted and see if that works.

Link to post
Share on other sites

kunkel321, thanks for the help, it took a little "reworking" but I finally got the effect I was looking for doing a test script. now to integrate it into my macro.

yours gave me the basics and worked great! the only issue was, I needed something that remained on the screen and updated a single box instead of having the box close, re-open, close, re-open lol. so here is what I finally got working. if you can think of a better way of doing this or a way to clean up the code any, please let me know.

<VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="4" Maximum="12"/>
<TEXT BOX DISPLAY Title="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 The variable, \"VarNum\" currently has the value %VarNum%.  \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x02" Delay="0"/>
<REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/>
<UPDATE TEXTBOX Header="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 The variable, \"VarNum\" currently has the value %VarNum%.  \r\n\\par }\r\n"/>
<DELAY Flags="\x01" Time="1"/>
<VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/>
<DELAY Flags="\x01" Time="2"/>
<END REPEAT/>
<TEXT BOX CLOSE Header="Current Value"/>

 

Link to post
Share on other sites

Ah yes.  That's what Cory meant when he mentioned the 'Update textbox' command.  Here, this appears to be closer to what you're describing..  

 

<VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="4" Maximum="12"/>
<TEXT BOX DISPLAY Title="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs28 The variable, \"VarNum\" currently has the value %VarNum%.  \\f1 (BEFORE LOOP)\\f0\\fs16 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x02" Delay="0"/>
<REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/>
<DELAY Flags="\x01" Time="1"/>
<TEXT BOX UPDATE Header="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs28 The variable, \"VarNum\" currently has the value %VarNum%.  \\f1 (DURING LOOP)\\f0\\fs20 \r\n\\par }\r\n"/>
<VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/>
<END REPEAT/>
 

I made the text bigger so I could see it.  Also, I got rid of one of the delays and put (BEFORE) and (DURING) in the dialogs, so you can actually see when the loop kicks-in.  

 

Tip:  Remember that MacExpPro has an excellent context-smart help system.  For example when you are editing a command such as 'update textbox' you can press "F1" and it will go right to that section of the help file.  

 

Link to post
Share on other sites
34 minutes ago, kunkel321 said:

Ah yes.  That's what Cory meant when he mentioned the 'Update textbox' command.  Here, this appears to be closer to what you're describing..  

 

<VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="4" Maximum="12"/>
<TEXT BOX DISPLAY Title="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs28 The variable, \"VarNum\" currently has the value %VarNum%.  \\f1 (BEFORE LOOP)\\f0\\fs16 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x02" Delay="0"/>
<REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/>
<DELAY Flags="\x01" Time="1"/>
<TEXT BOX UPDATE Header="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs28 The variable, \"VarNum\" currently has the value %VarNum%.  \\f1 (DURING LOOP)\\f0\\fs20 \r\n\\par }\r\n"/>
<VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/>
<END REPEAT/>
 

I made the text bigger so I could see it.  Also, I got rid of one of the delays and put (BEFORE) and (DURING) in the dialogs, so you can actually see when the loop kicks-in.  

 

Tip:  Remember that MacExpPro has an excellent context-smart help system.  For example when you are editing a command such as 'update textbox' you can press "F1" and it will go right to that section of the help file.  

 

cool, thanks.
yea the "delay" was just a "place holder" so I could actually see it count. it was zipping through the counter without them lol. I have it integrated into one macro so far. had to do a little tweaking, but it is functioning the way I wanted it to now. 

Link to post
Share on other sites

When I have used updating text boxes, Macro Express created a new text box each time. So if the updates occur every second for five minutes, Macro Express opens 300 new windows. All windows close when the script completes, but I prefer not to see dozens (or hundreds or thousands) of extra windows. So I usually incorporate a "Text Box Close " into the loop.

 

You can see the difference by running this script in two ways: with the "Text Box Close" line disabled, and with it enabled. The new windows appear on the task bar.

 

<VARIABLE SET INTEGER Option="\x00" Destination="%Count%" Value="1"/>
<REPEAT START Start="1" Step="1" Count="10" Save="FALSE"/>
<TEXT BOX DISPLAY Title="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %Count%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x02" Delay="1"/>
<DELAY Flags="\x02" Time="1000"/>
<VARIABLE MODIFY INTEGER Option="\x07" Destination="%Count%"/>
<TEXT BOX UPDATE Header="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 \r\n\\par }\r\n"/>
<TEXT BOX CLOSE Header="Progress" _ENABLED="FALSE"/>
<END REPEAT/>

 

Link to post
Share on other sites

This should work a lot smoother.

<VARIABLE SET INTEGER Option="\x00" Destination="%Count%" Value="1"/>
<TEXT BOX DISPLAY Title="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %Count%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x02" Delay="1"/>
<REPEAT START Start="1" Step="1" Count="10" Save="FALSE"/>
<DELAY Flags="\x02" Time="1000"/>
<VARIABLE MODIFY INTEGER Option="\x07" Destination="%Count%"/>
<TEXT BOX UPDATE Header="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %Count%\r\n\\par }\r\n"/>
<END REPEAT/>

 

Link to post
Share on other sites

acantor:

 

3 hours ago, acantor said:

When I have used updating text boxes, Macro Express created a new text box each time. So if the updates occur every second for five minutes, Macro Express opens 300 new windows. All windows close when the script completes, but I prefer not to see dozens (or hundreds or thousands) of extra windows. So I usually incorporate a "Text Box Close " into the loop.

 

To avoid having 300 new windows put the first Text Box Display before the Repeat Start command:

Variable Set Integer %Count% to 1
Text Box Display: Progress    <--- BEFORE Repeat Start
Repeat Start (Repeat 10 times)
  Delay: 1000 milliseconds
  Variable Modify Integer %Count%: Increment
  Text Box Update: Progress
  Text Box Close: Progress
End Repeat

 

Link to post
Share on other sites
7 hours ago, acantor said:

When I have used updating text boxes, Macro Express created a new text box each time. So if the updates occur every second for five minutes, Macro Express opens 300 new windows. All windows close when the script completes, but I prefer not to see dozens (or hundreds or thousands) of extra windows. So I usually incorporate a "Text Box Close " into the loop.

 

You can see the difference by running this script in two ways: with the "Text Box Close" line disabled, and with it enabled. The new windows appear on the task bar.

 


<VARIABLE SET INTEGER Option="\x00" Destination="%Count%" Value="1"/>
<REPEAT START Start="1" Step="1" Count="10" Save="FALSE"/>
<TEXT BOX DISPLAY Title="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %Count%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x02" Delay="1"/>
<DELAY Flags="\x02" Time="1000"/>
<VARIABLE MODIFY INTEGER Option="\x07" Destination="%Count%"/>
<TEXT BOX UPDATE Header="Progress" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 \r\n\\par }\r\n"/>
<TEXT BOX CLOSE Header="Progress" _ENABLED="FALSE"/>
<END REPEAT/>

 

the Multiple boxes appearing is why I used the "floating text box" put it above the repeat command so that it just appears once and doesn't appear every repeat, and then the "update text box" is near the end of the Macro so that it actually says how many are left after this cycle, so if it's on the last cycle it says "0". then have a "close text box" after the "end repeat" command so that it closes the box after it finishes doing it's Repeat variable, it then launches another macro by name and closes this macro. then each macro does the same. I have about 20 Macros that launch each other and based on the running macros function, repeats a certain variable of times, then launches another macro. thats why I was looking for a way to make a display box that would show remaining cycles for a given macro so that I knew when the best time to "break the cycle" was if I needed to do so. Everything seems to be working fine now after doing some slight tweaking. I do have a couple bugs now and then, but I think it's more to do with my mouse movement settings in the macro. Now, if only I could figure out some type of image recognition in ME lol. I actually have a few things that require it, but have another Macro App I am currently using for that which then launches the needed ME macro in the line. would be nice to have everything running from ME though.

Link to post
Share on other sites
4 minutes ago, ellinarac said:

the Multiple boxes appearing is why I used the "floating text box" put it above the repeat command so that it just appears once and doesn't appear every repeat, and then the "update text box" is near the end of the Macro so that it actually says how many are left after this cycle, so if it's on the last cycle it says "0". then have a "close text box" after the "end repeat" command so that it closes the box after it finishes doing it's Repeat variable, it then launches another macro by name and closes this macro. then each macro does the same. I have about 20 Macros that launch each other and based on the running macros function, repeats a certain variable of times, then launches another macro. thats why I was looking for a way to make a display box that would show remaining cycles for a given macro so that I knew when the best time to "break the cycle" was if I needed to do so. Everything seems to be working fine now after doing some slight tweaking. I do have a couple bugs now and then, but I think it's more to do with my mouse movement settings in the macro. Now, if only I could figure out some type of image recognition in ME lol. I actually have a few things that require it, but have another Macro App I am currently using for that which then launches the needed ME macro in the line. would be nice to have everything running from ME though.

this is one of the Macros I used the "countdown" for..

<VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="11" Maximum="15"/>
<VARIABLE SET INTEGER Option="\x05" Destination="%Timer%" Minimum="54987" Maximum="57143"/>
<MACRO PLAYBACK SPEED Speed="1"/>
<TEXT BOX DISPLAY Title="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Mining Cycles Remaining\\f1 \r\n\\par %VarNum%\\b0\\fs16 \r\n\\par }\r\n" Left="598" Top="26" Width="197" Height="123" Monitor="0" OnTop="TRUE" Keep_Focus="FALSE" Mode="\x02" Delay="0"/>
<REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/>
<WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>
<DELAY Flags="\x03" Time="134"/>
<MOUSE MOVE Option="\x02" X="957" Y="153" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="959" Y="149" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="19"/>
<MOUSE MOVE Option="\x02" X="963" Y="147" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="967" Y="145" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="19"/>
<MOUSE MOVE Option="\x02" X="971" Y="142" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="974" Y="140" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="21"/>
<MOUSE MOVE Option="\x02" X="977" Y="139" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="11"/>
<MOUSE MOVE Option="\x02" X="978" Y="138" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="33"/>
<MOUSE MOVE Option="\x02" X="979" Y="138" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="19"/>
<MOUSE MOVE Option="\x02" X="981" Y="138" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="983" Y="138" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="19"/>
<MOUSE MOVE Option="\x02" X="986" Y="136" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="112"/>
<MOUSE MOVE Option="\x02" X="987" Y="136" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="22"/>
<MOUSE MOVE Option="\x02" X="988" Y="136" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="44"/>
<MOUSE MOVE Option="\x02" X="989" Y="136" _PROMPT="0x000A"/>
<MOUSE MOVE Option="\x02" X="990" Y="136" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="17"/>
<MOUSE MOVE Option="\x02" X="996" Y="136" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="16"/>
<MOUSE MOVE Option="\x02" X="1005" Y="139" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="18"/>
<MOUSE MOVE Option="\x02" X="1009" Y="140" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="1012" Y="140" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="19"/>
<MOUSE MOVE Option="\x02" X="1013" Y="140" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="180"/>
<MOUSE LEFT BUTTON DOWN/>
<MOUSE LEFT BUTTON UP/>
<DELAY Flags="\x03" Time="600"/>
<TEXT TYPE Action="0" Text="<F1>"/>
<DELAY Flags="\x03" Time="500"/>
<TEXT TYPE Action="0" Text="<F2>"/>
<DELAY Flags="\x03" Time="%Timer%"/>
<WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/>
<DELAY Flags="\x03" Time="500"/>
<TEXT TYPE Action="0" Text="<F1>"/>
<DELAY Flags="\x03" Time="500"/>
<TEXT TYPE Action="0" Text="<F2>"/>
<VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/>
<UPDATE TEXTBOX Header="Current Value" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Mining Cycles Remaining\r\n\\par \\f1 %VarNum%\\b0\\fs16 \r\n\\par }\r\n"/>
<DELAY Flags="\x03" Time="500"/>
<MOUSE MOVE Option="\x02" X="1009" Y="146" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="15"/>
<MOUSE MOVE Option="\x02" X="1009" Y="148" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="16"/>
<MOUSE MOVE Option="\x02" X="1007" Y="150" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="18"/>
<MOUSE MOVE Option="\x02" X="1007" Y="151" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="36"/>
<MOUSE MOVE Option="\x02" X="1006" Y="153" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="11"/>
<MOUSE MOVE Option="\x02" X="1006" Y="154" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="16"/>
<MOUSE MOVE Option="\x02" X="1006" Y="155" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="18"/>
<MOUSE MOVE Option="\x02" X="1006" Y="156" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="16"/>
<MOUSE MOVE Option="\x02" X="1005" Y="158" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="254"/>
<MOUSE MOVE Option="\x02" X="1005" Y="159" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="%Delay Short%"/>
<MOUSE MOVE Option="\x02" X="1005" Y="160" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="29"/>
<MOUSE MOVE Option="\x02" X="994" Y="166" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="985" Y="173" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="17"/>
<MOUSE MOVE Option="\x02" X="980" Y="177" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="14"/>
<MOUSE MOVE Option="\x02" X="978" Y="179" _PROMPT="0x000A"/>
<DELAY Flags="\x03" Time="21"/>
<MOUSE MOVE Option="\x02" X="977" Y="180" _PROMPT="0x000A"/>
<END REPEAT/>
<TEXT BOX CLOSE Header="Current Value"/>
<MACRO RUN Use_ID="FALSE" Name="Send Home" ID="-1" Wait="TRUE"/>
<DELAY Flags="\x03" Time="795"/>
<MACRO STOP/>
 

Link to post
Share on other sites

Ellinarac, I'm curious if Line 62 is working as expected.  It seems like it is going to actually type MacExp code into something(?)  

<TEXT TYPE Action="0" Text="<UPDATE TEXTBOX Header=\"Current Value\" Content=\"{\\\\rtf1\\\\ansi\\\\ansicpg1252\\\\deff0\\\\deflang1033{\\\\fonttbl{\\\\f0\\\\fnil\\\\fcharset0 Tahoma;}{\\\\f1\\\\fnil Tahoma;}}\\r\\n\\\\viewkind4\\\\uc1\\\\pard\\\\qc\\\\b\\\\f0\\\\fs20 Mining Cycles Remaining\\r\\n\\\\par \\\\f1 %VarNum%\\\\b0\\\\fs16 \\r\\n\\\\par }\\r\\n\"/>\r\n"/>
 

So it's actually going to send "<UPDATE TEXTBOX Header=\"Current...." to the keyboard, if I'm understanding correctly.  

As I paste it into this forum post, I'm noticing extra backslaches \\\\ not sure what's up with that.  

 

Also note:  It looks like you've recorded a bunch of mouse moves and pauses...  Would the macro still work if those were culled-out, or are they needed?  I'm not sure what "cellinarac Atruin" even is, so I don't know if they are needed...  BTW Google thinks you spelled it wrong....   Did you mean: cellinarac Atrium  LOL. 

 

Link to post
Share on other sites
24 minutes ago, kunkel321 said:

Ellinarac, I'm curious if Line 62 is working as expected.  It seems like it is going to actually type MacExp code into something(?)  

<TEXT TYPE Action="0" Text="<UPDATE TEXTBOX Header=\"Current Value\" Content=\"{\\\\rtf1\\\\ansi\\\\ansicpg1252\\\\deff0\\\\deflang1033{\\\\fonttbl{\\\\f0\\\\fnil\\\\fcharset0 Tahoma;}{\\\\f1\\\\fnil Tahoma;}}\\r\\n\\\\viewkind4\\\\uc1\\\\pard\\\\qc\\\\b\\\\f0\\\\fs20 Mining Cycles Remaining\\r\\n\\\\par \\\\f1 %VarNum%\\\\b0\\\\fs16 \\r\\n\\\\par }\\r\\n\"/>\r\n"/>
 

So it's actually going to send "<UPDATE TEXTBOX Header=\"Current...." to the keyboard, if I'm understanding correctly.  

As I paste it into this forum post, I'm noticing extra backslaches \\\\ not sure what's up with that.  

 

Also note:  It looks like you've recorded a bunch of mouse moves and pauses...  Would the macro still work if those were culled-out, or are they needed?  I'm not sure what "cellinarac Atruin" even is, so I don't know if they are needed...  BTW Google thinks you spelled it wrong....   Did you mean: cellinarac Atrium  LOL. 

 

it appears that it sends it to the textbox, so I don't know. all I know is it works lol. now I do have "F1" and "F2" keys being sent. but other than that nothing is sent to the KB function that I am aware of

Link to post
Share on other sites
On 7/16/2019 at 9:34 PM, kunkel321 said:

 

 

Also note:  It looks like you've recorded a bunch of mouse moves and pauses...  Would the macro still work if those were culled-out, or are they needed?  I'm not sure what "cellinarac Atruin" even is, so I don't know if they are needed...  BTW Google thinks you spelled it wrong....   Did you mean: cellinarac Atrium  LOL. 

 

yes, I removed all the mouse movements and used actual co-ords now and it works smoother. 
LOL, no I didn't mean "Cellinarac Atruim" lol , Cellinarac Atruin was actually a random generated IGN from a game I played years ago, and since it's not something people use, I use it for most games or accounts.... though, I seemed to have missed the "C" all together when I created my account here....😕

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...