smartmadsoft    
 | Forums | Sign Up | Reply | Search | Statistics | | |
Windows Mobile smartmadsoft / Forum / Windows Mobile /

New smartWatchM plugin / menu item dll support v2.1

 Page:  1  2  »» 
smartmadsoft
Admin
#1 | Posted: 23 May 2009 02:58 | Edited by: smartmadsoft
Reply 
Added new events - (Watch) Connect/Disconnect. Available since version 1.2.5.1. http://www.smartmadsoft.com/smartwatchm/menuitem21.cs

-------------------------------------------------------

Here's sample plugin (v2) that's compatible with smartWatchM since version 1.2.5.0: http://www.smartmadsoft.com/smartwatchm/menuitem2.cs
To successfully build your plugin, don't forget to add reference to smartWatchM.exe (simply copy it out from \Program Files\smartmadsoft\smartWatchM\ on your device).
Currently only one plugin supported. Name must be menuitem.dll.

-------------------------------------------------------

Here's first draft version of custom menu item support in smartWatchM.
It will act just like regular menu item, it can receive 4 button presses (plus you can create your own notifications with the use of smartWatchM API).

How to:
Grab the simple sample here: http://www.smartmadsoft.com/smartwatchm/menuitem.cs
Leave the same name of namespace/class, build it, name it menuitemdll.dll and put it in the smartWatchM folder on your device.
(In smartWatchM, go to Settings -> Tools -> Customize Menu and move MenuItemDll to some more accessible position.)

Currently only one dll is supported. (May be extended in the future)

Use the latest version (v1.2.2.5 or newer).
notme
Member
#2 | Posted: 24 May 2009 05:06
Reply 
Hi Admin!



I am incredibly close to having this working after your post spotting a few hours ago!

Downloaded VC# express (for the first time ever) and used the file you posted.

Built code to store set patern of keypresses. Return "pass" or "fail" after 4 presses.
No time limit yet..

only problem is.. I cant find a way of calling anything or doing anything useful with the result..

Looking at the code thats running, it seems to be able to read the registry using getvalue.
So I thought.. why not set a value, and have a Mortscript watching the registry..

( I love Mortscript btw.. never would have tried it if not for Smartwatch, so that's another thank you!)

But setvalue fails... heres the 3 lines of code..

RegistryKey keyRegistry = Registry.LocalMachine.OpenSubKey("Software\\smartmadsoft\\smartWatchM");

keyRegistry.SetValue("SECURE", 1);
keyRegistry.Close();

so any suggestions..?
Is this beacuse i'm using VC# express and I need standard?
Is there any way to call a mortscript from VC#?
smartmadsoft
Admin
#3 | Posted: 24 May 2009 12:45
Reply 
Well, you have to use .NET Compact Framework (2) and not the full desktop version. CF is not supported in the Express versions. You have to use VS Professional (or Team I guess).
(Or you can use some free alternative: http://www.codeproject.com/KB/mobile/WiMoSansVS.aspx )
notme
Member
#4 | Posted: 24 May 2009 12:53
Reply 
I will have a quick look at that, and if not c# looks very interesting anyway (the IDE has come a long long way since I did any MS coding..) so I might just go and buy it..

Thanks again!
notme
Member
#5 | Posted: 26 May 2009 21:47
Reply 
I built the freeware tools and have my code running..

It enabled me to build what I had asked for in the other thread, apart from I cut down the number of keypresses from 4 beacuse it took to long.

I will detail how I did it back in the other thread.

Thanks for the dll support. Made my watch even more useful!
Darrien_u
Member
#6 | Posted: 5 Dec 2009 02:37
Reply 
Great API and I love this program.

I Just created a small DLL to mess around with it and had a suggestion for an addition to the API. I'd love to see two more events, one for when the watch connect's and one for when the watch disconnect's.

What I'd like to do is be able to change the lock timeout, so that when the watch is connected it set to something high like 2 hours. And when it gets disconnected or I'm walking around with out the watch I want a lower value of 1 minute so that I can be sure my device locks quickly if I leave it unattended.

Thanks for the all the work on this!!
smartmadsoft
Admin
#7 | Posted: 5 Dec 2009 12:58
Reply 
Darrien_u
I will add these events to the next (beta) release.
smartmadsoft
Admin
#8 | Posted: 5 Dec 2009 23:36
Reply 
New events are available in the latest beta.
Darrien_u
Member
#9 | Posted: 6 Dec 2009 06:57
Reply 
Awesome.. just downloaded and installed the new code. works great!! I love it..

Thank you for the such a quick turn around!
Darrien_u
Member
#10 | Posted: 12 Dec 2009 16:34
Reply 
Been working with the API all week and love it. Just had to donate.

Was able to get a few ideas working with this API.. So far I was able to setup code for each of the buttons which work great and got the connect and disconnect working the way I want now. But had an idea of doing some in call management and noticed that the FF, RW and play buttons are not getting sent to API. Wondered if there was a way to get them to pass through to the API?
smartmadsoft
Admin
#11 | Posted: 12 Dec 2009 21:10
Reply 
Thanks for the support!

Unfortunately the multimedia keys doesn't work in this (phone call) mode. It's the watch firmware thing.
Darrien_u
Member
#12 | Posted: 15 Dec 2009 05:01
Reply 
hmmm.. bummer.. So when I'm on a call and press the buttons I see in the smartwatchM status window, I see entries for RW, FF and Play button pressed, something about the Windows Mobile firmware is unable to process the events?
smartmadsoft
Admin
#13 | Posted: 15 Dec 2009 11:22
Reply 
I see... I meant the incoming call mode - in this mode no left side buttons are available.
In the in call mode pressing buttons is possible, there's just some preset functionality in smartWatchM (to toggle loudspeaker etc.). I can disable this if plugin is loaded. Will change it in next beta.
Darrien_u
Member
#14 | Posted: 17 Dec 2009 05:02
Reply 
That would be great.. What I wanted to do is use one button setup to toggle the line mute state from enabled to disabled. Found a way to do it, but the one thing I don't like is that the windows dialer doesn't detect when I've enable or disable the line mute state, so there isn't a visual cue on Windows mobile to which state I left the line in. So wanted a second button on the phone that I could press to tell me weather I am on mute or not.
smartmadsoft
Admin
#15 | Posted: 3 Jan 2010 10:32
Reply 
Darrien_u
It should work in v1.2.5.2.
 Page:  1  2  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link     :) ;) :-p :-( More smilies...  Disable smilies in post

To prove that you are a human rather than spambot, please answer the following question:
How much is 4 + 1?
» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.
 

Forums are powered by miniBB®