Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / August 2005

Tip: Looking for answers? Try searching our database.

How to vibrate in windows mobile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Mittenzwey - 31 Aug 2005 16:56 GMT
I have an Audiovox xv6600 that I have written a program for in c#. I would
like to be able to cause the thing to vibrate to simulate an alert similar
to the way the Alarms do. It is running Windows Moblie 2003 2nd Ed.

I found some examples on blog.opennetcf.org, but neither worked.
I tried using SetLedStatus and I tried the using aygshell.dll (that one gave
me an error that method does not exist when calling the functions declared
in the DLLImport)

It seems like there should be some API on the device to get this to work. I
would think that the Clock utility is something that comes with the os, and
not an Audiovox original, so it has to be calling some standard api or
something.

Thanks,
Bill
Peter Foot [MVP] - 31 Aug 2005 23:55 GMT
On Smartphone devices there is a specific Vibrate API, on Pocket PCs the
vibrate functionality is exposed as a virtual LED. Take a look at the
OpenNETCF.WindowsCE.Forms.Led code to see the necessary P/Invokes etc:-
http://vault.netcf.tv/VaultService/VaultWeb/login.aspx
username: guest, password:guest

You'll need to first query for the number of LEDs - usually 2, one for the
notification LED and the other for vibrate, but they don't always have
logical indexes - e.g. not necessarily 0 and 1, sometimes the vibrate is on
a higher index e.g. 5

Peter

Signature

Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

>I have an Audiovox xv6600 that I have written a program for in c#. I would
>like to be able to cause the thing to vibrate to simulate an alert similar
[quoted text clipped - 12 lines]
> Thanks,
> Bill

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.