Indigo Rose Software
  #1  
Old 08-21-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Need AMS60CodeViewer.exe! :-D

I really like the AMS50CodeViewer.exe app.

When the dust clears from AMS 6... maybe we will get to see:

AMS60CodeViewer.exe

?

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #2  
Old 08-21-2005
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
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...
Reply With Quote
  #3  
Old 08-21-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059


Well...
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #4  
Old 08-21-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #5  
Old 08-21-2005
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
Quote:
Originally Posted by TJ_Tigger
Isn't that what Desmond did here. It allows you to open ams5 and vp2 project files and parses them.

Tigg
No, it isn’t. I asked him in the referenced thread.

Intrigued said "Well"; what about you, Tigg?
Reply With Quote
  #6  
Old 08-21-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
Quote:
Originally Posted by csd214
No, it isn’t. I asked him in the referenced thread.

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.

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
Reply With Quote
  #7  
Old 08-21-2005
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
Quote:
Originally Posted by TJ-Tigger
… to see the code and be able to save to a text file …
YES; “only” that!

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).
Reply With Quote
  #8  
Old 08-21-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
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
www.amsuser.com
Reply With Quote
  #9  
Old 08-22-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #10  
Old 08-22-2005
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
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).
Attached Images
File Type: jpg AMS6CodeViewer.jpg (226.6 KB, 103 views)
Reply With Quote
  #11  
Old 08-22-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
From the screen shot that looks pretty good-to-go.

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #12  
Old 08-22-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #13  
Old 08-22-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #14  
Old 08-22-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
  #15  
Old 08-22-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software