Sign in to follow this  
Followers 0
Qsert18

Let a script run in a script?

5 posts in this topic

#1 ·  Posted (edited)

solved it myself hehe after looking into some example scripts :s

sorry please delete this topic

Edited by Qsert18

Share this post


Link to post
Share on other sites



Post your solution, maybe it'll help someone with a similar problem..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

oké :unsure:

When u want to execute ur other script than u just have to put in:

#include <name of the file> and it will start it

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

#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

Share this post


Link to post
Share on other sites

i solved it myself....again... lol :unsure:

just had to add a guictrlread (in case someone else is wondering)

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  
Followers 0