Dale2507 Posted March 2, 2008 Share Posted March 2, 2008 (edited) Here's a script which manages a project's files allowing you to use the #include splitting scripts down to make them easier to manage and still easy to test and compile.I've included the Koda forms, script file and executable.AutoIt_Project_Manager.zipThings to do- Allow opening of several projects in same tree.- Set console to write to a debugger window (currently programming)- Set to open SciTE when program loads- Set to add .au3 extension onto file if not already on Edited March 22, 2008 by Gmail Deal or No Deal? Link to comment Share on other sites More sharing options...
Swift Posted March 2, 2008 Share Posted March 2, 2008 (edited) I'll test it out soon and tell you what I think Wow! Fairly Good Sir! I like it! Unuseful because...it saves your file as a $Name not as $Name & ".au3" so...when it trys to edit it with scite it says this file does not have a extension. so...it doesnt work... Edited March 2, 2008 by Swift Link to comment Share on other sites More sharing options...
James Posted March 2, 2008 Share Posted March 2, 2008 Looks good. I shall try it very soon! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
slayerz Posted March 3, 2008 Share Posted March 3, 2008 (edited) I'll try it later...Thanks Gmail for sharing... Edited March 3, 2008 by slayerz AUTOIT[sup] I'm lovin' it![/sup] Link to comment Share on other sites More sharing options...
Dale2507 Posted March 15, 2008 Author Share Posted March 15, 2008 soz been a bit busy. I know wot u mean with the .au3 an i'll ave a look at it. I also need to make it start scite if it isn't already started (unless i put that in already). I would like to put it into the tools in my scite. Anyone have any idea's. If so i'll set it as an option. Also having some problems with the part where it sends the #include. Deal or No Deal? Link to comment Share on other sites More sharing options...
ptrex Posted March 17, 2008 Share Posted March 17, 2008 @Gmail Looks good. But it's a pitty that you didn't use a DB to store alle the data in. Instead of an ini file. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
sbgwb0769 Posted March 18, 2008 Share Posted March 18, 2008 Looks good. I shall try it very soon! Link to comment Share on other sites More sharing options...
le15 Posted March 21, 2008 Share Posted March 21, 2008 Also having some problems with the part where it sends the #include.Replace Send ('#include "'&$files[$i][1]&'\'&$files[$i][2]&'"'&@CRLF) by Send ('{ASC 035}' & 'include "'&$files[$i][1]&'\'&$files[$i][2]&'"'&@CRLF) Link to comment Share on other sites More sharing options...
Dale2507 Posted March 21, 2008 Author Share Posted March 21, 2008 (edited) Replace Send ('#include "'&$files[$i][1]&'\'&$files[$i][2]&'"'&@CRLF) by Send ('{ASC 035}' & 'include "'&$files[$i][1]&'\'&$files[$i][2]&'"'&@CRLF) Hey thanks that works perfectly. I've also just found that you can open 2 projects at the same time cos it just adds it to the bottom of the tree so this may come in handy for some people. However i think this may be overwriting some of the values in the files array but it has given me an idea and i shall look into it. I've also fixed a bug with the testing as clicking cancel on the parameters box would still run the script. Edited March 21, 2008 by Gmail Deal or No Deal? Link to comment Share on other sites More sharing options...
GEOSoft Posted March 21, 2008 Share Posted March 21, 2008 I just found out how dangerous this can be. I created a new project. That part went fine and I browsed to the au3 file. The au3 file was placed in the tree. So far so good. I clicked on the Test menu item and since there are no parameters required I dismissed that input dialog. Then I got a message box stating "Make sure all files used by the project are upto date." (BTW upto should be two words). Nothing happened so I closed Project manager and opened my au3 file. It was blank (didn't start out that way) and blank files don't run well. Fortunatly it was a copy of a script I was working on. It might be a good idea if you created a backup copy (of the origional script) someplace in the process. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Dale2507 Posted March 22, 2008 Author Share Posted March 22, 2008 I just found out how dangerous this can be. I created a new project. That part went fine and I browsed to the au3 file. The au3 file was placed in the tree. So far so good. I clicked on the Test menu item and since there are no parameters required I dismissed that input dialog. Then I got a message box stating "Make sure all files used by the project are upto date." (BTW upto should be two words). Nothing happened so I closed Project manager and opened my au3 file. It was blank (didn't start out that way) and blank files don't run well. Fortunatly it was a copy of a script I was working on. It might be a good idea if you created a backup copy (of the origional script) someplace in the process. Thats rather strange. I've never had that happen before and it shouldn't as there is nothing about writing to scripts in the part of the script for the test menu but i'll look into it anyway. $Parameters = InputBox ("Parameters", "Please input any parameters to run the main script with.") If Not @error Then $exe = $AutoItDir&'\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe' $params = '/run /prod /ErrorStdOut /in "'&$Files[0][1]&"\"&$Files[0][2]&'" /autoit3dir "'&$AutoItDir&'" /UserParams '&$parameters MsgBox (48, "Project Testing", "Make sure all files used by the project are up to date.") $process = Run ($exe, $params) EndIf Thanks for the hint about the upto. that's been changed. I've also added a checker so that files are checked to exist before the project is opened and this also lets you find that file. I'va also made it add file extensions on if they aren't already. Deal or No Deal? Link to comment Share on other sites More sharing options...
Dale2507 Posted March 22, 2008 Author Share Posted March 22, 2008 I've found the problem of the scripts not running correctly. I think in a previous version i had used ShellExecute whereas now the command is run but i forgot to change inside the brackets. I've also found how to get the console data so i shall be making a debugger window. Deal or No Deal? Link to comment Share on other sites More sharing options...
Dale2507 Posted April 22, 2008 Author Share Posted April 22, 2008 Soz haven't had time to do much work an this. For those who want this in the tools menu in autoit (easier to open) here's some code to add to the au3.properties in the options menu. Add this in the command section at the first available space (default 17, line 176) # 17 Dale2507's Project Manager command.17.$(au3)="$(SciteDefaultHome)\ProjectManager\project manager.exe" command.name.17.$(au3)=Dale2507's Project Manager command.shortcut.17.$(au3)=Ctrl+Alt+P command.subsystem.17.$(au3)=2 command.save.before.17.$(au3)=2 Then save and exit Then Move the .exe to "$(SciteDefaultHome)\ProjectManager\project manager.exe" $(SciteDefaultHome) is usually C:\Program files\AutoIt\Scite That's it. Press Ctrl Alt and P to open it when you've got a au3 file open Deal or No Deal? 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