I really like the AMS50CodeViewer.exe app.
When the dust clears from AMS 6... maybe we will get to see:
AMS60CodeViewer.exe
?
![]()
Professional Software Development Tools
I really like the AMS50CodeViewer.exe app.
When the dust clears from AMS 6... maybe we will get to see:
AMS60CodeViewer.exe
?
![]()
Intrigued
Hi Intrigued;
I second that.
Do you remember what Brett whispered?
“It would actually be quite easy to make a cooler one using AMS50 and the XML plugin. The AMS50 project files are just XML and parsing them for their script would be quite easy... just a weekend project fro some of you AMS junkies...”
I should really like to have a Code Viewer for all the 4 IR products!
You are an experienced user, Intrigued. Just a weekend project...
Well...
Intrigued
Isn't that what Desmond did here. It allows you to open ams5 and vp2 project files and parses them.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
No, it isn’t. I asked him in the referenced thread.Originally Posted by TJ_Tigger
Intrigued said "Well"; what about you, Tigg?
What is it that you want it to do? The code Viewer is pretty straightforward. If all you want is to see the code and be able to save to a text file I can do that. Nice thing about AMS6 is the XML stuff is built right in. I will see if I can whip something up tonight.Originally Posted by csd214
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
YES; “only” that!Originally Posted by TJ-Tigger
In the previous post yosik proposed “Would it be possible (Brett) to add a feature which allows to choose the text editor? Notepad has NO color coding or ident etc.....”
(Edit2Plus with the Lua_IR template uses the ”correct” syntax color.)
And kcs ” I'm not seeing the 'On startup' and 'On shutdown' project level scripts ...”
Additionally some housekeeping; “Delete all the scr*.txt and scr*.tmp files in the Temp dir.”
Thanks Tigg (if you have the time).![]()
We need Brett though to work on the CodeViewer as he needs to setup the AMS 6 filter too? Or am I missing something here?
Intrigued
Here is a quick project I threw together. It parses the file and throws the text into an input box. There are several things that do not work as of yet, like the menubar and the Save/Text Editor/Close buttons. I will try to do some more work on it when I find time this week.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
See attachment.![]()
![]()
This is a marvellous learning project; “How to be a friend of XML”. Nice to have access to the source code.
For sure; later on I’ll try to extend the app to recognize .sf7 (and .vp2, .tu2).
From the screen shot that looks pretty good-to-go.
![]()
Intrigued
Here is an update. It does a little more than before. All the buttons now work except for the show line numbers. It would be nice to have items be persistant when you close and reopen the project, but they are not as of yet. The menu bar now works except for the selection of a text editor. Still only works for .am6 files, if people want to send or post files from other IR applications I can see about adding code to open them as well.
There is a lot of potential in how one could build this application.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Oh, and I forgot to mention that the page will resize for you as well. The buttons and input objects will reposition/resize as you change the dimensions of the page.
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Ok, the project now supports line numbers in the view. The line number code is horrible so don't laugh too hard when you view it, but it works. Enjoy.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Made items persistant, like last selected directory, last viewed file and the text editor selection (Edit->Text Editor) works as well. The persistance of the app uses the Application.SaveValue and Application.LoadValue to store these values. There are lines in the On Shutdown event that empty the strings if you want to enable them.
I also tweaked the numbering function so it would not duplicate linebreaks like it was tending to do and I added some error checking as well.
Tigg
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine