FinalVersion Posted April 24, 2009 Share Posted April 24, 2009 This is what I have. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 174, 61, 193, 147) $Input1 = GUICtrlCreateInput("Input1", 8, 16, 145, 21) $Button1 = GUICtrlCreateButton("Button1", 32, 40, 89, 17, 0) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit Case $msg = $Button1 MsgBox(0, "Test", $Input1) EndSwitch WEnd And all the msgbox shows is 3, and i don't even have to push the button, the msg box just keeps popping. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
BrettF Posted April 24, 2009 Share Posted April 24, 2009 Please read the helpfile better or search the forums... It says to use GUICtrlRead! Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
FinalVersion Posted April 24, 2009 Author Share Posted April 24, 2009 Please read the helpfile better or search the forums... It says to use GUICtrlRead!I can't use my helpfile imo. [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
BrettF Posted April 24, 2009 Share Posted April 24, 2009 Not really that hard. You wanted to get the value of the input, so that should have been the first place you looked- GUICtrlCreateInput. Under the remarks heading is the first easy answer. To obtain the value of the control see GUICtrlRead. Obviously you are correct in your assumption. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
FinalVersion Posted April 24, 2009 Author Share Posted April 24, 2009 (edited) Not really that hard. You wanted to get the value of the input, so that should have been the first place you looked- GUICtrlCreateInput. Under the remarks heading is the first easy answer.To obtain the value of the control see GUICtrlRead.Obviously you are correct in your assumption.But I can't check any remarks or anything like that, My helpfile just does Not work. Edited April 24, 2009 by Godly [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
picea892 Posted April 24, 2009 Share Posted April 24, 2009 #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 174, 61, 193, 147) $Input1 = GUICtrlCreateInput("Input1", 8, 16, 145, 21) $Button1 = GUICtrlCreateButton("Button1", 32, 40, 89, 17, 0) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $Button1 MsgBox(0, "Test", GUICtrlRead($Input1)) EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop sleep(100) WEnd Link to comment Share on other sites More sharing options...
jpm Posted April 24, 2009 Share Posted April 24, 2009 But I can't check any remarks or anything like that, My helpfile just does Not work.deinstall AutoIt and reinstall that may correct your help pb Link to comment Share on other sites More sharing options...
FinalVersion Posted April 24, 2009 Author Share Posted April 24, 2009 deinstall AutoIt and reinstall that may correct your help pbTried that 4 times, no luck [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
BrettF Posted April 24, 2009 Share Posted April 24, 2009 Well what happens when you try to open the helpfile? Nothing? Error? Can you open other help files like AutoIt's? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
FinalVersion Posted April 24, 2009 Author Share Posted April 24, 2009 Well what happens when you try to open the helpfile? Nothing? Error?Can you open other help files like AutoIt's?I click on a function, hit display and where it would normally display the example ect. just complete white. And no I can't read any other .chm's [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
jpm Posted April 24, 2009 Share Posted April 24, 2009 Tried that 4 times, no luck how did you install with the setup.exe or the .zip?under which system are you running 2000, XP, Vista?What is the message you receive when it is failing ? Link to comment Share on other sites More sharing options...
FinalVersion Posted April 24, 2009 Author Share Posted April 24, 2009 how did you install with the setup.exe or the .zip?under which system are you running 2000, XP, Vista?What is the message you receive when it is failing ?Setup.exexp pro sp2none [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
ProgAndy Posted April 24, 2009 Share Posted April 24, 2009 I click on a function, hit display and where it would normally display the example ect. just complete white. And no I can't read any other .chm'sTry this: HTML Help - Diagnostics (DL) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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