PDA

View Full Version : Sample: IR Project CodeViewer


TJ_Tigger
09-24-2005, 09:32 AM
Here is a sample project that I put together during the Beta of AMS6. This project allows you to view the contents of a IndigoRose Project file. The contents are viewed in an input object where those code can be modified copy and pasted or exported to a text file or BBS code for pasting on these forums.

This project demonstrates some new features of AMS including

Reading and parsing an XML file
Using the Menu Bar
misc actions of AMS6


I have attached a project file for those who own AMS6 and an Exe of the program for those who do not own AMS6 but want to use the program for other IR products.

A couple limitations are the Input object will only allow editing of text if there is less than 300000 characters. The Show Empty Actions and Show Line Numbers always refresh from the source file selected. The project does not allow writing back into the project files.

IR CodeViewer.exe (http://s94928149.onlinehome.us/pub/IR Project CodeViewer.exe)

Tigg

TJ_Tigger
11-02-2005, 07:47 AM
Here is an update version of the project. I have added a few little things here and there, mostly global variables like _CommandLineArgs and g_OnUpdateMenuEnabled. You can now use the program with a right-click OpenWith action and have it open the file you selected.

TJ_Tigger
11-22-2005, 11:42 AM
I have added support for .apz and .apt file formats.

yosik
11-22-2005, 04:49 PM
Thanks Tigg
:yes

Yossi

Soheyl
11-22-2005, 07:10 PM
Thanks Tigger... :yes

Corey
11-22-2005, 07:17 PM
Bippity boppity boo.

TJ_Tigger
01-20-2006, 01:43 PM
Here is an update to the project file. I have added the following:

- Ability to Ctrl+F to search and F3 to search next
- Ability to turn highlighted code into a scriplet.

I have rebuilt the exe in the first post as well for those who don't have AMS to build it themselves.

Thanks to Worm for one of his dlls to allow the input window to scroll to the line where text was highlighted.

Tigg

Gabis
01-20-2006, 02:02 PM
Wow tigg, this is awesome. So incredibly helpful when looking at projects posted on the forums. luvin the splash screen too!

TJ_Tigger
01-20-2006, 02:05 PM
Thanks. I find myself using it a lot when I download something from the forums in .apz format I then open it in the IRPCV to have a quick look at the code.

Glad you like it. The splash was added by request when AMS6 was in Beta.

Tigg

Roboblue
01-20-2006, 02:12 PM
Yeah, this is great as usual.
However, what do I use to browse at THIS .apz? :lol

TJ_Tigger
01-20-2006, 02:18 PM
Yeah, this is great as usual.
However, what do I use to browse at THIS .apz? :lol

Use your old copy of IRPCV to see it. :)

Or open in AMS and view the old way.

TJ_Tigger
01-20-2006, 04:28 PM
Ok so I had a couple of bugs that are now fixed. I didn't do alot of testing before I threw the thing on the forums, I will make sure I test more before I publish.

- FIXED: If you cancelled in the CTRL+F action it would search for the word "CANCEL" rather than cancelling.
- FIXED: If you ran as a built exe the application was not prepared to catch the SFXSOURCE item that is passed to the exe upon runtime. It will now catch and ignore that option as appropriate.

I reupped the exe in the first post and here is the project file.

Tigg

Intrigued
01-20-2006, 05:58 PM
I have not used this lately but this really does come in handy at times and updating it for free... thanks!

:yes

TJ_Tigger
06-15-2006, 02:33 PM
I have updated the application. Below is the .apz project and I uploaded the built exe in the link above too.

What Changed?
- Added Project Info details.

Tigg

rhosk
06-15-2006, 03:01 PM
That's an awesome application Tigg :yes :yes

Intrigued
06-15-2006, 04:32 PM
Thanks for updating such.

Tek
06-15-2006, 10:42 PM
Thanks for this! I downloaded a version of this from the forum a while back and it seemed to work fine for me, but now when I run this latest one, the splash screen is shown, the main window is shown then the window freezes. I have to close it down hard.

Anyone else notice this? I was looking in the code for clues but couldn't see anything obvious. :huh

rhosk
06-16-2006, 04:49 AM
No symptoms of that on my end.

TJ_Tigger
06-16-2006, 08:54 AM
Thanks for this! I downloaded a version of this from the forum a while back and it seemed to work fine for me, but now when I run this latest one, the splash screen is shown, the main window is shown then the window freezes. I have to close it down hard.

Anyone else notice this? I was looking in the code for clues but couldn't see anything obvious. :huh

Is this the prebuilt exe or did you build it on your own? I have not had any issues with it on my end. The only time I have had it freeze is when I am running in debug mode and it is parsing a large xml file.

Tigg

Tek
06-16-2006, 10:20 AM
This happens whether I preview TJ's project, or build it and run the executable. I'm thinking that maybe it's trying to open my last saved project, which would be my menu application, and it's taking a while to open it. My menu project file is 905kB in size.

Maybe I'll add some code to debug it and see what it's doing. I'll get back to ya. :)

Tek
06-16-2006, 11:35 AM
Yep to me it looks like my project is too big and it holds off the program. :eek:

TJ_Tigger
06-16-2006, 12:56 PM
I have had projects with so many lines that I could not edit text in the input object, there is a limit of 30,000 lines I think for an input object. You may want to play with breaking up the text into multiple screens and see if it works that way.

Here is what I was thinking, at the bottom of the code for the Browse button add the DelimitedStringtoTable function and break the string into a table using "\r\n" as the delimiter, count the lines, if it is over a certain amount (25,000) then break it into equal bits of 25,000 and add a control to switch from one page of code to the next.

Tek
06-16-2006, 01:29 PM
Ok that's a good idea. I have another project that I worked on that filters error logs from one of our software products. It sometimes results in the same thing... the application freezes. If you wait long enough, it will load.

I think the menu project I tried your application with is probably no more than 9000 lines of code for the entire project, but I can see that when I open much smaller projects it loads without any problems.

I'll see what I can figure out. Thanks for the info. :yes

Dez
06-18-2006, 06:27 PM
This is really squared away, excellent job Tigg. Details are a nice touch.

Thanks much for posting this.

Dez

TJ_Tigger
06-21-2006, 12:30 PM
I have updated the exe from the first post and added a new feature. I won't spoil the surprise, but look in the Edit menu. :D

Let me know if there are any issues with it.

Tigg

Intrigued
06-21-2006, 12:35 PM
TJ_TIGGER, nice and thanks!

Your game is now "in the zone"!

:yes and :yes

TJ_Tigger
06-22-2006, 10:57 AM
Found a small issue with the Tree view when disabling.

TJ_Tigger
06-22-2006, 03:48 PM
Found a copy and paste bug so here is a new version. Don't know if anyone noticed but one feature I added is the ability to create BBS/HTML/Scriptlet code from what ever is in the clipboard. The main reason I did the was to be able to copy text from the forums and then rightclick on the icon in the systray and tell it to generate a scriptlet. Enjoy :D

Roboblue
06-22-2006, 03:58 PM
wow TJ
thanx for your efforts

TJ_Tigger
07-10-2006, 06:03 PM
Found another small error where there was an issue in building the tree object and there were no global actions assigned. Here is the newest project.

PS I also added in the Tree view to other project files.

Intrigued
07-10-2006, 07:03 PM
Thanks TJ. This is one of the most used project files made from AMS that I did not make (or that others have made), that I use!

:yes

TJ_Tigger
07-10-2006, 08:51 PM
Thanks TJ. This is one of the most used project files made from AMS that I did not make (or that others have made), that I use!

:yes

Thanks, I use it a lot as well. I keep finding that I leave it running my my taskbar so the features are available to me. I am adding a big new piece to it. Will be a bit as time is sparse right now, but when it is done it should be nice and handy.

Tigg

Intrigued
07-11-2006, 02:09 AM
Alright then! I'll keep an eye out for the upgrade.

Thanks again TJ.

TJ_Tigger
07-13-2006, 08:46 AM
Not the addition I was speaking of, but here is a new version. Code is getting more and more garbled with bug fixes and new additions.

- fixed bug with tree nodes not show correctly
- added splitterframework code . . . well not all the code but I took a lot of the code for use in this project. Tks Worm.

Tigg

Anyone have a project file from Autorun Max that I can use to put into this project reader too? Let me know.

TJ_Tigger
07-13-2006, 11:39 AM
Anyone have a project file from Autorun Max that I can use to put into this project reader too? Let me know.

Same request for Scrapbook MAX. Don't have that one either but might be a good addition.

tigg

Eagle
07-14-2006, 08:30 PM
thanks for your continued time and skills on this project Tigg :yes

usernameCasper
11-27-2006, 10:02 AM
This is awesome TJ !
Great work, nice idea ! :)

Kind Regards,
Casper

coderanger
02-09-2007, 10:30 PM
Yes Tigg, this is a very cool program you have created here, and I
can see it being very handy for me in the future...

Is there anywhere I can send you a donation to help you a small bit?

Thanks man, I appreciate the effort!
Patrick

qwerty
06-13-2007, 06:28 AM
i was going to ask how to view the code as i am not familiar with how to do that when it's compiled into an exe, however ...

i didnt see the attachment 5 posts above !