Guest othx Posted October 20, 2004 Posted October 20, 2004 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!!!
Matt @ MPCS Posted October 20, 2004 Posted October 20, 2004 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
the_lord_mephy Posted October 20, 2004 Posted October 20, 2004 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 October 20, 2004 Posted October 20, 2004 (edited) Here you go: CtrlKeyFunc() Func CtrlKeyFunc() While 1 Sleep(1000) Send("{CTRL}") Wend EndFunc Edited October 20, 2004 by BL@(K-R34P3R
the_lord_mephy Posted October 21, 2004 Posted October 21, 2004 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 October 21, 2004 Posted October 21, 2004 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.
scriptkitty Posted October 21, 2004 Posted October 21, 2004 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 October 21, 2004 Posted October 21, 2004 That works too. I was just trying to produce a quick script to help the 1337 S(R1P71/\/G GUY. =)
the_lord_mephy Posted October 21, 2004 Posted October 21, 2004 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]
lte5000 Posted October 21, 2004 Posted October 21, 2004 (edited) Opt("SendKeyDelay", 1000) Send("{LCTRL 99999999999}") Edit: Wrong Key. Edited October 21, 2004 by lte5000
the_lord_mephy Posted October 21, 2004 Posted October 21, 2004 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]
lte5000 Posted October 21, 2004 Posted October 21, 2004 {LCTRL} = Left CTRL key {RCTRL} = Right CTRL key Nothing about {crtl} in the help file. Kendall
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now