Sign in to follow this  
Followers 0
Guest othx

HELP!

12 posts in this topic

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!!!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Here you go:

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Opt("SendKeyDelay", 1000) 
Send("{LCTRL 99999999999}")

:)

Edit: Wrong Key. :)

Edited by lte5000

Share this post


Link to post
Share on other sites

There you go :)


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]

Share this post


Link to post
Share on other sites

{LCTRL} = Left CTRL key

{RCTRL} = Right CTRL key

Nothing about {crtl} in the help file. :)

Kendall

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  
Followers 0