Jump to content
Sign in to follow this  
noobautoit

confused please help ;;

Recommended Posts

noobautoit

Ok i read the faq's and i'm still 100% confused... i want a simple autoit script.

All i want is for autoit to press the "x" button constantly. Can someone help me out? lol :)

Share this post


Link to post
Share on other sites
Glyph

When you press the "x" button it generally closes an application... why on earth would you need to click it more then once? lol?


tolle indicium

Share this post


Link to post
Share on other sites
noobautoit

lol its just for something i'm testing but i dont want to sit here for 8 hours pressing the "x" button over and over xD

Share this post


Link to post
Share on other sites
Valuater

Merry Christmas

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused, $Runner, $begin, $wait = 3 ; wait = 3 seconds
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F9}", "ShowMe")

;;;; Body of program would go here ;;;;
While 1
    Sleep(10)
    If $Runner Then
        $dif = Int(TimerDiff($begin)/1000)
        If $dif >= $wait Then
            Send("X")
            $begin = TimerInit()
        EndIf
    EndIf
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMe()
    $Runner = Not $Runner
    $begin = TimerInit()
EndFunc

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
noobautoit

Cool thanks it works fine :) 3 more hours to go!!

Share this post


Link to post
Share on other sites
TnTProductions

seriously why do you want it to press x over and over lol?


"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

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  

×