HighTechTalks DotNet Forums  

Start the phone, Process.Start() ?

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Start the phone, Process.Start() ? in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
davebythesea
 
Posts: n/a

Default Start the phone, Process.Start() ? - 10-10-2007 , 04:29 AM






Hi folks,

Does anyone know if its possible to start the phone automatically, perhaps
via a call to Process.Start() ? Possibly even pass in a telephone number to
be dialled automatically? That would be neat!

David

Reply With Quote
  #2  
Old   
davebythesea
 
Posts: n/a

Default RE: Start the phone, Process.Start() ? - 10-10-2007 , 06:19 AM






This has worked nicely, and simply -

Process p = Process.Start(@"\Windows\cprog.exe", "");

I guess I could probably pass in some command line arguments to call a
number automatically. Cool.

"davebythesea" wrote:

Quote:
Hi folks,

Does anyone know if its possible to start the phone automatically, perhaps
via a call to Process.Start() ? Possibly even pass in a telephone number to
be dialled automatically? That would be neat!

David

Reply With Quote
  #3  
Old   
Simon Hart [MVP]
 
Posts: n/a

Default RE: Start the phone, Process.Start() ? - 10-10-2007 , 08:46 AM



You've not said which version of CE you are using. If Windows Mobile 5 you
can use the Phone class to initiate a call ie:-

Microsoft.WindowsMobile.Telephony.Phone phone = new
Microsoft.WindowsMobile.Telephony.Phone();
phone.Talk("12345");

The above class is foind in the WM5 SDK (Microsoft.WindowsMobile.dll).

If you are using pre WM5 then I *think* Peter Foot has written a wrapper for
this.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"davebythesea" wrote:

Quote:
This has worked nicely, and simply -

Process p = Process.Start(@"\Windows\cprog.exe", "");

I guess I could probably pass in some command line arguments to call a
number automatically. Cool.

"davebythesea" wrote:

Hi folks,

Does anyone know if its possible to start the phone automatically, perhaps
via a call to Process.Start() ? Possibly even pass in a telephone number to
be dialled automatically? That would be neat!

David

Reply With Quote
  #4  
Old   
davebythesea
 
Posts: n/a

Default RE: Start the phone, Process.Start() ? - 10-10-2007 , 09:56 AM



Hi,

Thanks for the reply. I'm building the app in VS 2005 as a Pocket PC 2003
project. Will probably port it over to Mobile 6 though. Looks nice and easy
that Phone class. Excellent!

David

"Simon Hart [MVP]" wrote:

Quote:
You've not said which version of CE you are using. If Windows Mobile 5 you
can use the Phone class to initiate a call ie:-

Microsoft.WindowsMobile.Telephony.Phone phone = new
Microsoft.WindowsMobile.Telephony.Phone();
phone.Talk("12345");

The above class is foind in the WM5 SDK (Microsoft.WindowsMobile.dll).

If you are using pre WM5 then I *think* Peter Foot has written a wrapper for
this.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"davebythesea" wrote:

This has worked nicely, and simply -

Process p = Process.Start(@"\Windows\cprog.exe", "");

I guess I could probably pass in some command line arguments to call a
number automatically. Cool.

"davebythesea" wrote:

Hi folks,

Does anyone know if its possible to start the phone automatically, perhaps
via a call to Process.Start() ? Possibly even pass in a telephone number to
be dialled automatically? That would be neat!

David

Reply With Quote
  #5  
Old   
Christian Resma Helle
 
Posts: n/a

Default Re: Start the phone, Process.Start() ? - 10-11-2007 , 02:49 AM



Hi David,

If you want to use Pocket PC 2003 then I suggest looking into OpenNETCF's
Smart Device Framework. It contains wrappers for the Phone, SMS, CallLog,
and SIM API's.

--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com


"davebythesea" <davebythesea (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

Thanks for the reply. I'm building the app in VS 2005 as a Pocket PC 2003
project. Will probably port it over to Mobile 6 though. Looks nice and
easy
that Phone class. Excellent!

David

"Simon Hart [MVP]" wrote:

You've not said which version of CE you are using. If Windows Mobile 5
you
can use the Phone class to initiate a call ie:-

Microsoft.WindowsMobile.Telephony.Phone phone = new
Microsoft.WindowsMobile.Telephony.Phone();
phone.Talk("12345");

The above class is foind in the WM5 SDK (Microsoft.WindowsMobile.dll).

If you are using pre WM5 then I *think* Peter Foot has written a wrapper
for
this.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"davebythesea" wrote:

This has worked nicely, and simply -

Process p = Process.Start(@"\Windows\cprog.exe", "");

I guess I could probably pass in some command line arguments to call a
number automatically. Cool.

"davebythesea" wrote:

Hi folks,

Does anyone know if its possible to start the phone automatically,
perhaps
via a call to Process.Start() ? Possibly even pass in a telephone
number to
be dialled automatically? That would be neat!

David



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.