Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Give me an idea


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2007, 01:59 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default Give me an idea

I write a voice clock program that auto inform time. I can write 2 .exe file:
1. Talk.exe - have no form, just talk time.
2. Setup.exe - have a form to set the time that will call talk.exe (after a hour / 2 hours...).

The problem is I want to write only 1 .exe file that can set and talk. Anybody give me an idea, please ? Thank you so much.

Ps: Sorry for my bad English
Reply With Quote
  #2 (permalink)  
Old 07-03-2007, 06:20 AM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
Default

Read the command line arguments & then set up the exe to behave differently depending on the value passed. You'd need two shortcut files though.

From the manual:
Quote:
Reading the command line arguments is done using a special built-in array named args.
Use ArrayLen to find the number of arguments available.
In order to simulate command line arguments from the IDE you can use Tools - Command line arguments.


Example:
Sub Globals


End Sub
Sub App_Start
For i = 0 To ArrayLen(args())-1
Msgbox(args(i))
Next
End Sub
Reply With Quote
  #3 (permalink)  
Old 07-03-2007, 10:48 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,136
Default

I don't really see the need for two files....
From what I can see, what you want is some kind of alarm-clock that instead of playing a laud sound will "say" the time..

It seems simple to do, but You'll have to have the Wave, mp3 or whatever sound bits you need created by you...
Then in a timer keep checking for the system time and compare it to the setted time, if this is an alarm-clock, or check for the hour value, and if true play the sound file...

P.S.: If this is to be Open-Source, I am trying to create an on-line partnership to develop Open-Source projects....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 04:03 PM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

Hi all,

To LineCutter: Thank you, I have the same idea

To Cableguy: I write 2 .exe files because I want talk.exe only "talk", not show any form and don't light on the screen... The setup.exe use to set option so need a form.

I'm very happy to make this as an Open Source. Anybody help me?
Reply With Quote
  #5 (permalink)  
Old 07-03-2007, 04:23 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,136
Default

I'm Up for it...One thing..
Were do you plan of getting the sound bits?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #6 (permalink)  
Old 07-03-2007, 05:52 PM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

Thank you CableGuy,

I think we can use this website:
http://www.research.att.com/~ttsweb/tts/demo.php
to make wave files such as "one.wav", "two.wav"...
Is it OK ?
Reply With Quote
  #7 (permalink)  
Old 07-03-2007, 06:18 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,136
Default

Yes, nice demo....Still to get a "natural" we have to play with the words...

I'll send you a pm with my e-mail so we can talk on-line...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 07-03-2007 at 06:20 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypting, decrypting - any better idea how to work with file? Standa Chit Chat 11 09-01-2008 08:38 AM
possible to give values to arrays in Sub Globals? Stellaferox Questions & Help Needed 2 02-17-2008 12:10 PM
V6-not-optim, V6-Debug, and V6-optimised give not the same nested FOR-NEXT execution dan kabestan Questions & Help Needed 1 01-04-2008 07:17 PM
Just an idea ..... Scubaticus Forum Discussion 3 07-20-2007 02:56 PM


All times are GMT. The time now is 07:05 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0