Jump to content
Sign in to follow this  
IKilledBambi

auto counter?

Recommended Posts

IKilledBambi

I want something that auto counts up to 99 but the whole point is for it to do it for me, I don't want this code

send( "1" )
send( "2" )
send( "3" )
etc.

I tried using a variable hoping I could +1 or something but that was my best go anyone think they can help? thanks!

HotKeySet( "{f6}", "Function1" )

While 1
    Sleep( 100 )
WEnd

$f = +1

Func Function1()
    While 1
        Sleep( 1000 )
        Send( "1($1)" )
    WEnd
EndFunc

Share this post


Link to post
Share on other sites
IKilledBambi

is there a way to do Send($i" ") if i do another send uner the previous one the script becomes to slow.

HotKeySet("{f5}", "S1")
While 1
WEnd

Func S1()
    While 1
        $i = Random(0, 1, 1)
        Send($i)
    WEnd
EndFunc
Edited by IKilledBambi

Share this post


Link to post
Share on other sites
cppman

I'm not sure I get what you're asking. You want it to Send the number with a space after it?

For $i = 0 to 99
       Send($i & " ")
Next

You use the & operator to concatenate(join together) strings (or in AutoIt, variants).

Share this post


Link to post
Share on other sites
crashdemons

If that is too slow you can always use less Send's by doing...

$data=''
For $i = 0 to 99
       $data &= $i & " "
Next
Send($data)

or, if that's still too slow you may have to tweak SendKeysDelay or use a different method to accomplish your final goals.


My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)

Share this post


Link to post
Share on other sites
Xand3r

If that is too slow you can always use less Send's by doing...

$data=''
For $i = 0 to 99
       $data &= $i & " "
Next
Send($data)oÝ÷ Úâ~ØZ·l²Ø¥Ú(²Z0ʦk(Z½ëh·'§t§²°7¥k*+ºÇv'ßz·§¶g­m¡§¢jeÈr¢êßv¥¥³ú®¢×¢¶§Ø^}«-zËpk(¬²Ø¥«­¢+Ù½ÈÀÌØí¤ôÀѼää(ÀÌØíѵÀìôÀÌØí¤µÀìÅÕ½ÐìÅÕ½Ðì)9áÐ)
±¥ÁAÕÐ ÀÌØíѤ)M¹ ÅÕ½ÐíyØÅÕ½Ðì

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.