Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Device message reader dll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2010, 07:37 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default Device message reader dll

It can read all, 'Message Stores', on your device. MMS, SMS, Email accounts etc.
This is work in progress, not the lib, that works
The 'How to use', explanation needs working on. So here's a start.

Copy the 4 files in the attached zipfile to a New folder on your device.
Run the .sbp file on your device.
You should get this screen.
Select the Message store you want from combobox1. Top left.
Click one of the buttons top right.
I = Inbox
S = SentItems
O = Outbox
D = DeletedItems
Then wait . . . .

Once you get the 'Read' msgbox.
Select the msg num you want to see using combobox2,
left of 'Read' button. Then press 'Read' button.



The zip will be added soon. Hopefully tonight.
Happy New Year everyone :-)
Attached Files
File Type: zip MsgLib.zip (24.7 KB, 19 views)
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk

Last edited by taximania : 01-14-2011 at 06:28 PM.
Reply With Quote
  #2 (permalink)  
Old 01-01-2011, 05:00 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I hate help files. Hope this covers things


Sub Globals
'Declare the global variables here.
End Sub

Sub App_Start
Form1.Show
Sip=False
sms.New1
Msgbox(sms.About,"MsgLib")
For a = 0 To sms.NumOfStores-1 'For each number of device message stores 0-?
sms.SetStoreNum=a 'Set the store number 0-?
combobox1.Add(sms.GetStoresName) 'Get the store name and populate combobox1
Next
combobox1.SelectedIndex=0 'Reset combobox1 index
End Sub

Sub ComboBox1_SelectionChanged(Index, Value) 'Set's desired store number. eg 2=SMS on my device
sms.SetStoreNum=index
store=value 'Save store name for further use
End Sub

Sub Button1_Click
a=sms.GetNumInboxItems 'Returns the number of Inbox messages
If a = 0 Then Return 'If empty, return
combobox2.Clear 'Reset combobox2
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b) 'Add number values for each message to combobox2
Next
combobox2.SelectedIndex=0 'Start at '0'
sms.LoadInboxMsg 'Load all Inbox messages to memory
label2.Text=a & " Read."
Msgbox("Read",store) 'Done
End Sub

Sub Button3_Click 'As sub above but reads Sent Items
a=sms.GetNumSentItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadSentMsg
label2.Text=a & " Read."
Msgbox("Read",store)
End Sub

Sub Button4_Click 'As sub above but reads Outbox Items
a=sms.GetNumOutboxItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadOutboxMsg
label2.Text=a & " Read."
Msgbox("Read",store)
'msgbox()
End Sub

Sub Button5_Click 'As sub above but reads Deleted Items
a=sms.GetNumDeletedItems
If a = 0 Then Return
combobox2.Clear
label2.Text="Reading ."
For b = 0 To a -1
combobox2.Add(b)
Next
combobox2.SelectedIndex=0
sms.LoadDeletedMsg
label2.Text=a & " Read."
Msgbox("Read",store)
'msgbox()
End Sub

Sub Button2_Click
sms.SetMsgNum=combobox2.SelectedIndex 'Select the message number
textbox1.Text=sms.GetMsgSubject 'Gets the message subject, for email. Or SMS Body
label3.Text=sms.GetMsgSenderName '
label4.Text=sms.GetMsgSenderAddress '
label5.Text=Time(sms.GetMsgDate) 'In Ticks
label6.Text=Date(sms.GetMsgDate) 'In Ticks
label7.Text=sms.GetMsgBody 'Same as GetMsgSubject for SMS. Or Body for email
End Sub
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #3 (permalink)  
Old 01-03-2011, 07:22 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

After a post by Agraham in my 'Chit Chat' post, 'C# Question'
I've made a few alterations to my lib.

And found a couple of bugs.
1: I can't seem to cure
2: GetMsgBody, was actually returning GetMsgSubject
My typo.
On correction of it, GetMsgBody now throws an Invalid thingy.

Win Mo 5-6 uses MIME for message Body's.
A Basic4ppc string won't accept this and throws up

I've looked, but haven't found a solution.

Some Text missing
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #4 (permalink)  
Old 01-06-2011, 02:37 AM
Junior Member
 
Join Date: Jan 2011
Posts: 28
Default I'll try to run in my HD2

I'll try to run in my HD2
It's something wrong
Reply With Quote
  #5 (permalink)  
Old 01-06-2011, 05:57 AM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Is it something to do with the HD2.
Apparently my intercept.dll doesn't work on HD2 either ?


http://www.basic4ppc.com/forum/addit...html#post40742
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #6 (permalink)  
Old 01-12-2011, 08:01 PM
Knows the basics
 
Join Date: Aug 2010
Location: Russia
Posts: 64
Default

taximania,
Is it possible in the dynamic library MsgLib.dll add methods with the help of which we can delete sms out of folders, add sms to folders and replace them to others, for instance from the incoming to deleted and so on?
Reply With Quote
  #7 (permalink)  
Old 01-13-2011, 07:03 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Discorez View Post
taximania,
Is it possible in the dynamic library MsgLib.dll add methods with the help of which we can delete sms out of folders, add sms to folders and replace them to others, for instance from the incoming to deleted and so on?
One step at a time. I'm working on it
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #8 (permalink)  
Old 01-14-2011, 11:48 AM
Knows the basics
 
Join Date: Aug 2010
Location: Russia
Posts: 64
Default

Super! It will be very useful library.
Good luck in creation!
Reply With Quote
  #9 (permalink)  
Old 01-14-2011, 06:30 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Updated a faster version of MsgLib in #Post1.
Still no 'Body' available
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS Message Intercept option To Delete Message RandomCoder Basic4ppc Wishlist 2 01-01-2011 04:16 AM
Sql Reader PepSoft Questions (Windows Mobile) 1 05-27-2010 05:32 PM
GPX Reader DieterR Code Samples & Tips 0 11-24-2008 11:21 PM
HTTP POST on Device - error message TWELVE Questions (Windows Mobile) 6 04-26-2008 09:35 AM
SQL Reader BPak Basic4ppc Wishlist 0 01-26-2008 11:05 PM


All times are GMT. The time now is 07:26 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0