Posts: 4
Threads: 1
Joined: Apr 2007
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?
Posts: 111
Threads: 31
Joined: Apr 2007
rep
act win("Dieseite.de" "CabinetWClass")
'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTY
5
cant you just rep it ???
Posts: 4
Threads: 1
Joined: Apr 2007
ye but then it does end :<. And after some time it says, too much charakters
Posts: 111
Threads: 31
Joined: Apr 2007
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?
Posts: 4
Threads: 1
Joined: Apr 2007
Posts: 1,769
Threads: 410
Joined: Feb 2003
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
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
str+ stopmac
rep
,act win("Dieseite.de" "CabinetWClass")
,if stopmac="Stop"
,,end
,'TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTY
,5
Macro 2
str+ stopmac
stopmac="Stop"
Posts: 4
Threads: 1
Joined: Apr 2007