Hi Steve and Chip,
Slow responding, took and dog walk and supper break.
Yes, I am very well versed in Python but not the com part. And before
responding earlier I saved a web page to my email for a look at the page you
are talking about. Actually, my old computer does not say the tab, but have
gotten use to it in VBS only for readability. Now having the tabs does force
the indents and countable, thus easier to use, once I get my 7.5 WE computer
back.
I never used tabs before, unless having a very long line which of course
you can split using the backslash instead of the underline VBS uses, that also
in not an issue. In fact when using the backslash the indent goes away, but
loose on readability if not used.
( Only for sighted people of course, and debugging.)
So tonight I am going to read more into the com and how it is set up. I
have discovered that you have to make a class for your com object, but not sure
of the guts. My entire Battleship program is run from one class and it has
voice also, as long as you have voices. I could post it, but it is not in VBS,
but could easily run from VBS; just like I did with the record feature of the
Cuckoo Clock, in fact, just the .exe is needed along with a data folder and you
are good to run it, if you want it and already downloaded my Cuckoo Clock
program. Also my Star Trek program/game.
I wrote those games to learn Python, my motivational tool. Along with the
Yahtzee game...
Bruce
Sent: Monday, September 05, 2011 6:35 PM
Subject: Re: new Music Menu app
Chip is correct. If you're ok with python's mandatory indentation syntax and
slight runtime overhead, it's a great language to quickly bang out code. In
most cases, the performance hit between it and something more speedy like C++
is negligible. ActiveState has some excellent examples of interacting with COM
from both a client and server perspective using modules from the
Win32Extensions package. I suggest starting there if you are new to COM--
though of course after you are comfortable with python.
Regards,
Steve
On 9/5/2011 6:05 PM, Chip Orange wrote:
Yes, I believe the audio kit is also done in Python, so you pythoners are
really on to something with it. I'm afraid I know nothing about it, so would
enjoy seeing more.
Chip
------------------------------------------------------------------------------
From: bb [mailto:[email protected]]
Sent: Monday, September 05, 2011 5:53 PM
To: [email protected]
Subject: Re: new Music Menu app
Hi Chip,
I had mentioned once about the Cuckoo Clock program and selling something.
The comment came after mentioning that, but if and when I was adding
something to the Cuckoo Clock program that I might have a demo time period on
and then have it shut down if not paid for. Had nothing to do with the actual
Cuckoo Clock program.
But, I have not had the time, nor a computer, to do it. In the end may
not even sell it.
It was a thought after spending a lot of time adding other features and
such which work nice, but just have not done it. I have given some bug fixes
out which were minor but have not even uploaded my latest version because was
still experimenting on things like the Tree Menu. That works nice and may even
do it all through the program which will take a little time.
The other additions which will make that program run easier in other
languages have pushed it off.
The music program I wrote in Python can be used once I make the Com
connections for it. I only posted a simple version that runs in Python and does
not require Python to be loaded. I only placed in the methods used such as the
queue, but that queue method restricts other options such as replaying at will
or repeat times at will.
But, creating a list can fix that problem and only use the queue if one
wants an continuous play untouched and seamless...
I think there might even be others on this list who have used Python and
created com stuff, but researching while waiting and see where it leads me in
terms of make Python objects for the WE app list.
Bruce
Sent: Monday, September 05, 2011 4:48 PM
Subject: RE: new Music Menu app
congrats to both of you on your new apps.
I'm not sure I remember the comment you're mentioning Bruce, but I think a
better way of thinking about things (because no one is actually selling any of
the apps you may have meant by "our work") is that we're doing this in order to
share with others, because at some time in our own personal pasts, others have
shared things with us.
Don't let me stop you from selling your apps if you feel that's what you want
to do, I just wanted to bring up the issue of how much help and time we've all
received from others at one time. No one is unfairly benefiting if we choose
to try and "pay it forward" with some effort of our own.
Chip
------------------------------------------------------------------------------
From: bb [mailto:[email protected]]
Sent: Monday, September 05, 2011 12:51 PM
To: [email protected]
Subject: Re: new Music Menu app
Hi Jeff,
I sent you and other my python app that almost does the same thing but
only did the simple queue without drawing from a list.
Besides that app, if it runs I am going to compile it as a com object to
be allowed to run inside the WE apps and be used on the global object list as
this one is run.
Maybe it will only play MP3, OGG and WAV, but it is all about learning.
My attempt is to bind the Python library into WE usage and if it works, then a
lot more powerful stuff can also be run.
At this point I will mention a comment made weeks ago, about selling the
apps. An interesting comment, which was asked when Mike was on the Chip Orange
tutorial Sunday night. I did not ask the question, but it has become an
interesting discussion by some, saying, "We do the work and another person
sells it..."
When I get my 7.5 computer back, and probably purchase a second, I will
keep on developing in hopes of comments as I have mentioned don't poison the
atmosphere...
Sincerely
Bruce
Sent: Monday, September 05, 2011 12:24 AM
Subject: new Music Menu app
I have just posted a new app called
MusicMenu
This app will play files from a list and it uses the new GWAudioKit to play
several file types.
If the GWAudioKit is not installed, the app will still work, but it will only
play .wav files, and some functions will not be available.
The help text follows:
Press Alt-Shift-M to play music files.
Select a file from the list and press play to hear the file.
Press next to hear the next selection.
Pres previous to hear the previous selection.
Press pause_resume to stop and resume a selection.
Press repeat_song to keep playing the same song repeatedly.
Press stop to stop a file or just select another file and press play.
Press close to close the app. If A song is playing when you close the app,
it will continue to play.
Press help to go to the standard help dialog.
Press up arrow and down arrow on the volume control.
The volume can be adjusted from 1 to 10--the default is 5.
The new volume will take effect any time a song starts playing--using play,
next, previous, or pause_resume.
The short-cuts for the options are listed below:
Play--enter
Next--n
Previous--p
Pause_Resume--a
Repeat_Song--r
Stop--s
Close--escape
Help--h
Volume--v
All of the music files that you want included in the list
must be in a subfolder of the folder where the MusicMenu app resides.
The subfolder which is created is called "MusicMenu"
This app requires the GWAudioKit to be fully functional.
If the GWAudioKit is not installed, the app will still work;
however, only .wav files will be played.
Also, pause_resume, repeat_song, and volume will not be available!
note: when using previous or next, the keys must be pressed twice in a row to
get things started--then continuing in the same direction will work as expected.
Jeff Weiss
--
--
Stephen Clower
Product support specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com