royjm248 Posted October 27, 2008 Share Posted October 27, 2008 I have spent hours looking through the FAQ's, and have not found a single example for using the value returned when a message box button is clicked. I would like to know the simple things. For example, if the ok button is clicked the computer may proceed with function whatever, and if the cancel button is clicked the computer may promptly exit the program without doing function whatever. Ya'all know what I'm talk'n bout? P.S. Thanks for any and all the help anyone can provide. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 27, 2008 Share Posted October 27, 2008 Here is an example, but you should really start using the helpfile, everything is in there: Switch MsgBox(1, "Title", "Text") Case 1 MsgBox(0, "", "You pressed OK") Case 2 MsgBox(0, "", "You pressed Cancel") EndSwitch .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
royjm248 Posted October 28, 2008 Author Share Posted October 28, 2008 Here is an example, but you should really start using the helpfile, everything is in there: Switch MsgBox(1, "Title", "Text") Case 1 MsgBox(0, "", "You pressed OK") Case 2 MsgBox(0, "", "You pressed Cancel") EndSwitchthank you for the help, and I use the SCITe help and there is nothing in there. If you can direct me to other help files I would like that a lot! Link to comment Share on other sites More sharing options...
BrettF Posted October 28, 2008 Share Posted October 28, 2008 Okay. I congratulate you on getting as far as SciTe. I also congratulate you if you use the full version of SciTE.Within SciTE move your cursor to a function and press F1 (FYI not the mouse cursor. The text one ).As long as it is saved as .au3 (SciTE will not add the extension for you) the help file will pop-up with information about the function you requested... LinksFull Version of SciTE:http://www.autoitscript.com/autoit3/scite/Online Docs:http://www.autoitscript.com/autoit3/docs/ 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...
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