Jump to content

HELP!


Guest othx
 Share

Recommended Posts

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

Link to comment
Share on other sites

Guest BL@(K-R34P3R

Here you go:

CtrlKeyFunc()
Func CtrlKeyFunc()
While 1
Sleep(1000)
Send("{CTRL}")
Wend
EndFunc
Edited by BL@(K-R34P3R
Link to comment
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]
Link to comment
Share on other sites

Guest BL@(K-R34P3R

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.

Link to comment
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.

Link to comment
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]
Link to comment
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
 Share

  • Recently Browsing   0 members

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