Angel Posted January 21, 2005 Share Posted January 21, 2005 Hi, after several months of reading on this forum and using AutoIt I'd like to have a look at the actual code and perhaps try doing some small enhancement. My question to the current developers is where do you think would be the best way to start analyzing the code. Also, do you have any idea for a small modification, something on the TODO list, that could be easy to tackle for a newbie like me but that noone has yet had time to implement? Also, do I absolutely need Visual C++ to compile the source? Cheers, Angel Link to comment Share on other sites More sharing options...
CyberSlug Posted January 22, 2005 Share Posted January 22, 2005 Here's a reqest: Multiple separate filters in the FileOpenDialog function.Here's my proposed AutoIt syntax for the attached example screenshot:FileOpenDialog("Example","C:\", "Text (*.txt;*.ini)|Image (*.bmp;*.jpg)|Sound (*.mp3)|ALL (*.*)")You would only need to modify the FileDialog() in script_file.cpp- to parse the pipe-separated list- to create the correct filter for the OPENFILENAME structure- make sure code works on both 9x and 2000/XP Windows versionsHelpful links:http://msdn.microsoft.com/library/default....penfilename.asp Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
therks Posted January 22, 2005 Share Posted January 22, 2005 Here's my proposed AutoIt syntax for the attached example screenshot:FileOpenDialog("Example","C:\", "Text (*.txt;*.ini)|Image (*.bmp;*.jpg)|Sound (*.mp3)|ALL (*.*)")What if you wanted to use the pipe in the description of the filetype? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
SvenP Posted January 22, 2005 Share Posted January 22, 2005 Here's a reqest: Multiple separate filters in the FileOpenDialog function.Here's my proposed AutoIt syntax for the attached example screenshot:FileOpenDialog("Example","C:\", "Text (*.txt;*.ini)|Image (*.bmp;*.jpg)|Sound (*.mp3)|ALL (*.*)").....<{POST_SNAPBACK}>This is not really THE solution, but it was a great opportunity to test this one with AutoIt-COM. And yes, it works:expandcollapse popup; File open dialog example ; ; Using the CommonDialog object ; ; Requirements: AutoIt 3.0.103 with COM extensions ; ; These are constants for licensing the use of MSComDlg.CommonDialog Object. ; Normally this object is licensed with Microsoft Office. ; Once registered, these lines are no longer required. Const $Regkey = "HKEY_CLASSES_ROOT\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905" Const $ValueName = "" ; (default) key Const $LicValue = "gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj" regwrite($RegKey,$ValueName,"REG_SZ",$LicValue); License the object ; Here it starts... ; ----------------- $Filename = "C:\Default.txt"; Just a default, can be left empty $OpenDialog = CreateObject("MSComDlg.CommonDialog") ; For description of the filter format, see: ; http://msdn.microsoft.com/library/en-us/cmdlg98/html/vbproFilter.asp ; This filter collection contains 4 separate filters $ComplexFilter="Text (*.txt;*.ini)|*.txt;*.ini|Image (*.bmp;*.jpg)|*.bmp;*.jpg|Sound (*.mp3)|*.mp3|ALL (*.*)|*.*" With $OpenDialog; set the dialog's properties .DialogTitle = "Choose the file type you want to open..." .Filter = $ComplexFilter ; Set my filter .FilterIndex = 2 ; Default position in the above filter .MaxFileSize = 260 .Flags = 0 .Filename = $Filename .ShowOpen ; This will display the Open File Dialog $FileName = .FileName ; Assign the filename selected to a variable. EndWith if @error then msgbox(0,"","An error occured. Error number: " & @error) else msgbox(0,"","You have chosen the filename: " & $Filename) endifRegards,-Sven Link to comment Share on other sites More sharing options...
killaz219 Posted January 23, 2005 Share Posted January 23, 2005 (edited) Also, do I absolutely need Visual C++ to compile the source?<{POST_SNAPBACK}>I think Jon trys to make it so that all you need to have is Dev-c++ (free c++ compiler from bloodshed) Edited January 23, 2005 by killaz219 Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 23, 2005 Administrators Share Posted January 23, 2005 I think Jon trys to make it so that all you need to have is Dev-c++ (free c++ compiler from bloodshed)Yeah, when the source goes back up it should compile cleanly on DevC++, VC6 and VC7 (2003, 2004 etc ) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
rosetta Posted December 3, 2011 Share Posted December 3, 2011 (edited) I have a book that is based on visual C++ 2003 (version 7.1).If i download and install visual c++ 2008 edition from Microsoft, can i still be taught by that books while using the newer version of visual c++ or are there some core differences between the options and GUI ? Edited December 3, 2011 by Valik Link to comment Share on other sites More sharing options...
Valik Posted December 3, 2011 Share Posted December 3, 2011 I have a book that is based on visual C++ 2003 (version 7.1).If i download and install visual c++ 2008 edition from Microsoft, can i still be taught by that books while using the newer version of visual c++ or are there some core differences between the options and GUI ?You need to explain why you resurrected a 6 year old thread to ask a question about an 8 year old book on a 3 year old product. You also need to explain why your post contained a spam link and why your other post was nothing but spam. You have 48 hours to explain, otherwise I will assume I'm talking to a bot and block you. Link to comment Share on other sites More sharing options...
jvanegmond Posted December 3, 2011 Share Posted December 3, 2011 You need to explain why you resurrected a 6 year old thread to ask a question about an 8 year old book on a 3 year old product. You also need to explain why your post contained a spam link and why your other post was nothing but spam. You have 48 hours to explain, otherwise I will assume I'm talking to a bot and block you.It's a bot. They copy and paste other comments and questions based on keywords. Source of his post:http://answers.yahoo.com/question/index?qid=20080503045721AA4x5YPhttp://ubq-visual-c.blogspot.com/2009/07/visual-c_30.htmlThen they add a spam link on the end. If in doubt, just google a few words in "quotes" then you won't be fooled again and can just ban immediately. In this case I googled for "I have a book that is based on visual C++ 2003". github.com/jvanegmond 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