Jump to content



Photo

Organize Includes in SciTE4Autoit3


  • Please log in to reply
53 replies to this topic

#21 MvGulik

MvGulik

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 2,795 posts

Posted 16 March 2010 - 03:45 PM

whatever

Edited by MvGulik, 07 February 2011 - 12:16 PM.

Don't Fall in Love With Ideas"If you fall in love with an idea, you won't see the merits of alternative approaches -- and will probably miss an opportunity or two. One of life's great pleasures is letting go of a previously cherished idea. Then you're free to look for new ones. What part of your idea are you in love with? What would happen if you kissed it goodbye?"





#22 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,728 posts

Posted 19 March 2010 - 01:20 PM

Bummer. I seems to have lost Xenobiologist interest on the subject. No point. Dropping subject.

Certainly not! I' working on a new version which has got some bugfixes and new featues.
To answer your question. The problem you discuss is not really a problem, because the source held in that variable is really only for getting the needed info from it. And do get all the needed info.
Besides, the line break stuff dosen't come from the Regex pattern - it belongs to StringStripWS.

Func _stripSourceCode(ByRef $source)     Local $noComment_source = $source     _stripComments($noComment_source)     $noComment_source = StringStripWS($noComment_source, 7) ; doppelte Leerzeichen/Umbrüche entfernen     Return $noComment_source EndFunc ;==>_stripSourceCode


This line $noComment_source = StringStripWS($noComment_source, 7) ; doppelte Leerzeichen/Umbrüche entfernen
leads to the linebreak stuff you mentioned. But as I said before, it is no problem for me, because my following functions in the source code can work with that.

Thanks for your effort!
Mega
Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication)_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

#23 MvGulik

MvGulik

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 2,795 posts

Posted 19 March 2010 - 03:09 PM

whatever

Edited by MvGulik, 07 February 2011 - 12:16 PM.

Don't Fall in Love With Ideas"If you fall in love with an idea, you won't see the merits of alternative approaches -- and will probably miss an opportunity or two. One of life's great pleasures is letting go of a previously cherished idea. Then you're free to look for new ones. What part of your idea are you in love with? What would happen if you kissed it goodbye?"

#24 PartyPooper

PartyPooper

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 25 March 2010 - 11:38 PM

Just something to think about but you may like to include a readme.txt with the zip indicating how to install OI. I recently upgraded to Win 7 and had to log back into the forums to remember how to install it. Nothing major but a PITA when you are trying to reinstall all your programs quickly :-)

#25 dantay9

dantay9

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 834 posts

Posted 08 May 2010 - 07:34 PM

A simple little improvement would be to insert the includes after the directives. Autoit directives are always supposed to be at the top. Great tool. I use this countless times every day.
"Failure is not an option -- it comes packaged with Windows" Gecko Web Browser, Yahtzee!, Toolbar Launcher (like RocketDock)Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI Triangle Solver, TCP File Transfer, Valuater's Autoit WrappersOOP In AutoItUsing Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com

#26 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,728 posts

Posted 09 May 2010 - 08:55 PM

A simple little improvement would be to insert the includes after the directives. Autoit directives are always supposed to be at the top. Great tool. I use this countless times every day.


Hi,

this is already implemented you can set a "keyword" after which OI should insert the includes.
Bytheway, I'm going on a little vacation this week and after that I'll upload a new version with some bugfixes and new features.
Thank for your comment.

Mega
Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication)_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

#27 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,076 posts

Posted 11 July 2010 - 07:49 PM

Hi, I'm suddenly having some trouble using Organize Incudes. OI worked fine for me until just recently.

Now I get this error message: Line 0 (File "C:\Program Files (x86)\AutoIt3\Scite\OrganizeIncludes\OI_1.0.0.50.au3"): Error: Error opening the file."

Previously I got an error message about not having a certain .ini but I didn't write that message down.

Does anyone have any idea what might be the problem? I'm running Windows 7 64bit with the latest version of autoit. I extracted the zip into the Scite directory and then I copied those lines into scite user properties. The only thing that I am doing different is that I recently reinstalled windows which seems to correspond with the problem. Maybe I should just reinstall again?

#28 saavaage

saavaage

    Seeker

  • New Members
  • 1 posts

Posted 11 December 2010 - 12:47 AM

Xenobiologist, thanks a lot for this brilliant job!
Let me make one proposition:
could you add such function as creating a list of functions-exceptions?
The matter is: when I use your tool, some functions, which not placed in "C:\Program Files\AutoIt3\Include",always removed from my scripts. It would be very nice,imho, if user could create a directory with such kind of functions and your program ignore all of them, placed in this directory.

Excuse my bad English, comrade...

#29 guwguw

guwguw

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 16 December 2010 - 03:02 PM

Hi, I'm suddenly having some trouble using Organize Incudes. OI worked fine for me until just recently.

Now I get this error message: Line 0 (File "C:\Program Files (x86)\AutoIt3\Scite\OrganizeIncludes\OI_1.0.0.50.au3"): Error: Error opening the file."

Does anyone have any idea what might be the problem? I'm running Windows 7 64bit with the latest version of autoit. I extracted the zip into the Scite directory ...


The original instruction line reads

1) Extract the zip here (ProgramsDIR) ..\AutoIt3\SciTE\

, which is wrong.
It should read
1) Extract the zip here (ProgramsDIR) ..\AutoIt3\SciTE\OrganizeIncludes\

After that, there'll be no more Line 0 (File "C:\Program Files (x86)\AutoIt3\Scite\OrganizeIncludes\OI_1.0.0.50.au3"): Error: Error opening the file."

#30 jaberwocky6669

jaberwocky6669

    Dull light.

  • Active Members
  • PipPipPipPipPipPip
  • 2,076 posts

Posted 17 December 2010 - 03:39 AM

The original instruction line reads
, which is wrong.
It should read
1) Extract the zip here (ProgramsDIR) ..\AutoIt3\SciTE\OrganizeIncludes\

After that, there'll be no more Line 0 (File "C:\Program Files (x86)\AutoIt3\Scite\OrganizeIncludes\OI_1.0.0.50.au3"): Error: Error opening the file."

Hi! Thanks guwguw, I eventually realized that the PDF has some outdated info but the forum post is up to date. If I remember correctly anyways. Well, I appreciate that you've taken the time to reply to my plea for help. :x

#31 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,728 posts

Posted 17 December 2010 - 09:09 AM

Thanks for taking a look at this piece of scripts.
I'll have a look, whether I can finifsh a new version with some bugfixes and addons this year.

Mega
Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication)_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

#32 Mikeman27294

Mikeman27294

    Insert Member Title Here

  • Active Members
  • PipPipPipPipPipPip
  • 469 posts

Posted 04 July 2011 - 03:07 PM

A few things that I have found with my copy;
You can set it so that you do not get a file open dialog by moving the second line in the user options to sit next to the first line like so:
command.36.*.au3="$(autoit3dir)autoit3.exe" "$(autoit3dir)SciTEOrganizeIncludesOI_1.0.0.50.au3" "$(FilePath)"


Also, you can set the script so that it does not read the includes (on line 846) like so:
Local $regValue = "C:Program Files (x86)AutoIt3Include"

or preferably,
Local $regValue = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "", 0, -1))&"Includes"


You can set it so that the settings tab opens up the settings.ini file on click instead of using the file open dialog, by changing the code to the following, on line 1096 to the following:
Local $file = @ScriptDir & "Settings.ini"


Next, the more annoying part.
When I open a file, it detects perfectly. But when I select "Organise Includes", it does not remove the includes that I have already got. So I just end up with a whole bunch on unnessecary includes.

But as a whole, I have got to say that this is an excelent utility.

Thanks for making such a great tool for the community.

EDIT
Tried to change the script a little to delete the includes already in there... Too tired... will do it tomorrow... working around about line 1180 or something like that... Goodnight world hahaha.

EDIT
Nope... to busy sorry, not going to bother for now. maybe some time in the future I will take a look at it.

Edited by Mikeman27294, 21 January 2012 - 08:49 AM.

Spoiler


#33 Syed23

Syed23

    Mass Spammer! - It's Me

  • Active Members
  • PipPipPipPipPipPip
  • 519 posts

Posted 21 December 2011 - 12:41 PM

Hi Xenobiologist,
As you mentioned in your first comment i followed all the steps and i pressed CTRL+SHIFT+ALT+I but i am getting an error message stating "c:program filesAutoIt3SciTEOrganizeIncludesincludes_Release.ini not found " seems there is some ini file missing in that zip file.. could you please add it ?

Edited by Syed23, 21 December 2011 - 12:42 PM.

Thank you,Regards,K.Syed Ibrahim.

#34 Country73

Country73

    Adventurer

  • Active Members
  • PipPip
  • 140 posts

Posted 05 January 2012 - 07:06 PM

Xenobiologist - nice work on this! Just wish I would have seen it sooner...

I just downloaded and started using this last week and found it very useful.
But now I have run into a little snag...

I just recently updated my SciTE to Version 2.28
If I launch the OU-1.0.0.50.au3, then the Organize Includes GUI appears like it should.
If I'm in a script where I actually want to check my Include files, using CTRL+ALT+SHIFT+I, it gives me this message:
The filename, directory name, or volume label syntax is incorrect. >Exit code: 1

I tried to backtrack and remove the information from SciTE's User Options file, close SciTE, rename the OrganizeIncludes folder and then go through a "fresh" install/setup.
Still getting the same results.

I wouldn't doubt that I'm simply missing something, but have you seen this before?

EDIT: For the time being I just installed an older version of SciTE so that I can still use your Organizer.
Only other one I had/could locate is version 1.79, it's working!

Edited by Country73, 05 January 2012 - 07:45 PM.

If you try to fail and succeed which have you done?AutoIt Forum Search

#35 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,728 posts

Posted 06 January 2012 - 11:15 AM

Oh, I haven't looked into this thread for quite a long time.
Maybe the script needs to be updated again.

As for you error, I guess the new has some problems with the internal variable $(autoit3dir)

Try the following please, Scite --> Options --> Open User Options File
Then you see your shortcut added for Organize Includes and maybe some more.
Try to replace the variables like $(autoit3dir) and $(SciteDefaultHome) with your full qualified pathes like
c:Programs... and then restart Scite and give it a try.
Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication)_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

#36 Country73

Country73

    Adventurer

  • Active Members
  • PipPip
  • 140 posts

Posted 06 January 2012 - 02:03 PM

I'll see if I can take a look at that today.
I know I looked through the User Options File, but I may not have looked at it close enough...


EDIT:
Wow, that's all that it took...
I replaced both of those variables with the exact path's and it's working like a charm.

Now I can update SciTE on my main workstation and continue to use your - Awesome - "Organize Includes"!

Edited by Country73, 06 January 2012 - 02:10 PM.

If you try to fail and succeed which have you done?AutoIt Forum Search

#37 DelStone

DelStone

    Wayfarer

  • Active Members
  • Pip
  • 69 posts

Posted 24 February 2012 - 06:10 AM

I get the following errors when I try running it :

>>"D:Program FilesAutoIt3SciTEautoit3.exe" "D:Program FilesAutoIt3SciTEOrganizeIncludesOI_1.0.0.50.au3" "C:UsersADMINDesktopF B AFBA.au3"
'D:Program' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 1 Time: 0.468

"D:autoit3.exe" "D:OI_1.0.0.50.au3" "C:UsersADMINDesktopFBA.au3"
The filename, directory name, or volume label syntax is incorrect.
>Exit code: 1 Time: 0.455


I've tried hard coding the paths as you've suggested, but whatever I try, same error.

It appears fine in the Tools menu - but can't get any further - any ideas?

#38 Xenobiologist

Xenobiologist

    Xx Code~Mega xX

  • MVPs
  • 4,728 posts

Posted 24 February 2012 - 08:41 AM

What SciTE version are you using?
Can you post your SciteUser.properties please.
Scripts & functions Organize Includes Let Scite organize the include files *newYahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication)_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

#39 DelStone

DelStone

    Wayfarer

  • Active Members
  • Pip
  • 69 posts

Posted 24 February 2012 - 05:44 PM

The SciTE Version is 2.28

and how do I get the sciteuser.properties?

#40 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,343 posts

Posted 24 February 2012 - 06:14 PM

delstone,

SciTE menu: <Options - Open User Options File>. :)

M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users