GaryFrost Posted January 27, 2006 Share Posted January 27, 2006 (edited) Bugs/comments/suggestions are welcomeThis tool is already included with SciTE.In the SciTE folder is a folder called cSnippet.v 1.0.5.8Fixed ToolTip TimeoutAdded Else condition to rename CategoryPlease inform me of any bugs, I find many because I do use this script very much.-> Snippet Holder 1.0.5.8<-CODEhttp://www.autoitscript.com/fileman/users/gafrost/CSnippet.GIFhttp://www.autoitscript.com/fileman/users/gafrost/CSnippet1.GIFhttp://www.autoitscript.com/fileman/users/gafrost/CSnippet2.GIFv 1.0.5.7 Now located in DownloadsUpdated: Configuration option to show/hide tool tip.v 1.0.5.6 Now located in Downloadsv 1.0.5.5 Fixed bug with switching between ListView and TreeView, depending on where SciTE is installed would get errors switchingv 1.0.5.4 Fixed bug with Primary Down fireing when initializing Preview/Edit windowsv 1.0.5.3 Found/Fixed bug in Treeview side, copy from clipboard context menuv 1.0.5.2- (beta 3.1.1.128 or higher required) Fixed Code to not rely on GuiCtrlRead in advanced mode (broken in beta 3.1.1.131 for treeview)v 1.0.5.1- (beta 3.1.1.128 or higher required) Fixed Rename Snippet bug on TreeView Sidev 1.0.5.0- (beta 3.1.1.128 or higher required) enhanced search for both listview and treeviewSearch starts from item selected (if any selected) and wraps back aroundFor Listview if the category column is visible then the search includes that columnFixed scroll when searching in listview (now calculates the scroll amount by the rect of the 1st row)v 1.0.4.9- (beta 3.1.1.128 or higher required) Fixed Fuzzy Search selection on treeviewv 1.0.4.8- (beta 3.1.1.128 or higher required)Removed Back-up option (was for when snippets were stored all in 1 file "the ini")Added Fuzzy Searchv 1.0.4.7- (beta 3.1.1.128 or higher required)Fixed bugs in the treeview side with guicreate not having min/max buttonsFixed about box being abble to be created more than once.Fixed docking of controlsAdded min/max width of main gui limitationsv 1.0.4.6- (beta 3.1.1.128 or higher required)Fixed bugs in the treeview side with the delete/save snippetv 1.0.4.5- (beta 3.1.1.128 or higher required)Snippets will be in folders by CategoryIf have save snippets from previous version, and ini file exists with them listed, it will move the scripts to the appropriate folders by CategoryTreeview added back inOther minor fixes and code consolidation v 1.0.4.4- 5/25/06Fixed Duplicate File Name bug....v 1.0.4.3- 5/09/06Added Alt+Shift+r "run"Added Alt+Shift+b "beta run"These are only valid hot keys when the tooltip is visibleAlt+Shift+cAlt+Shift+tAlt+Shift+rAlt+Shift+bv 1.0.4.2- 4/16/06Fixed crash when run on Win9xv 1.0.4.1 - 4/15/06Added ClipBoard Monitoring thanks to Larry/ZednaAdded Alt + Shift + t to close the tooltipv 1.0.4.0 - 4/9/06Added Clipboard Copy To/Fromv 1.0.3.7 - 3/4/06Fixed bug introduced with allowing scrollable readonly edit controlv 1.0.3.6 - 3/4/06View/Edit Source screen now scrollable when not in edit modeCode Snippet will be in the tools with the next release of SciTE from JdeBv 1.0.3.5 - 3/2/06Fixed behaviour of code snippet minimized and sending code from scite to code snippetAttachment Removed: Code Snippet will be in the tools with the next release of SciTE from JdeBv 1.0.3.4 - 3/1/06Fixed error with dllclosev 1.0.3.3 - 2/27/06Added checking for ilegal characters in snippet nameFixed renaming of snippetFixed New catogoryv 1.0.3.2 - 2/25/06Added Import of .au3 filesAdded Export to .au3 filesCPU usage should be at about 9 - 10% compared to 1.0.3.0 which was above 40%Last Import and Export location is saved in the iniv 1.0.3.1 - 2/24/06Added Config Option (Select Snippet Folder)Added ToolTips to Toolbar ButtonsAdded Gradient Color to Main GUI (Would Like Input On this if it should have gradient or not)v 1.0.3.0 - 2/24/06Snippets no longer stored in Ini FileSnippets are now stored in XML FilesBefore using this one I suggest Extracting old snippets into a file or SciTE documentand starting over with new iniv 1.0.2.1 - 2/17/06Added ToolbarDisabled Treeview for now due to the GUIRegisterMsg problemCombined Notify events to 1 functionv 1.0.1.16 - 2/2/06Added Owner Drawn Menu'sNote: Holger is still trying to find a solution to problems due to using GUIRegisterMsgv 1.0.1.15 - 1/30/06Added DoubleClick on TreeView for Preview/EditProblem is there seems to be a refresh/paint problem on TreeView justlike the Slider on the ListView GuiThese Problems seem to tie in with using the GUIRegisterMsgI may be doing something wrong, but I'm stumped if I amv 1.0.1.14 1/30/06Fixed some resizing IssuesAs of Beta 3.1.1.106 appears that the unexpected program exits are gone.Still an Issue with the Slider not repainting on the ListView Screen.v 1.0.1.13 - 1/29/06Changed the read from Ini file from IniReadSection to Individual IniReads with default valuesdue to if ini exists but values don't, then don't want a crashVertical Slider on right side of gui (Transparency) from 0 to 75 %v 1.0.1.12 - 1/29/06Split ListView and TreeView into 2 seperate gui functions for better maintainabilityAs with v 1.0.11 DoubleClick uses the WM_NOTIFY eventClick is now used by WM_NOTIFY event for the listview also$GUI_EVENT_PRIMARYDOWN is only used for gui to hide previewIf change view is selected from Config menu the program exits and restarts with new viewWorked on the names of variables some, make it easier to figure out.TreeView works as in previous versionsif can figure out the events for treeview then might make another revision otherwise thisshould be the last barring any bugs found.v 1.0.1.11 - 1/28/06Fixed unexpected app exit with insert into scite, thanks again JdeBAdded DoubleClick event to listview (Preview Snippet)Added back in context menu's on listview now that events are handled for the listviewcommand line option for snipping code from sciteexample SciTEUser.properties(changed for v 1.0.1.10 and higher)#Modify Context Menu to add Right Click, Add as Snippetuser.context.menu=||Add as Snippet|1117|# 17 Gary's Code Snippetcommand.17.$(file.patterns.au3)="$(SciteDefaultHome)\Snippets\CSnippet.exe" /CreateSnippetcommand.name.17.$(file.patterns.au3)=Code Snippetscommand.shortcut.17.$(file.patterns.au3)=Ctrl+Alt+scommand.subsystem.17.$(file.patterns.au3)=2command.save.before.17.$(file.patterns.au3)=2command.replace.selection.17.$(file.patterns.au3)=0command.quiet.17.$(file.patterns.au3)=1v 1.0.1.10 - 1/28/06Thanks to JdeB for Help with Interface to SciTE utilizing the WM_COPYDATA commandProblem with too much selected in SciTE selected (errored out) corrected with new interface with SciTEInsert into SciTE now also uses the WM_COPYDATA commandau3.properties change alsofor use with v 1.0.1.9 and below# 17 Gary's Code Snippetcommand.17.$(file.patterns.au3)="$(SciteDefaultHome)\Snippets\CSnippet.exe" "$(CurrentSelection)"command.name.17.$(file.patterns.au3)=Code Snippetscommand.shortcut.17.$(file.patterns.au3)=Ctrl+Alt+scommand.subsystem.17.$(file.patterns.au3)=2command.save.before.17.$(file.patterns.au3)=2command.replace.selection.17.$(file.patterns.au3)=0command.quiet.17.$(file.patterns.au3)=1v 1.0.1.9 - 1/28/06Fixed a few bugs with the save/newAdded whole lot more error checkingv 1.0.1.8 - 1/27/06Added Menu Options for TreeView ColorsBackground/Foreground/LineSelections are saved and loaded next time app startsv 1.0.1.7 - 1/27/06Found/Fixed bug when adding new snippet/categoryv 1.0.1.6 - 1/27/06Some more clean-up, 1 window now for new/view/editfixed a few minor bugsv 1.0.1.5 - 1/27/06streamlined the code a little moreutilized the view/edit window for treeview also (combines the modify/preview)v 1.0.1.4Moved this from Mike's thread, felt like I was hijacking his thread.Added the command line option for snipping code from sciteexample au3.propertiesv 1.0.1.3Removed most of the context menu options when using listview, changed the View/Edit screen to a New/View/Edit screenDealt with the problem of sections not having any keys and renaming the sections (fixed)v 1.0.1.2Integrated most of MikeOsdx's Snippet Holder into this one, user can select, Listview or TreeViewTreeView, pretty much acts as MikeOsdx's Snippet Holder except the latestcouple of items added to snippet holderv 1.0.1.1Added back in some category functions and fixed a few minor thingsNote: this will work with the data file from MikeOsdx's SnippetHolder also (code modified from MikeOsdx code to a gui i liked better, didn't like the treeview, but then there will be plenty that won't like the listview)Thinking of integrating the 2 together and give the user a choice oftreeview/listview via option.v 1.0.1.0Added option of docking the edit window on left or right of main window, just select File, then Dock Edit Window, then either Dock Left or Dock Right, the window will slide out from that direction.Updated: Added Resize Event Gary Edited March 5, 2007 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 27, 2006 Author Share Posted January 27, 2006 v 1.0.1.5streamlined the code a little moreutilized the view/edit window for treeview also (combines the modify/preview) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 27, 2006 Author Share Posted January 27, 2006 v 1.0.1.6Some more clean-up, 1 window now for new/view/editfixed a few minor bugsSee 1st post for info, screen shots, and source SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 27, 2006 Author Share Posted January 27, 2006 v 1.0.1.7Found/Fixed bug when adding new snippet/category SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
TWC Posted January 27, 2006 Share Posted January 27, 2006 I am getting an error on line 25 & 27; Au3Check parameters. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 27, 2006 Author Share Posted January 27, 2006 I am getting an error on line 25 & 27; Au3Check parameters. Make sure you have the latest Au3Check SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 27, 2006 Author Share Posted January 27, 2006 (edited) v 1.0.1.8Added Menu Options for TreeView ColorsBackground/Foreground/LineSelections are saved and loaded next time app starts Edited January 27, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
w0uter Posted January 27, 2006 Share Posted January 27, 2006 certainly looks usefull. nj garry. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
GaryFrost Posted January 28, 2006 Author Share Posted January 28, 2006 certainly looks usefull.nj garry. Thanks, credit goes to MikeOsdx also, just making this one to fit my likes.Have a couple more fixes done, but still testing, deciding on some other changers or not.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 28, 2006 Author Share Posted January 28, 2006 (edited) v 1.0.1.9Fixed a few bugs with the save/newAdded whole lot more error checking Edited January 28, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 28, 2006 Author Share Posted January 28, 2006 v 1.0.1.10Thanks to JdeB for Help with Interface to SciTE utilizing the WM_COPYDATA commandProblem with too much selected in SciTE selected (errored out) corrected with new interface with SciTEInsert into SciTE now also uses the WM_COPYDATA commandau3.properties change alsoGary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 28, 2006 Author Share Posted January 28, 2006 v 1.0.1.11Fixed unexpected app exit with insert into scite, thanks again JdeBAdded DoubleClick event to listview (Preview Snippet)Added back in context menu's on listview now that events are handled for the listview SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
w0uter Posted January 28, 2006 Share Posted January 28, 2006 your releasing to fast to keep up >< My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
GaryFrost Posted January 28, 2006 Author Share Posted January 28, 2006 (edited) your releasing to fast to keep up >< Trying to get it done so I can clean up all these scripts off my drive Edited January 28, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 29, 2006 Author Share Posted January 29, 2006 v 1.0.1.12Split ListView and TreeView into 2 seperate gui functions for better maintainabilityAs with v 1.0.11 DoubleClick uses the WM_NOTIFY event, Click is now used by WM_NOTIFY event for the listview also, $GUI_EVENT_PRIMARYDOWN is only used for gui to hide previewIf change view is selected from Config menu the program exits and restarts with new viewWorked on the names of variables some, make it easier to figure out.TreeView works as in previous versionsif can figure out the events for treeview then might make another revision otherwise this should be the lastbarring any bugs found.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Gene Posted January 29, 2006 Share Posted January 29, 2006 Hi, I downloaded a fresh copy, compiled it, copied the EXE to "K:\_Documents\_Dev\OtherCode\Code Snippet", started it via Scite's left-click on Tools menu... Went to Config selected Dock Right then selected Treeview. Immediately I got the following error: >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: AutoIt Error Class: #32770 Size: X: 200 Y: 280 W: 633 H: 201 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 602 Y: 378 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD4D0C8 Dec: 13947080 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 68 Y: 14 W: 553 H: 98 Control ID: 65535 ClassNameNN: Static2 Text: Line 0 (File "K:\Local\Prog\AutoIt3\SciTe\Snippet\CSnippet.exe"): $PosW = $StoredDTA[3][1] $PosW = ^ ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded. Style: 0x50022080 ExStyle: 0x00000004 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< OK Line 0 (File "K:\Local\Prog\AutoIt3\SciTe\Snippet\CSnippet.exe"): $PosW = $StoredDTA[3][1] $PosW = ^ ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded. >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< The INI file content is below: [~xx123Data] Dock=0 View=0 Gene Bugs/comments/suggestions are welcome command line option for snipping code from scite example au3.properties (changed for v 1.0.1.10 and higher) #Modify Context Menu to add Right Click, Add as Snippet user.context.menu=||Add as Snippet|1117| Snipped Thinking of integrating the 2 together and give the user a choice of treeview/listview via option. v 1.0.1.0 Added option of docking the edit window on left or right of main window, just select File, then Dock Edit Window, then either Dock Left or Dock Right, the window will slide out from that direction. Updated: Added Resize Event Gary [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right... Link to comment Share on other sites More sharing options...
GaryFrost Posted January 30, 2006 Author Share Posted January 30, 2006 Hi, I downloaded a fresh copy, compiled it, copied the EXE to "K:\_Documents\_Dev\OtherCode\Code Snippet", started it via Scite's left-click on Tools menu... Went to Config selected Dock Right then selected Treeview. Immediately I got the following error: >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: AutoIt Error Class: #32770 Size: X: 200 Y: 280 W: 633 H: 201 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 602 Y: 378 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD4D0C8 Dec: 13947080 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 68 Y: 14 W: 553 H: 98 Control ID: 65535 ClassNameNN: Static2 Text: Line 0 (File "K:\Local\Prog\AutoIt3\SciTe\Snippet\CSnippet.exe"): $PosW = $StoredDTA[3][1] $PosW = ^ ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded. Style: 0x50022080 ExStyle: 0x00000004 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< OK Line 0 (File "K:\Local\Prog\AutoIt3\SciTe\Snippet\CSnippet.exe"): $PosW = $StoredDTA[3][1] $PosW = ^ ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded. >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< The INI file content is below: [~xx123Data] Dock=0 View=0 Gene v 1.01.13 Changed the read from Ini file from IniReadSection to Individual IniReads with default values due to if ini exists but values don't, then don't want a crash Vertical Slider on right side of gui (Transparency) from 0 to 75 % SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Gene Posted January 30, 2006 Share Posted January 30, 2006 Thanks for the quick response. How is the docking supposed to work? I can move Csnippet any where and it comes back up in approximately the same place (+-50 pixels). It doesn't seem to "dock" anywhere. I would be happy if it docked at the edge of the screen with a constant height and Y position.Gene v 1.01.13Changed the read from Ini file from IniReadSection to Individual IniReads with default valuesdue to if ini exists but values don't, then don't want a crashVertical Slider on right side of gui (Transparency) from 0 to 75 % [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right... Link to comment Share on other sites More sharing options...
GaryFrost Posted January 30, 2006 Author Share Posted January 30, 2006 Thanks for the quick response. How is the docking supposed to work? I can move Csnippet any where and it comes back up in approximately the same place (+-50 pixels). It doesn't seem to "dock" anywhere. I would be happy if it docked at the edge of the screen with a constant height and Y position.Gene The Docking is for the Preview/Edit/New script window, docks to the main gui SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 30, 2006 Author Share Posted January 30, 2006 (edited) v 1.0.1.14Fixed some resizing IssuesAs of Beta 3.1.1.106 appears that the unexpected program exits are gone.Still an Issue with the Slider not repainting on the ListView Screen. Edited January 30, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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