asdfmovie99e Posted February 2, 2014 Share Posted February 2, 2014 I wrote the following scipt: #NoTrayIconay #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> #include <EditConstants.au3> global $fortschritt Opt("GUIOnEventMode", 1) MsgBox(0,"333999","Wenn dies dein erster Programmstart ist gebe 333999 ein") GUICreate("333999 Helper V1.0", 350, 420, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") GUICtrlCreateLabel("Fortschrittscode", 10, 13, 100, 20) $fortschritt = GUICtrlCreateInput("", 130, 10, 100, 20) GUICtrlSetState(-1, $GUI_ENABLE) GUICtrlRead(-1, GUICtrlCreateButton("GO", 250, 10 ,60, 20) GUICtrlSetOnEvent(-1, "_ButtonFortschritt") GUISetState() sleep(10000000) Func _exit() Exit endfunc Func _ButtonFortschritt() If $fortschritt = 333999 Then msgbox(0, "333999Helper", "Wie ich sehe hast du das Programm runtergeladen. Gebe nun den Code 679534 ein") FileWriteLine(".Baum.txt",$fortschritt) endfunc Now i have a very big problem. no matter what i type in in the var $fortschritt is 4. What is wrong in the script help please Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 2, 2014 Moderators Share Posted February 2, 2014 asdfmovie99e,Welcome to the AutoIt forum. no matter what i type in in the var $fortschritt is 4.That is because the variable $fortschritt contains the ControlID of the input. This is the index of the internal Autoit array that holds data about that control. if you want to see what is in the control then you need to use GUICtrlRead($fortschritt). M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
asdfmovie99e Posted February 2, 2014 Author Share Posted February 2, 2014 Thanks for help 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