Jump to content
Torvig1

My loop wont work

Recommended Posts

Torvig1

I made this script for a game I play, What it does is when i hold down LButton it will click very fast and when I release LButton It stops clicking. But instead of looping it just clicks once, I have tried removing 

GetKeyState, state, LButton, P

And it will work how i want it to but when I release LButton It keeps clicking.

Here is the script

Loop
{
    GetKeyState, state, LButton, P
    if state = D
        Loop
        {
            Click, 1
            GetKeyState, state, LButton, P
            if state = U
                Break
        }
}
esc::
ExitApp

Can anyone help?

Share this post


Link to post
Share on other sites
Jos
Posted (edited)

@Torvig1,
Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. (there is also a link in my signature) 
Please read them now particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

On top of that: The posted script isn't AutoIt3!

See you soon with a legitimate question I hope. :)
Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×