Chimaera Posted October 2, 2015 Share Posted October 2, 2015 I started a project few yrs ago now and the array has grown into a monster as i keep adding to it over 1100 items currentlyInitially i had added a few comments then i alphabetized it to make it easier to find stuff then i did this;~ Spotify|Shared C Run-time for x64|SugarSync Manager $sRegKey &= '|Spotify|{EF79C448-6946-4D71-8134-03407888C054}|SugarSync'Which was fine for a while but then as the array got so large i stopped notating them and just had the array segments like so-443A-B65D-333F5ED6CCD0}|{DA20E1A8-07CB-4EE7-9B72-A7E28C953F0E}|AVG Secure Search' ; ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ ; B B B B B B B B B $sRegKey &= '|Babylon|{83AA2913-C123-4146-85BD-AD8F9397But ive realised now it would be nice to have the Comment for each file so i know what they are.I could do this but the script would be a mile long$sRegKey &= '|{A77A198F-B60B-481C-A645-64EE80849A12}' & _ ; Comment here '|{27F9068F-27D3-42FF-BE10-94CC94F46F33}' ; Comment hereIs there another way to have comments inline with the array like this mockup$sRegKey &= '|{A77A198F-B60B-481C-A645-64EE80849A12}' & _ ; Comment here '|{A77A198F-B60B-481C-A645-64EE80849A12}' & _ ; Comment here '|{27F9068F-27D3-42FF-BE10-94CC94F46F33}' ; Comment here '|{27F9068F-27D3-42FF-BE10-94CC94F46F33}' ; Comment hereIm assuming not lol, or any other way i can notate without making the array ridiculously long?Ps i only need it in the Scite window it wont show anywhere elseAny thoughts welcome If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
computergroove Posted October 5, 2015 Share Posted October 5, 2015 If it's just one element per line in the array you could just read and write to a text / ini file. You could just add another column to your array and not call it that could be the comment. You could have a second uncalled array with the comments. Lot's of choices. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
Chimaera Posted October 5, 2015 Author Share Posted October 5, 2015 Im trying to keep them together explanation at the side of the itembut bear in mind its a visual thing in Scite for me to track them down, its not for the array, i suppose you could say its about the layout more than anything If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
l3ill Posted October 5, 2015 Share Posted October 5, 2015 (edited) Have you given Regions any thought?If you separate your arrays into some sort of "paragraph" form for lack of a better explanation or maybe some have commonalities and can be grouped...and then just wrap them in regions with titles and only open them when you need to see the actual code.example:#Region ; part 0001 $sRegKey &= '|{A77A198F-B60B-481C-A645-64EE80849A12}' ;===comments '|{27F9068F-27D3-42FF-BE10-94CC94F46F33}' ;===comments #EndRegion #Region ; part 0002 $sRegKey &= '|{A77A198F-B60B-481C-A645-64EE80849A12}' ;===comments '|{27F9068F-27D3-42FF-BE10-94CC94F46F33}' ;===comments #EndRegion#Region ; part 0001 #EndRegion #Region ; part 0002 #EndRegion Edited October 5, 2015 by l3ill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example 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