Help - Search - Members - Calendar
Full Version: Brand New to AC Tools and Enthusiastic =)
AC Tools Everything Macro > AC Tool > AC Tool Discussion
amir
Hey guys, i'm brand new to Script writing. I've had an interest in computational language for a while now, but i've just taken the initiative to begin "scripting". Well, i just wrote a simple script, which i adopted from reading a Tutorial on ACTools, for making a macro. Basically what I tried to make it do is click the A key, then the B key with a 1/2 second pause in between and do it 50 times. My script is:

loop 50
keys a
delay 500
keys b
delay 500
end

I had 2 questions about this. Would this script click the letters A and B, and, if so, how do i make it so that this script can run on a game? Like, how would i program it so that it would start the Loop, but while i am in-game. Anyway, thank you very much for taking the time to read this. Honestly, ACTools is really cool =)
amir
Anyone have an idea? o.o
DaMOB
QUOTE(amir @ Mar 4 2009, 06:10 PM) *
Hey guys, i'm brand new to Script writing. I've had an interest in computational language for a while now, but i've just taken the initiative to begin "scripting". Well, i just wrote a simple script, which i adopted from reading a Tutorial on ACTools, for making a macro. Basically what I tried to make it do is click the A key, then the B key with a 1/2 second pause in between and do it 50 times. My script is:

loop 50
keys a
delay 500
keys b
delay 500
end

I had 2 questions about this. Would this script click the letters A and B, and, if so, how do i make it so that this script can run on a game? Like, how would i program it so that it would start the Loop, but while i am in-game. Anyway, thank you very much for taking the time to read this. Honestly, ACTools is really cool =)

Yes, that is pressing a then b and you need to have the game or w/e in focus. To focus a game use SetActiveWindow title of the window.
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.