FuryCell Posted September 30, 2010 Share Posted September 30, 2010 (edited) I've been working on Au3DB and really think it could be useful to a lot of the scripters in the community. However , I need an installer to make this easy to add and remove from scite. I know it says team member needed but if someone could get it up and running I would be happy to maintain it from there.And of course you would get your name in the credits. =)Any help would be much appreciated. Edited September 30, 2010 by FuryCell HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Mat Posted September 30, 2010 Share Posted September 30, 2010 Can you make a list of everything that needs to be done... what files need to be edited etc. AutoIt Project Listing Link to comment Share on other sites More sharing options...
FuryCell Posted September 30, 2010 Author Share Posted September 30, 2010 (edited) Can you make a list of everything that needs to be done... what files need to be edited etc. Of course. 1.Copy the program files into a subfolder called au3db within the scite folder Au3DB.exe Scintilla (FOLDER) Data (FOLDER) 2.If the config data is not present then do the modifcations here. ;Get Path from user $SciteDir = InputBox("Enter SciTE path.", " ", @ProgramFilesDir & "\AutoIt3\SciTE") If @error Then Exit ;Set path to props file $File = $SciteDir & "\Properties\au3.properties" ;Read the data from the props file $Data = FileRead($File) ;Replace data in the props file $Data = StringReplace($Data, "user.context.menu=||Add as Snippet|1116|", "") If @error Then Error("StringReplace failed.") $Data = StringReplace($Data, "# 16 GAfrost Snippet holder", "# 16 FuryCell Au3DB") If @error Then Error("StringReplace failed.") $Data = StringReplace($Data, 'command.16.$(au3)="$(SciteDefaultHome)\CSnippet\CSnippet.exe" /CreateSnippet', 'command.16.$(au3)="$(SciteDefaultHome)\au3db\au3db.exe"') If @error Then Error("StringReplace failed.") $Data = StringReplace($Data, "command.name.16.$(au3)=Snippet Holder", "command.name.16.$(au3)=Au3DB (Snippet Holder)") If @error Then Error("StringReplace failed.") ;Open props file and write new data $Handle = FileOpen($File, 2) If Not FileWrite($Handle, $Data) Then Error("Failed to write new properties file.") btw how are things with au3int? Edited September 30, 2010 by FuryCell HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Mat Posted September 30, 2010 Share Posted September 30, 2010 So as far as user input goes, there's not much. Why don't you just do it in autoit? Surely the install dir is a subdir of SciTE Here is what I use to get the scite dir: Func _Au3Int_SciTEInfo() Local $sKey = RegRead("HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\SciTE.exe", "") If @error Then Return SetError(1, 0, "") Return StringTrimRight($sKey, StringLen("SciTE.exe")) EndFunc ;==>_Au3Int_SciTEInfo FileInstall the files to the folder where you want them, then patch au3.properties. A GUI isn't really necessary is it? And even if it is it won't be very complex. AutoIt Project Listing Link to comment Share on other sites More sharing options...
FuryCell Posted September 30, 2010 Author Share Posted September 30, 2010 I think I'm going to do a small gui that fileinstalls a 7zip sfx archive and then executes it to extract all the files (Avoiding a ton of fileinstalls) and then modify the props file. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
GEOSoft Posted September 30, 2010 Share Posted September 30, 2010 Why not just work with Jos on the install part? I think he is aware that the current snippet holder already needs some code changes to even get it working in the later versions. I've done mine already but I do remember letting Jos know that it needs changing. With a new tool, there would be no changes to do, just eliminate the current snippet holder and replace it with AU3DB. Jos could correct the entries in the Scite files so you don't have to do any installs at all. It would be nice if you could Import/Export the current stored snippets though. 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...
FuryCell Posted September 30, 2010 Author Share Posted September 30, 2010 Why not just work with Jos on the install part? I think he is aware that the current snippet holder already needs some code changes to even get it working in the later versions. I've done mine already but I do remember letting Jos know that it needs changing. With a new tool, there would be no changes to do, just eliminate the current snippet holder and replace it with AU3DB. Jos could correct the entries in the Scite files so you don't have to do any installs at all.It would be nice if you could Import/Export the current stored snippets though.I'll send jos a PM. Import export sounds like a good feature I'm going to add that to the tracker as well. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. 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