Jump to content

Let a script run in a script?


Recommended Posts

#include <GUIConstants.au3>

;settings: exit and start keys

HotKeySet ( "{F6}", 'end')




;=====================================

GUICreate("Test", 250, 150)
GUISetFont(12)

$pass = InputBox ("Test", "please enter your password","","*",250,150)

GUICtrlCreateLabel("How many times should i repeat this?", 4, 4)
$put1 = GUICtrlCreateInput("", 4, 25, 200, 25)

$send = GUICtrlCreateButton("Start", 4, 60, 150, 25)

GUISetState()



While  1
    $number = GUIGetMsg()
    If $pass <> "password" Then
            $WrongPass = MsgBox (1,"warning" , "incorrect password" & @CRLF & "TRY AGAIN ?")
            If  $WrongPass = 1 Then
                $pass = InputBox ("enter password", "please enter your password","","*",250,150)
            ElseIf $WrongPass = 2 Then
                $Exting = MsgBox (0,"Exiting" , "Due to cancelation by user.." & @CRLF & "Now exiting the programm")
                ExitLoop
            EndIf
    EndIf
    If $number = $GUI_EVENT_CLOSE Then ExitLoop
    If $number = $send Then SendMyData ()
WEnd


Func SendMyData()
$i = 0
While $i <= $
    ;#include <game.au3>
    msgbox ( 1, "hey", "hey")
sleep (50)  
    $i = $i + 1
WEnd
EndFunc

Func end()
    Exit 0
endfunc

So this is my gui script, but i got some issues with it.

could someone help me out with this one?

+ password stuff is working fine,

- but when i put in a number (5 for example)

than i would like that the msgbox with "hey" pops up 5x...but it doesn't :s

could anyone help me fix this?

kind regards,

stefan

Edited by Qsert18
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...