Help - Search - Members - Calendar
Full Version: Shorten Code =)
AC Tools Everything Macro > AC Tool Macros > Macro Development
Cryzies
CODE
keys {tab}                     //SKIPPING
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space} //Rateing 10star
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {right}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys {space}
keys {tab}
keys a
keys i
keys m
keys 0
keys r
keys @
keys g
keys m
keys a
keys i
keys l
keys .
keys c
keys o
keys m



Yaa its a long one xP Anyway to shorten it? I don't know how to do looops and all that fun stuff
Bear
QUOTE(Cryzies @ May 14 2009, 08:49 PM) *
Yaa its a long one xP Anyway to shorten it? I don't know how to do looops and all that fun stuff


CODE
Procedure Skip using LoopNum
  //SKIPPING
  Loop $LoopNum
    keys {tab}
    keys {space}
  End
End
Procedure Rate
  //Rateing 10star
  Loop 10
    keys {right}
  End
End

Call Skip 7
Call Rate
Call Skip 14
Call Rate
Call Skip 3
keys {tab}
keys aim0r@gmail.com

DaMOB
I like how he suckered you into doing HIS job. wink.gif
Bear
QUOTE(DaMOB @ May 17 2009, 11:09 AM) *
I like how he suckered you into doing HIS job. wink.gif


yeah, it's not like I created code for him just compressed it. Not like it matters, it's not like it runs Faster.
DaMOB
QUOTE(Bear @ May 17 2009, 08:04 PM) *
QUOTE(DaMOB @ May 17 2009, 11:09 AM) *
I like how he suckered you into doing HIS job. wink.gif


yeah, it's not like I created code for him just compressed it. Not like it matters, it's not like it runs Faster.

Well, your time wasted on the fools who don't give one damn about you or your time so who am I to say. I just hate seeing people being taken advantage of.
doubt
hi... i am new with actool.

i wonder is there any method to shorter this

LeftClick
keys {TAB}
keys a
delay 1 sec
keys {return}
delay 1 sec



LeftClick
keys {TAB}
keys sdas
delay 1 sec
keys {return}
delay 1 sec


LeftClick
keys {TAB}
keys sal
delay 1 sec
keys {return}
delay 1 sec


actually the action is the same but the difference is the word to key in.
DaMOB
QUOTE(doubt @ Jul 23 2009, 12:47 PM) *
hi... i am new with actool.

i wonder is there any method to shorter this

LeftClick
keys {TAB}
keys a
delay 1 sec
keys {return}
delay 1 sec



LeftClick
keys {TAB}
keys sdas
delay 1 sec
keys {return}
delay 1 sec


LeftClick
keys {TAB}
keys sal
delay 1 sec
keys {return}
delay 1 sec


actually the action is the same but the difference is the word to key in.
Use a single procedure and call it with the word that is different (i.e. the 'a', 'sdas', and 'sal'). That way you only have one procedure and a few Call XXX a/sdas/sal/etc...
doubt
i have tried few methods

i guess this is what u mean

Procedure Add using name

delay 1 sec
keys {tab}
LeftClick
keys $name
delay 1 sec
keys {return}
delay 1 sec
End


Call Add a

Call Add sdas

Call Add sal

DaMOB
QUOTE(doubt @ Jul 24 2009, 12:16 AM) *
i have tried few methods

i guess this is what u mean

Procedure Add using name

delay 1 sec
keys {tab}
LeftClick
keys $name
delay 1 sec
keys {return}
delay 1 sec
End


Call Add a

Call Add sdas

Call Add sal
Yep, but that code does not match your previous example.
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.