Jump to content

a little help please


Recommended Posts

Hello, first i like to say the only language i worked with is html and dos, i dont even know what autoit uses (please tell me).

here is a script i made, well, working on:

If
    MouseDown ( "left" )
        Do send ( "p" )
        Sleep (7)
        Until MouseUp ( "left" )
    Then
        ContinueLoop
Wend

There is a bug in it, when trying to run it i get the message "if statement must have a then"

sofar i think it could be the continueloop, or that do until overrules if then.

Thanks in advance.

edit: my dad says the Wend is wrong, but removing that doesent change a thing

Edited by a fly
Link to comment
Share on other sites

Try This:

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While (1)
If _IsPressed ("01", $dll) Then
    send ( "p" )
    Sleep (7)
EndIf
Wend

DllClose($dll)

Hope this helps,

Nomad

Edit: you need beta for this.

Edited by Nomad
Link to comment
Share on other sites

Your code is TOTALY bad.

Look into AutoIt Helpfile - there are examples for every function,

there are also sections about language - Language Reference (conditions, cycles, ...)

Before you start write such bad scripts you must read some basics from AutoIt Helpfile.

Helpfile for AutoIt is really one of the best helpfiles I have seen ever :)

so don't be afraid to look into it :(

Link to comment
Share on other sites

Your code is TOTALY bad.

Look into AutoIt Helpfile - there are examples for every function,

there are also sections about language - Language Reference (conditions, cycles, ...)

Before you start write such bad scripts you must read some basics from AutoIt Helpfile.

Helpfile for AutoIt is really one of the best helpfiles I have seen ever :)

so don't be afraid to look into it :(

i looked into it, readed just about evrything, but i could not think of something to work, like i sayd its my fist time doing something in this language....

thanks for the thelp =)

Link to comment
Share on other sites

Welcome to the forum.

You will find an excellent tutorial Here


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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