Jump to content
Sign in to follow this  
GaryFrost

Code Snippet

Recommended Posts

v 1.0.4.7- (beta 3.1.1.128 or higher required)

See 1st post for attachment, directions, version history, and screen shots

Gary

http://www.autoitscript.com/fileman/users/gafrost/cSnippet_1047.ZIP is a 404.

eltorro

Share this post


Link to post
Share on other sites

looks like a sweet prog, Ill load it up when i get back to my dorm


Share this post


Link to post
Share on other sites

Gary,

I am finally converting all the snippets from my old snippet ini into yours but I noticed something. The "backup data file" only backs up the ini file, it does not backup the xml files.

Also, In the View/edit snippet window; Shouldn't the Snippet Name and Snippet Category be disabled until the Edit Souce checkbox is checked.

Mike


hmm... I guess I have to have a signature...

Share this post


Link to post
Share on other sites

Gary,

I am finally converting all the snippets from my old snippet ini into yours but I noticed something. The "backup data file" only backs up the ini file, it does not backup the xml files.

Yeah the backup was for when the snippets were being stored in the ini

Probably don't need that now that they are stored in xml files

Also, In the View/edit snippet window; Shouldn't the Snippet Name and Snippet Category be disabled until the Edit Souce checkbox is checked.

Mike

No, you can change the snippet name or change what category the snippet is in at that point.

Edit: I'm thinking a search needs to be added as an option to find snippets.

Edited 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.

 

Share this post


Link to post
Share on other sites

v 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 Search

Note: Need help in unselecting a treeview item (selecting isn't a problem)

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

v 1.0.4.9- (beta 3.1.1.128 or higher required)

Fixed Fuzzy Search selection on treeview

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

v 1.0.4.9- (beta 3.1.1.128 or higher required)

Fixed Fuzzy Search selection on treeview

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots

Gary

any chance this could me made as a stand alone app?

I dont use scite and would prefer this launch from any location, with or without scite

thanks

Share this post


Link to post
Share on other sites

any chance this could me made as a stand alone app?

I dont use scite and would prefer this launch from any location, with or without scite

thanks

@blitzkrg - No plans at this time to make it a stand-a-lone.

v 1.0.5.0- (beta 3.1.1.128 or higher required)

enhanced search for both listview and treeview

Search starts from item selected (if any selected) and wraps back around

For Listview if the category column is visible then the search includes that column

Fixed scroll when searching in listview (now calculates the scroll amount by the rect of the 1st row)

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

v 1.0.5.1- (beta 3.1.1.128 or higher required)

Fixed Rename Snippet bug on TreeView Side

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

v 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)

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

I miss a couple of features as here can be read:

What I miss from Scite

there is quick-to-build add-on for Code Snippet without changing much code:

a button where all xml are ftpput() to any ftp server: SaveInFtp("*",1)

another menu on the left button SaveInftp($actualSnippet,1)

same from RestoreFromFtp(* FOR ALL, or $actualSnippet)

another button for comparing from the index.xml inthe ftp and index.xlm in the local pc if there are some changes checking size+date

another button for cleaning pc from UDFs, and autoit and scite itselft, like it was never there.(anyway now it is kept in FTP SERVER)

============= pseudo-functions

Func SaveINftp($snippets,$overwrite)

if $snippets="*" then

recursiveftpput

else

ftpput($server, $category&"/"&file,$password,moreoptions.)

endif

endfunc

========

Func $Restorefromftp($snippets,$overwrite)

if $snippets="*" then

recursiveftpget

else

ftpget($server, $category&"/"&file,$password,moreoptions.)

endif

endfunc

=========

So when you start working you restore all from ftp

when you finish work with autoit you saveall in ftp, your uptodate work is in the server and in the last place where you worked

* Write in an ini file to keep the passwords and options

* another option if you want selfcheck every minute if there are any changes in the index.xml(local and remote) and SYNC

*another xml file in the ftp server, to keep an index from all snippets and dates/size to be changed to detect when a new snippet is made

*another option to make a real ftpbackup(apart of sync), keep a date_actual_ snippets root (ftpbackups), so make RESTORE points, after some days of intense code-writing.

*of course keep not only snippets but also a complete backup of *.au3(*.xml), also *.ini (compiling), *.jpg,*.ico, most used files for making the exes.

===============================================================

I dont know if there is a similar version of AUTOIT, like the binary one, where you download directly in one zip AUTOIT+SCITE, and after unziping (not installing) you can run an exe which makes changes in the registry (register extensions, and more)

so that you can start coding directly, now you have to install and install, and next next next next ....... :whistle:

=**************************************

Edited by BasicOs

Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

v 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)

Please inform me of any bugs, I find many because I do use this script very much.

See 1st post for attachment, directions, version history, and screen shots

@Qafrost, I could not believe no one rated this thread. I felt I had to do it because the code snippet script is just so cool! Thanks..

Cheers.. :whistle:

Share this post


Link to post
Share on other sites

Here a noob question...

Code snippet seems to fit what I want ...

But can it run without Scite ?

:-)

Currently, No

Not sure I will make a version with-out SciTE dependability.

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

@Qafrost, I could not believe no one rated this thread. I felt I had to do it because the code snippet script is just so cool! Thanks..

Cheers.. :whistle:

Thanks, Hope you enjoy the script.

As you could tell I don't rate my own threads like I've seen some do.

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Well, i tried to use it and it gives me a variety of errors when i try to launch it. i got rid of a couple of them by moving my items into the A3 folder... but now its saying; "

---------------------------

AutoIt Error

---------------------------

Line 0 (File "C:\Program Files\AutoIt3\CSnippet.exe"):

Run($Dir2 & "\SciTe.exe", $Dir2)

Error: Unable to execute the external program.

The system cannot find the file specified.

---------------------------

OK

---------------------------

"

Share this post


Link to post
Share on other sites

Well, i tried to use it and it gives me a variety of errors when i try to launch it. i got rid of a couple of them by moving my items into the A3 folder... but now its saying; "

---------------------------

AutoIt Error

---------------------------

Line 0 (File "C:\Program Files\AutoIt3\CSnippet.exe"):

Run($Dir2 & "\SciTe.exe", $Dir2)

Error: Unable to execute the external program.

The system cannot find the file specified.

---------------------------

OK

---------------------------

"

Suggest unzipping it to the cSnippet folder with-in the SciTE folder


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...