Help - Search - Members - Calendar
Full Version: i need help with hotkeys / macro
AC Tools Everything Macro > AC Tool > AC Tool Discussion
CursedSlayer
Hello.
I din't make a macro in a long time. (and the ones i made were pretty easy ones)
But i tried to make a macro which is toggled by the key : 2 . (atleast i hoped it would)
This is my Macro atm...
CODE

while 1=1
IF {Globalkeys} contains 050
ClearGlobalKeys
Loop 4
KeyDown {f3} 1000
KeyDown {f1} 1000
KeyDown {f1} 1000
KeyDown {f1} 1000
End
Keydown {F4}
Delay 1000
Keydown {F2}
Delay 25000
Keydown {TAB}
Delay 500
End
End


Please help me ^^ And already thanks....
(to be honest i think i just am missing something really simple (atleast i hope i do ))
i see the AC tool keep looping something after everything is done so that's why i kinda think i failed at some spot =/... since it's after a while about loop 14000 or what ever =/
Bear
QUOTE(CursedSlayer @ Mar 26 2009, 10:08 AM) *
Does anyone know how come it won't stop after looping the keys 4 times?


Works Fine for me, Loops 4 times then Waits for you to Hit 2 again to run again.
If you want it to Stop the Macro, after the 2 sec Delay you can either use: Break or STOP
DaMOB
QUOTE(CursedSlayer @ Mar 26 2009, 10:08 AM) *
Hello.
I din't make a macro in a long time. (and the ones i made were pretty easy ones)
But i tried to make a macro which is activated by the key : 2 and afterwards just stops. (atleast i hoped it would)
This is my Macro atm...
CODE

while 1=1
IF {Globalkeys} contains 050
ClearGlobalKeys
Loop 4
KeyDown {f3} 1000
KeyDown {f1} 1000
KeyDown {f1} 1000
KeyDown {f1} 1000
End
keys 3
delay 2 sec
End
End

Does anyone know how come it won't stop after looping the keys 4 times?
Please help me ^^ And already thanks....
(to be honest i think i just am missing something really simple (atleast i hope i do ))
Is this what you wanted it to do?

CODE
while 1=1
  IF {Globalkeys} contains 050
    ClearGlobalKeys
    Loop 4
    timestamp 1234
      timestamp 1
      timestamp 2
      timestamp 3
      timestamp 4
    End
    keys 3
    delay 2 sec
    break
  End
End

CursedSlayer
^^ thanks for the fast reply but i noticed that for my purpose it would be better to make it repeat so kinda toggle it on and off with a key (and for DaMOB O-o what does timestamp do / mean ^^" sorry for the dumb question )
And thanks alot Bear ^^ break is really usefull i just tried it to make it 2 and it starts to do what it should do ^^ and now i dont see it counting when it's done so damn fast
DaMOB
QUOTE(CursedSlayer @ Mar 26 2009, 11:05 AM) *
^^ thanks for the fast reply but i noticed that for my purpose it would be better to make it repeat so kinda toggle it on and off with a key (and for DaMOB O-o what does timestamp do / mean ^^" sorry for the dumb question )
And thanks alot Bear ^^ break is really usefull i just tried it to make it 2 and it starts to do what it should do ^^ and now i dont see it counting when it's done so damn fast

Oops, damn that was my code testing to be sure your code was working.
CODE
while 1=1
  IF {Globalkeys} contains 050
    ClearGlobalKeys
    Loop 4
      KeyDown {f3} 1000
      KeyDown {f1} 1000
      KeyDown {f1} 1000
      KeyDown {f1} 1000
    End
    keys 3
    delay 2 sec
    break
  End
End
There, that works, but you are going to use a toggle now so it is moot. As far as the timestamp it is just a way to send info into the log and I use it when testing people's code before I try to fix it (I always make sure their code is working before I spin my wheels).
CursedSlayer
QUOTE(DaMOB @ Mar 26 2009, 05:21 PM) *
QUOTE(CursedSlayer @ Mar 26 2009, 11:05 AM) *
^^ thanks for the fast reply but i noticed that for my purpose it would be better to make it repeat so kinda toggle it on and off with a key (and for DaMOB O-o what does timestamp do / mean ^^" sorry for the dumb question )
And thanks alot Bear ^^ break is really usefull i just tried it to make it 2 and it starts to do what it should do ^^ and now i dont see it counting when it's done so damn fast

Oops, damn that was my code testing to be sure your code was working.
CODE
while 1=1
  IF {Globalkeys} contains 050
    ClearGlobalKeys
    Loop 4
      KeyDown {f3} 1000
      KeyDown {f1} 1000
      KeyDown {f1} 1000
      KeyDown {f1} 1000
    End
    keys 3
    delay 2 sec
    break
  End
End
There, that works, but you are going to use a toggle now so it is moot. As far as the timestamp it is just a way to send info into the log and I use it when testing people's code before I try to fix it (I always make sure their code is working before I spin my wheels).

oh ok ^^ this works but... what is moot? xD and i somehow got it buggy since one time it uses it twice and the other time it just stops after doing everything once (without the break)=/ and since i tried to make it just 1 button is all those actions once but wanted to make it kind of toggled now so if i press 2 it starts to do everything and if i press 2 again it stops =/ isnt really working atm... and i got no idea how to make it ^^" exept making it just restart it everytime but that wont be toggle XD
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.