Jump to content

Where to start hacking autoit?


Recommended Posts

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 post
Share on other sites

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 versions

Helpful 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 post
Share on other sites

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:

; 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)
endif

Regards,

-Sven

Link to post
Share on other sites
  • Administrators

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 )
Link to post
Share on other sites
  • 6 years later...

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 by Valik
Link to post
Share on other sites

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 post
Share on other sites

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=20080503045721AA4x5YP

http://ubq-visual-c.blogspot.com/2009/07/visual-c_30.html

Then 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".

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...