[Q] how to get newsms or missedcalls CONTENTS on today (HS++) - General Questions and Answers

Im designing today screen for my device via HomeScreen++.
The main idea that it must be minimalistic with only information that i need.
As i thought hard, the main info is clock/date and all kinds of reminders (tasks, missedcalls, sms). To make this info more helpfull(still a lot of unused screen area) - it must contain not only counter of calls & sms but its CONTENTS.
That is a philosophy.
But also a problem. Is there any way to get callers info and sms contents into homescreen's *.xml?

this is a part of my rlToday xml which reads unread messages and missed calls:
Code:
<Registry key="HKEY_CURRENT_USER\System\State\Phone\Missed Call Count" x="65" y="136" color="RGB(255, 255, 255)" unknown="0">
<Font size="22" font="Tahoma" />
<OnClick File="\Program Files\callhistory.exe"/>
</Registry>
<Registry key="HKEY_CURRENT_USER\System\State\Messages\sms\Unread\Count" x="65" y="169" color="RGB(255, 255, 255)" unknown="0" >
<Font size="22" font="Tahoma" />
<OnClick File="\windows\tmail.exe" command='-service "SMS"' />
</Registry>

hm, that's pretty easy, i've got counters on mine today too.
I've been asking about a "CONTENTS"
it means that i want to see who's been calling me, from whom this sms and what's in it. And I want to see this info right on my today screen. That's the idea.

Related

SMS path?

Hi am trying to set up rlToday, and my SMS button keeps taking me to mail application. SMS button is currently configured as follows:
<Image x="5" y="15" source="bg_s.png" />
- <Text text="SMS" x="26" y="17" alignment="Center" color="RGB(160, 160, 160)">
<Font size="16" weight="bold" font="Tahoma" />
<OnClick File="\Windows\tmail.exe" />
</Text>
- <Registry key="HKEY_CURRENT_USER\System\State\Messages\sms\Unread\Count" unknown="0" x="27" y="33" alignment="Center" color="RGB(230, 230, 230)">
<Font size="20" weight="bold" font="Tahoma" />
<OnClick File="\Windows\tmail.exe" />
PS: SMS counter does display SMS count correctly, just wont take me to SMS app when clicked
What would be the correct path in order to take me to SMS inbox (on a Treo 750 WM5)?
Thanks so much!!
FYI:
Just in case anyone else has the same problem I did. I was able to solve, by creating a text file with the following line on it:
20#"\Windows\tmail.exe"-service "SMS"
I named this file sms.lnk
I then saved sms.lnk to \windows on ppc and used <OnClick File="\Windows\sms.lnk" /> as the path for sms button.
Took me forever to find the solution, and with the help of a very kind person on another board, I was able to get it working.
I hope this helps some newbie out there
\Windows\Messaging.exe - take a look at that...
cincy1020 said:
FYI:
Just in case anyone else has the same problem I did. I was able to solve, by creating a text file with the following line on it:
20#"\Windows\tmail.exe"-service "SMS"
I named this file sms.lnk
I then saved sms.lnk to \windows on ppc and used <OnClick File="\Windows\sms.lnk" /> as the path for sms button.
Click to expand...
Click to collapse
It worked with iPhoneToday on an Eten x500+. Thank you!

Show READ SMS count

I am wondering if it's possible in the SMScount plugin to show read SMS, I've tried the <readSMS> and <allSMS> tags and they don't work. Essentially, I'd like
<text>SMS : <unreadSMS /> / <readSMS /> </text> from the XML home, showing how many SMS there are in total; SMS : 5 / 219
Anybody know the tag to use?
Thanks.

Intercepting Notifications

I'm working on a program to handle SMS/MMS messages a little differently. As part of that, I'd like to add an option for a different alert when a message arrives. Can anyone explain (or point me at some documentation) how to:
* Detect a new message notification is needed
* Read the contents of the notification so that the message can be displayed in a custom window
Ideally, I'd eventually like to expand this to all notifications (calendar, voice mail, etc...) but right now I'm just focused on SMS. I have seen the docs on the Status and Notification API, but all this seems to provide is the number of messages in the system. What I'd really like to do is intercept the built in notification system and substitute the messages with my own.
Any help or direction would be very much appreciated.
from an xml
Code:
<Registry key="HKEY_CURRENT_USER\System\State\Messages\sms\Unread\Count" x="65" y="169" color="RGB(255, 255, 255)" unknown="0" >
<Font size="22" font="Tahoma" />
<OnClick File="\windows\tmail.exe" command='-service "SMS"' />
</Registry>
to read the contents.. you can ask a user named nicodega.

[Q] tmail parameter help

I've looked all over without finding what I'm looking for, I've also tried many many param lines but can't make it work??
I want to set a tmail param to take me to a unread sms instead of my inbox. This Parameter:
Code:
\Windows\tmail.exe -service "SMS"
This takes me to my inbox but I want to be able to go to the new sms when received like Win does it in its lockscreen...

[TUTORIAL] unread mail count tasker all mail clients (imap)

No idea where to put this, admin; feel free to move or delete.
There's a lot of really cool custom theming going on with Android and an often important part of that is the visual indication of missed phone calls, new messages, new mail, etc. (unread bubbles next to app icons, in lockscreens, etc.). There's a host of solutions to get this info but for me e-mail counts had always been a bit of a issue. Missed phone calls are tracked by the Android system, and WhatsApp notifications can be counted from the notification bar with Tasker and reset when you open the app because your phone is the only place where you will check your WhatsApp messages. E-mail however is not centralized in Android (yet) so if you use anything else than Gmail the system won't know how many unread mails you have and you could uee a notification counter on your mail app but when a new email arrives it will put the counter on +1, if you then read the e-mail on another device (for example your computer) your notification counter on your phone will still be on +1 even though you read the mail.You then have to open your mail app to get the counter back to 0 again.
That why I made this PHP / Tasker solution for my IMAP mail. This is a PHP script that checks how many unread mails there are in your inbox:
PHP:
<?php
function mailCount($host, $login, $passwd) {
$mbox = imap_open($host, $login, $passwd);
$mail = '';
if($mail = imap_check($mbox)) {
$msgnos = imap_search($mbox, 'UNSEEN');
return $msgnos;
}
}
$hostname = '{imap.yourhost.com:143/imap}INBOX';
$username = 'your_username';
$password = 'your_password';
$count = mailCount($hostname, $username, $password);
if ($count != "") $number = sizeof($count);
else $number = 0;
echo $number;
Change yourhost, your_username and your_password and the port (143). (if you want to, add some extra security by doing IP or Cookie checks), put the PHP file online on your server. The script will then simply show a number of unread mails in your inbox.
Then you can use Tasker to read this number. Add a tasks (for example CheckMailCount) then add the action Net > HTTP Get. For 'Serverort' fill in the url of your script (http://www.yourserver.com/unreadmail.php) and set the Mime Type to 'text/*'. Then in the same task add an action Variables > Variable Set. Give the variable a Name (for example: %MAILCOUNT) and set it To %HTTPD. This will set the %MAILCOUNT variable to the result of the last http Get request ie. the number of unread mails.
You now have a tasker variable with the actual number of unread mails in your inbox.
I use this on my WidgetLocker lockscreen so I trigger the task on Event > Display > On. I added a third action in the CheckMailCount action to set a Zooper Variable (Plugin > Zooper Widget Pro >Edit > ZW Variable = MAILNOTI, ZW Text = %MAILCOUNT) you could also make this %HTTPD straight away if you don't use the variable for anything else. You then have the #TMAILNOTI# variable in Zooper to use to display how many unread mails you have in a widget. I don't use the count but I display a mail icon indicating that I have a new mail if the #TMAILNOTI# is anything but 0. I do this by adding a bitmap in Zooper of a mail icon and then in Avanced Parameters I put
$#TMAILNOTI#=0?/sdcard/icons/nomail.png$
This tells Zooper that if the variable #TMAILNOTI# = 0 it should use the bitmap nomail.png in my icons folder on the sd card. nomail.png in my case is simply an empty transparent png.
Hope this helps somebody!
nielshtc said:
No idea where to put this, admin; feel free to move or delete.
There's a lot of really cool custom theming going on with Android and an often important part of that is the visual indication of missed phone calls, new messages, new mail, etc. (unread bubbles next to app icons, in lockscreens, etc.). There's a host of solutions to get this info but for me e-mail counts had always been a bit of a issue. Missed phone calls are tracked by the Android system, and WhatsApp notifications can be counted from the notification bar with Tasker and reset when you open the app because your phone is the only place where you will check your WhatsApp messages. E-mail however is not centralized in Android (yet) so if you use anything else than Gmail the system won't know how many unread mails you have and you could uee a notification counter on your mail app but when a new email arrives it will put the counter on +1, if you then read the e-mail on another device (for example your computer) your notification counter on your phone will still be on +1 even though you read the mail.You then have to open your mail app to get the counter back to 0 again.
That why I made this PHP / Tasker solution for my IMAP mail. This is a PHP script that checks how many unread mails there are in your inbox:
PHP:
<?php
function mailCount($host, $login, $passwd) {
$mbox = imap_open($host, $login, $passwd);
$mail = '';
if($mail = imap_check($mbox)) {
$msgnos = imap_search($mbox, 'UNSEEN');
return $msgnos;
}
}
$hostname = '{imap.yourhost.com:143/imap}INBOX';
$username = 'your_username';
$password = 'your_password';
$count = mailCount($hostname, $username, $password);
if ($count != "") $number = sizeof($count);
else $number = 0;
echo $number;
Change yourhost, your_username and your_password and the port (143). (if you want to, add some extra security by doing IP or Cookie checks), put the PHP file online on your server. The script will then simply show a number of unread mails in your inbox.
Then you can use Tasker to read this number. Add a tasks (for example CheckMailCount) then add the action Net > HTTP Get. For 'Serverort' fill in the url of your script (http://www.yourserver.com/unreadmail.php) and set the Mime Type to 'text/*'. Then in the same task add an action Variables > Variable Set. Give the variable a Name (for example: %MAILCOUNT) and set it To %HTTPD. This will set the %MAILCOUNT variable to the result of the last http Get request ie. the number of unread mails.
You now have a tasker variable with the actual number of unread mails in your inbox.
I use this on my WidgetLocker lockscreen so I trigger the task on Event > Display > On. I added a third action in the CheckMailCount action to set a Zooper Variable (Plugin > Zooper Widget Pro >Edit > ZW Variable = MAILNOTI, ZW Text = %MAILCOUNT) you could also make this %HTTPD straight away if you don't use the variable for anything else. You then have the #TMAILNOTI# variable in Zooper to use to display how many unread mails you have in a widget. I don't use the count but I display a mail icon indicating that I have a new mail if the #TMAILNOTI# is anything but 0. I do this by adding a bitmap in Zooper of a mail icon and then in Avanced Parameters I put
$#TMAILNOTI#=0?/sdcard/icons/nomail.png$
This tells Zooper that if the variable #TMAILNOTI# = 0 it should use the bitmap nomail.png in my icons folder on the sd card. nomail.png in my case is simply an empty transparent png.
Hope this helps somebody!
Click to expand...
Click to collapse
This looks way to confusing but I get it a little bit... lets say I want to use UCCW tasker variable option to show the counts...:silly:

Categories

Resources