Jump to content

Recommended Posts

Posted

Ok I want to make a script that presses my CTRL key, every 1 second. like 1 bagillion times, can someone PLEASE make that script for me??? THANK YOU SO MUCH!!!

Posted

I am sure someone could write the script for you but most people on this forum won't... learn AutoIt write it yourself! RTFM! Hints: Lookup TimerInit, TimerDiff, and Send.

*** Matt @ MPCS

Posted

Or look up, While, and Sleep =\

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Guest BL@(K-R34P3R
Posted (edited)

Here you go:

CtrlKeyFunc()
Func CtrlKeyFunc()
While 1
Sleep(1000)
Send("{CTRL}")
Wend
EndFunc
Edited by BL@(K-R34P3R
Posted

1) The Idea was to make him figure it out himself

2) You don't need the first line in your code

3) You don't need a function at all

While 1
Send("{ctrl}")
Wend

Or (to specefy the ammount of times to send control)

$i = 0
For $i = 0 to [B]Number of times to send[/B]
Send("{ctrl}")
Next

(Not sure if you need the first line in my code either =-o )

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Guest BL@(K-R34P3R
Posted

I know, and yes, you don't need the first line of code in your last one. You do not need $i = 0. =) But I know that help is hard to get, and sometimes frustrating.

Posted

Actually he said every second, so you would need the sleep(1000) part, or make a send delay in there.

But I think a little research might have been more benificial.

"Give a man a match, and he will be warm for a day, Light a man on fire and he will be warm for the rest of his life...." well something like that...

for $time = 0 to 1000
send("{crtl}")
sleep(1000)
next

$clicks=0
while $clicks<1000
send("{crtl}")
sleep(1000)
$clicks=$clicks+1
wend

$clicks=0
$time=1000; delay in miliseconds
do
send("{crtl}")
sleep($time)
$clicks=$clicks+1
until  $clicks>=1000

etc, etc....

AutoIt3, the MACGYVER Pocket Knife for computers.

Guest BL@(K-R34P3R
Posted

That works too. I was just trying to produce a quick script to help the 1337 S(R1P71/\/G GUY. =)

Posted

Lol, Good job script kitty, I think you covered 'em all.

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...