Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "10000"
0002 Action: Repeat this block "string$"
0003 Macro: Type keys or use mouse "{@300,450}{leftclick}{z25}"
0004 Action: End of block ""
(End)
Quote from: oblivion on April 02, 2026, 11:27:46 PMI remain determined that 15 and 16 shouldn't be necessaryI think you're misunderstanding how Esc works with "Macro: Type keys or use mouse". Pressing it does indeed abort the macro, but you're then restarting the macro again (because it's in a loop), so the old escaped macro has correctly stopped but a new one has started instead. It's like whack-a-mole. That's why an extra check for Esc is needed (step 15) to abort the loop itself, instead of just aborting the macro. Steps 15 and 16 are need to make it like pulling out the plug on a whack-a-mole machine so no more moles can pop up after you whack one (Esc on the macro).
Quote from: oblivion on April 02, 2026, 11:27:46 PMtried to click {@string$} and it didn't work
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "123,456"
0002 Macro: Type keys or use mouse "{@string$}{leftclick}{z25}"
(End)
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Comment "This macro was targeted for: Cookie Clicker"
0002 Action: Comment "You can edit the 'Window: Assign' step to change the target."
0003 Window: Assign "Cookie Clicker.exe"
0004 Macro: For assigned window only "1"
0005 Window: Activate for use ""
0006 Macro: Typing speed "def"
0007 Alert: Ask for a choice "Where is Cookie Clicker?~External monitor~Laptop screen~"
0008 Action: Do next step if "alert$=blank$"
0009 Action: Finish ""
0010 Action: Repeat this block "forever"
0011 Action: Do next step if "alert$=External monitor"
0012 Macro: Type keys or use mouse "{@370,600}{leftclick}{z25}"
0013 Action: Do next step if "alert$=Laptop screen"
0014 Macro: Type keys or use mouse "{@300,450}{leftclick}{z25}"
0015 Action: Do next step if "{esc}=1"
0016 Action: Finish ""
0017 Action: End of block ""
0018 Action: Finish ""
(End)

So you need to manually check for the Esc key being held down in the block (step 4 below), and then abort the repeating block as well. Like this:(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "forever"
0002 Action: Repeat this block "string$"
0003 Macro: Type keys or use mouse "{leftclick}{z25}"
0004 Action: Do next step if "{esc}=0"
0005 Action: End of block ""
(End)
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Comment "This macro was targeted for: Cookie Clicker"
0002 Action: Comment "You can edit the 'Window: Assign' step to change the target."
0003 Window: Assign "Cookie Clicker.exe"
0004 Macro: For assigned window only "1"
0005 Window: Activate for use ""
0006 Macro: Typing speed "def"
0007 Alert: Ask for a choice "Where is Cookie Clicker?~External monitor~Laptop screen~"
0008 Action: Do this block if "alert$=External monitor"
0009 Alert: Ask for a line of text "How many clicks?"
0010 String: Assign "alert$"
0011 Action: Do next step if "string$>99999"
0012 String: Assign "forever"
0013 Action: Repeat this block "string$"
0014 Macro: Type keys or use mouse "{@370,600}{leftclick}{z25}"
0015 Action: End of block ""
0016 Action: End of block ""
0017 Action: Do this block if "alert$=Laptop screen"
0018 Alert: Ask for a line of text "How many clicks?"
0019 String: Assign "alert$"
0020 Action: Do next step if "string$>99999"
0021 String: Assign "forever"
0022 Action: Repeat this block "string$"
0023 Macro: Type keys or use mouse "{@300,450}{leftclick}{z25}"
0024 Action: End of block ""
(End)(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "forever"
0002 Action: Repeat this block "string$"
0003 Macro: Type keys or use mouse "{@300,450}{leftclick}{z25}"
0004 Action: End of block ""
(End)(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Comment "This macro was targeted for: Cookie Clicker"
0002 Action: Comment "You can edit the 'Window: Assign' step to change the target."
0003 Window: Assign "Cookie Clicker.exe"
0004 Macro: For assigned window only "1"
0005 Window: Activate for use ""
0006 Macro: Typing speed "def"
0007 Alert: Ask for a line of text "How many clicks?"
0008 String: Assign "alert$"
0009 Action: Do next step if "string$>99999"
0010 String: Assign "forever"
0011 Action: Repeat this block "string$"
0012 Action: Comment "Next line is for external monitor, line after for internal"
0013 Macro: Type keys or use mouse "{@370,600}{leftclick}{z25}"
0014 ;Macro: Type keys or use mouse "{@300,450}{leftclick}{z25}"
0015 Action: End of block ""
(End)




