Jump to content

Code Snippet


GaryFrost
 Share

Recommended Posts

  • Developers

Due to the amount of space allowed for attachments (and I have alot of attachments), I decided not to keep it here also

v 1.0.3.6 - 3/4/06

View/Edit Source screen now scrollable when not in edit mode

Code Snippet will be in the tools with the next release of SciTE from JdeB

Here is the latest version of CodeSnippet which will be available in the next SciTE4AutoIt3.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Replies 145
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Gary

remind me of the installation instructions for Csnippet.

Steve

Extract the zip files to the folder of your choice, compile it, make sure the info from post 1 points to that folder

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

  • 4 weeks later...

Some files are probably missing on the computer I'm on.

I get a msgbox with the following error when I try to add a snippet.

Line 0 (File "C:?Program Files\AutoIt3\SciTE\csnippet\cSnippet.exe")

$objPI = $objDoc.createPRocessingInstruction("xml", "version=""1.0""")
$objPI = $objDoc^ ERROR

Error: Variable must be of type "Object"

CSnipet reports version=1.0.3.8 for SciTE

Im running w2k - build 2195. Not updated because I nead to keep my dependencies down to a minimum.

Link to comment
Share on other sites

Added ClipBoard Monitoring thanks to Larry/Zedna

Edit: Added Alt + Shift + t to close the tooltip

http://www.autoitscript.com/fileman/users/gafrost/cSnippet_1041.ZIP

I tried your Code Snippet on WIN98 and it crashes when starting.

Return $ai_Return[0] --> not array subscript

I found error in ReduceMemory():

Func _ReduceMemory($dll = "psapi.dll")

Local $ai_Return = DllCall($dll, 'int', 'EmptyWorkingSet', 'long', -1)

If @error Then Return 1

Return $ai_Return[0]

EndFunc ;==>_ReduceMemory

There must be handled situation when psapi.dll is not on that machine

for example as I did - red line

Link to comment
Share on other sites

I tried your Code Snippet on WIN98 and it crashes when starting.

Return $ai_Return[0] --> not array subscript

I found error in ReduceMemory():

Func _ReduceMemory($dll = "psapi.dll")

Local $ai_Return = DllCall($dll, 'int', 'EmptyWorkingSet', 'long', -1)

If @error Then Return 1

Return $ai_Return[0]

EndFunc ;==>_ReduceMemory

There must be handled situation when psapi.dll is not on that machine

for example as I did - red line

Thanks, missed that one 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.

 

Link to comment
Share on other sites

  • 4 weeks later...

Added Alt+Shift+r "run"

Added Alt+Shift+b "beta run"

These are only valid hot keys when the tooltip is visible

Alt+Shift+c

Alt+Shift+t

Alt+Shift+r

Alt+Shift+b

Enjoy!!!

Gary

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.

 

Link to comment
Share on other sites

  • 3 weeks later...

Fixed Duplicate File Name bug....

Thanks for the prompt bugfix response!

I would have preferred, that you used my other suggestion, but that is certainly an improvement!

Any chance you might implement what I said, later?

(sub-folders in the Snips folder, so duplicate names are feasible - so long as a different category)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

  • 1 month later...

v 1.0.4.5- (beta 3.1.1.128 or higher required)

Snippets will be in folders by Category

If have save snippets from previous version, and ini file exists with them listed, it will move the scripts to the appropriate folders by Category

Treeview added back in

Other minor fixes and code consolidation :D

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

Enjoy!!!!

Gary

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.

 

Link to comment
Share on other sites

v 1.0.4.6- (beta 3.1.1.128 or higher required)

Fixed bugs in the treeview side with the delete/save snippet

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.

 

Link to comment
Share on other sites

Very nice! I like being messy though, so I'll just stick with my hundreds of disorganized folders.

If you believe it, I have au3 files in my system directory that do nothing. Nice script though!

Edited by AutoItKing
http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]
Link to comment
Share on other sites

  • Moderators

Very nice! I like being messy though, so I'll just stick with my hundreds of disorganized folders.

If you believe it, I have au3 files in my system directory that do nothing. Nice script though!

Um... That's a rather stupid thing to post IMO... "Thanks for a solution to my dis-organization, but just so you know, it isn't good enough to get me off my lazy ass and try and organize myself" is what it sounds like.

P.S. - (Open SciTe... Take a look in the Tools menu or Ctrl+Alt+s, and you'll see that you've had a solution (this solution) in their for quite some time now.)

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

v 1.0.4.7- (beta 3.1.1.128 or higher required)

Fixed bugs in the treeview side with guicreate not having min/max buttons

Fixed about box being abble to be created more than once.

Fixed docking of controls

Added min/max width of main gui limitations

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...