Qsert18 Posted May 14, 2011 Share Posted May 14, 2011 (edited) solved it myself hehe after looking into some example scripts :s sorry please delete this topic Edited May 14, 2011 by Qsert18 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 14, 2011 Share Posted May 14, 2011 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. Link to comment Share on other sites More sharing options...
Qsert18 Posted May 14, 2011 Author Share Posted May 14, 2011 oké 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 Link to comment Share on other sites More sharing options...
Qsert18 Posted May 14, 2011 Author Share Posted May 14, 2011 (edited) expandcollapse popup#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 May 14, 2011 by Qsert18 Link to comment Share on other sites More sharing options...
Qsert18 Posted May 14, 2011 Author Share Posted May 14, 2011 i solved it myself....again... lol just had to add a guictrlread (in case someone else is wondering) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now