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

New smartWatchM API

 
smartmadsoft
Admin
#1 | Posted: 7 Apr 2009 21:32 | Edited by: smartmadsoft
Reply 
Currently available only in the v1.2.2.4 (http://beta.smartmadsoft.com) and for SE/Abacus/Fossil watches only.
This is the recommended way for interaction with the watch and creating other sw/plugins etc. The old 3rd party notifications will still work, however only this new API will be updated and enhanced. Are you missing something? Let me know.


Because smartWatchM is .NET application, you cannot send any messages directly to the application window.
Read the handle from registry. To start an action, simple send a message to this handle.

HKLM\Software\smartmadsoft\smartWatchM
MsgWinHandle (DWORD)

Simple actions (WM_USER)

wParam description
1 vibrate
2 envelope


Text and other actions (WM_COPYDATA)

Add one of the following at the beginning of the string.

Raw: send any raw at command
Text2LinesScroll: display a text, no scrollable (96) or scrollable (192) if possible (mbw-150 or newer), use \r\n as a line break
Text2LinesNoScroll: display a texe, no scrollable (96), use \r\n as a line break
TextFull: display all the text
Houi760
Member
#2 | Posted: 24 May 2009 00:36
Reply 
Can you post a VB sample showing the usage of the API?

Thanks.
smartmadsoft
Admin
#3 | Posted: 24 May 2009 01:16
Reply 
Things like making the watch (SE MBW) vibrate is simple:

SendMessage(handle, WM_USER, 1, 0);

Display envelope:

SendMessage(handle, WM_USER, 2, 0);

Sending the text using WM_COPYDATA in not "that" easy but you can find a lot of examples on the web:

http://www.vbforums.com/showthread.php?referrerid=61394&t=511722
http://bytes.com/groups/net-c/497679-sendmessage-wm_copydata
http://support.microsoft.com/kb/176058/en-us
 
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 5 - 0?
» 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®