Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
start the macro again and again
#1
Hey guys,

i need your help, i need a macro that pushes some times tab then enter then wait 5 seconds and then start this again like a loop but i cant find how i loop it :/
ive got this now:

act win("Dieseite.de" "CabinetWClass")
'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTY
5

it works but i have to start it manually again and again, can u help me?
#2
Code:
Copy      Help
rep
     act win("Dieseite.de" "CabinetWClass")
     'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTY
     5

cant you just rep it ???
#3
ye but then it does end :<. And after some time it says, too much charakters
#4
how many times do you want it to repeat? a certain number or do u just want it to go forever untill u stop it?
#5
untill i stop
#6
first change your macro into a function and put in the below code (1). then make another macro (it doesn't have to be a function) and copy the code from #2 below. after starting the first function, you can stop it via the second one. this ends it gently, if you want it to just drop it hard and fast you can use the
Code:
Copy      Help
shutdown
function.

this is not a new concept of controlling a mac with another (I call it "Macro Stacking" in my blog dvorak.org/....i mean The Macro Hook).


Macro 1
Code:
Copy      Help
str+ stopmac
rep
,act win("Dieseite.de" "CabinetWClass")
,if stopmac="Stop"
,,end
,'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTY
,5




Macro 2
Code:
Copy      Help
str+ stopmac
stopmac="Stop"
An old blog on QM coding and automation.

The Macro Hook
#7
thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)