Jump to content
Sign in to follow this  
Spyros2309

Need Help with sth

Recommended Posts

Spyros2309

Hi. I am completely newbie with AutoIt, or any other programming language.

I only now some basics with VB.

I am trying to make a program, without gui or sth.

I want it in the beggining to ask 2 questions, then to show 2 checkboxes(in one window), and then use this values to the script.

Checkboxes can't be ticked together..

In VB it is like:

x=InputBox("Write this")

and the I can use this value to sth, like

message=MsgBox("You wrote" + x + ". Press ok now")
or
If  x>10 Then
message=MsgBox("Success")
Else
message=MsgBox("Fail")
End If

But in autoit I don't know how to do it.

I also want to do this with the checkboxes, and use the one value for delay, and the next for Looping some statements..

And ofc I can't make it with gui.. It's more difficult there. I downloaded KODA's help program for GUIs, but when I try to make a button, I have the same problem.. Can't use the variable to sth, or can't connect one button to a statement.. I can't do nothing.. Yes, I don't know nothing :lmao:

Any help?

If you don't undestand sth, ask me so I will explain better my problem. I really need help guys :think:

Thank you :)

Edited by Spyros2309

Share this post


Link to post
Share on other sites
Andreik

Use help file to learn AutoIt.

$x=InputBox("Write this","something")
$message=MsgBox(0,"TITLE","You wrote" & $x & ". Press ok now")

Some ex:

$INPUT = InputBox("Title","Please write something","This is a test")
$MSGBOX = MsgBox(0x4,"You wrote",$INPUT)
If $MSGBOX = 6 Then
    MsgBox(0,"","You press button YES")
ElseIf $MSGBOX = 7 Then
    MsgBox(0,"","You press button NO")
EndIf
Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites
Spyros2309

Yes I have read the Help File..

But it doesn't says how to use the value..

So, If I want it to sleep, I will do this?

Sleep($x*60000)

Or for looping this?

For $i = $x To 0
    statements
    ...
Next

And sth more..

Is there GoTo function or sth...?

(yes, i've searched the help file for a goto but it returned nothing for it..

Share this post


Link to post
Share on other sites
Andreik

Yes I have read the Help File..

But it doesn't says how to use the value..

So, If I want it to sleep, I will do this?

Sleep($x*60000)

Or for looping this?

For $i = $x To 0
    statements
    ...
Next

And sth more..

Is there GoTo function or sth...?

(yes, i've searched the help file for a goto but it returned nothing for it..

GoTo

Tutorial

Tutorial

FAQ

Hope that helps. :)

Edited by Andreik

When the words fail... music speaks

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.