PDA

View Full Version : [SCRIPT] Sms counter.nrx



spaceimpact33
30-11-2004, 10:04 AM
Hi,
Just completed my new script with help from Danwood76 and Bradysarlo.
Its a sms counter, basicly you send a sms it adds 1 to the sms count (Great if your on a plan that only allows you to send x amount of free sms a month) :lol: ,
you can view and reset the counter at any time in the menu.

When adding the viewer to the menu structure make sure the 8th pram is 0x0800 and that it's parent menu display style is 0xc0 or the value will not display correctly.

[0x0033096C] [0x00000000] [5e0ID] (0x0179) (0x05E0) (0x0000) (0x0052) (0x0800) (0x0024) Message count

[Known Bugs]
Counts even if the message dosnt send ei: "Check operator services"
If you know of any more please post:)



(I use g3n0lite for my menus sorry Nokix ppl)

Click Here To Download(file removed check last post)

well have fun
Spaceimpact33;)

dvirus666
30-11-2004, 08:00 PM
Brilliant script. :D


But i noticed it also count a sms (Using nokia Viruz script)

if you go to enter a number but cancel without sending.

bradysarlo
01-12-2004, 08:37 AM
Yeah, unfortunalty we havn't fixed that yet, It's getting there. :razz:
Hopfully we will be seeing another version very soon. :-)
Good to see that you liked it though.
Well done Spaceimpact33.

domimat
01-12-2004, 05:41 PM
yes, unfortunatelly it counts even if U choose "SEND" and then CANCEL :-(

and there is one more thing... it always shows "Sent SMS:" and "SMS Counter Reset!"...
I'd like to add my own texts using add_ppm_strings :wink:

anyways - good work!

compuboy
01-12-2004, 06:14 PM
Great Work !!!

Some day a newbie like me will also be able to use this script but for now i will have to wait for dvirus666 to release his new flash with this and More importantly that if i get that flash.

BTW, I am a newbie but would like to ask that how Message Sent is actually notified. Is it notified when the user Selects the Send Option or anything else.

It would work perfectly if the Message Sent is notified when the Message Sent animation is called upon.

I know i seem to be very crude but i m learning how to mod and here i m just letting you all know what i think :???:

compuboy

danwood76
02-12-2004, 12:27 AM
It would work perfectly if the Message Sent is notified when the Message Sent animation is called upon.

I know i seem to be very crude but i m learning how to mod and here i m just letting you all know what i think :???:

compuboy

This is the process exactly
The script is called when the 'Message Sent' is displayed only problem is that the counte is hooked in the wrong place and even if the function cancels it is still being called
I will have a look at him :)

We will see what spaceimpact does next ;)

regards,
Danny

-- edit --

I have found a better place for the hook
Sent to Daniel ;)

spaceimpact33
02-12-2004, 05:10 AM
hi all,

Cheers for the replys :grin:
danny has given me some new addresses to hook so it should count properly, cheers danny, :-)

Im working on the next release now :D

@domimat
I will aslo make some ppm strings so ppl can customize it a bit ;)




Spaceimpact33

compuboy
04-12-2004, 09:36 PM
Can Anyone help me how to use this script with the example project given in Nokix.

Actually I added the Script in the list
Following Lines in new_ppm_strings.txt


@text var=text/resetcounter
ENGL:Reset Counter
POLI:Reset Counter

@text var=text/sentmessages
ENGL:SMS Count
POLI:SMS Count

Following Lines in Menu_Full.txt
Under Message Header


# Sent Messages
@item title=text/sentmessages arg=arg/counter_handler

# Reset Counter
@item title=text/resetcounter arg=arg/counterreset_handler

Now What should be the action etc etc to be added in Menu_full.txt


Regards

mestrini
04-12-2004, 09:58 PM
This is the wrong place for it but still...

there's a script called dump_menu that creates a text file with the menu structure from the selected file (original is best). It's that text file that u must alter (add menus and remove unuwanted stuff) to get the new menu structure to be patched into the firmware

to get the menus to look like the original just copy the values from the other strings (and take a long read at genolite section since it has a lot of info about the menu values)

last remark: no need to add arg/to counter_handler ;)
cheers

kraze1984
05-12-2004, 01:36 AM
another cool script from spaceimpact33

and no support for 3210 :)

spaceimpact33
05-12-2004, 10:06 AM
Hi all,

Im happy u like my script :D so i have completed the latest version with help from danny with new patterns, cheers bro :D

[Whats new?]
1. PPM string support.
2. Better hook thanks to danny.(No NSM-3(8210) support yet sorry)

[Get it]
Click Here to download (http://www.siangle.com/scripts.zip)

I will try make it more compatable with other models to in the next version.

have phun ;)
Spaceimpact33 :-D

danwood76
05-12-2004, 01:05 PM
I will find the patterns for the 8210 and 3210 in the next few days :)

regards,
Danny

compuboy
05-12-2004, 03:22 PM
I am a real NEWBIE

Can Someone please help me how to use this script with Nokix example scripts

Thanks

compuboy

yak
06-12-2004, 10:07 AM
Gosh, i have to say some people are doing really cool things here. Thanks, now I'm not the only one who has to write new patches for all dct3mod community :). Only one thing. Soon, there will be a new scripts update in which I've changed the way add_ppm_strings.rx works. I'm telling you beacause it will requiere changes in your script too (which is AFAIK the first not mine script that uses add_ppm_strings.rx). What was changed? Instead of setting given environment var to PPM ID, add_ppm_strings set it directly to address of string (0x04 followed by PPM ID), so you don't have to create this PPM string by yourself.

newknaber
18-12-2004, 12:05 PM
how can i add 5e0 id in ur sms counter? tnx more power!

deadspot
21-12-2004, 06:31 AM
i have suggestion...possible to edit sms counter not only reset....

in ur country when we buy prepaid card we have free txt ,ex 30 free txt
i want to edit my sms counter so that it will synchronize my free txt and counter...

10x!!!

ShadoW2004
23-12-2004, 09:42 AM
Here is a litle bug - after sms is sended we must see "Message Sended" there is no this message after sending....

Sorry for my bad english....

spaceimpact33
23-12-2004, 09:59 AM
Here is a litle bug - after sms is sended we must see "Message Sended" there is no this message after sending....

Sorry for my bad english....

I'm working on it ;)

Regards
Spaceimpact33

compuboy
02-01-2005, 10:31 AM
Has anyone got this script working with the new scripts snapshot

I am not able to get it now

Menu Entry:


# counter
@item title=text/smsc/title action=0x52 msg=0x387
@menu dispmode=0x80
@header action=0xD flags=0x1

# total
@item title=text/smsc/sent action=0x65 flags=0x8 msg=0x5E0 arg=counter_handler

# reset
@item title=text/smsc/reset action=0x42 flags=0x8 msg=0x5E0 arg=counterreset_handler

@end



I am getting some wiered characters as


Sent SMS :

vid00

And when Reset Counter is selected i get


gere:Convert

Is there any problem with what i am doing or something else

Regards

mestrini
02-01-2005, 12:52 PM
Hey :-x

you got to understand that the snapshot is for developers and not for modders !!!!!

stop asking for help because yak always said that there could be bugs in it since those scripts are in development stage!!!

stick by the latest pack that yak released on 29.11.2004

that's all :evil:

compuboy
07-01-2005, 08:38 AM
Script Modified to Work Correctly with the New SnapShot

New Script in Attachment

Regards

bradysarlo
07-01-2005, 08:40 AM
Well done,
Thanks mate. :smile:

ShadoW2004
06-02-2005, 07:17 PM
I have error with sms_counter new.nrx and latest scripts snapshot (2.02.2005)

# Processing: sms_counter new.nrx
# sms_counter.txt: Can't open file!
# RUNATEND: Bad arguments!
# 176 *-* runatend script "THE_END" (-180)
# +++ RC=1 +++
# SETLONG: Bad arguments!
# 77 *-* setlong counter_o_1+4 TID_SENTSMS
# +++ RC=1 +++
# SETLONG: Bad arguments!
# 78 *-* setlong counter_o_1+8 TID_RESET
# +++ RC=1 +++
MSG_SEND_STATUS @ 0x0021F4E0
###################################################################
# DONE!
# Display counter with 5e0 arg/counter_handler or Id 0x100
# Reset counter with 5e0 arg/counter_handler or Id 0x101
# By Spaceimpact33 and Danwood76 beta tester Bradysarlo
####################################################################

# Script error!

danwood76
06-02-2005, 07:26 PM
# Processing: sms_counter new.nrx
# sms_counter.txt: Can't open file!
# RUNATEND: Bad arguments!
# 176 *-* runatend script "THE_END" (-180)
# +++ RC=1 +++
# SETLONG: Bad arguments!
# 77 *-* setlong counter_o_1+4 TID_SENTSMS
# +++ RC=1 +++
# SETLONG: Bad arguments!
# 78 *-* setlong counter_o_1+8 TID_RESET
# +++ RC=1 +++
MSG_SEND_STATUS @ 0x0021F4E0
###################################################################
# DONE!
# Display counter with 5e0 arg/counter_handler or Id 0x100
# Reset counter with 5e0 arg/counter_handler or Id 0x101
# By Spaceimpact33 and Danwood76 beta tester Bradysarlo
####################################################################

# Script error!

These errors are caused by not having the sms_counter.txt in the scripts directory
Without this you will have big problems

regards,
Danny

ShadoW2004
07-02-2005, 11:52 AM
Is it posible to have not only sent_sms_counter ???... it will be cool to have reseived_sms_counter!!!

NokDoc
07-02-2005, 12:41 PM
Is it posible to have not only sent_sms_counter ???... it will be cool to have reseived_sms_counter!!!

Hi,

Netmon has in/ out and missed...

NokDoc

spaceimpact33
07-02-2005, 03:11 PM
@ShadoW2004

When i have time i will make a second version with recived message counter also. ;-)
Regards,
Si33

ShadoW2004
07-02-2005, 03:47 PM
2 spaceimpact33

Cool...we will wait... :razz:

portman
15-02-2005, 06:29 AM
i am using the sms counter script. it works fine. but i have problems with its menu_full.txt. the menu is not displayed. title problem etc. i dont know how to do it.

please give me the necessary script lines for menu section for the sms counter script.

ema2000
16-02-2005, 07:45 PM
i am using the sms counter script. it works fine. but i have problems with its menu_full.txt. the menu is not displayed. title problem etc. i dont know how to do it.

please give me the necessary script lines for menu section for the sms counter script.


here

# Sms Counter
@item stitle="Sms Counter" action=0x52 msg=0x387
@menu dispmode=0xC0
@header action=0x52

@item stitle="Sent SMS" flag2=0x52 flag3=0x4 func=0x5E0 arg=counter_handler

# SMS Counter Reset!
@item stitle="SMS Counter Reset!" flag2=0x52 flag3=0x4 func=0x5E0 arg=counterreset_handler

# Sms Counter
@end
:)

ShadoW2004
15-03-2005, 07:07 PM
2 spaceimpact33

What about recived message counter? When you will release new script? ;)

dvirus666
23-03-2005, 07:01 PM
Here is a received SMS counter.

I have only tested this on the 3310 at the moment and all went fine. Added 8210 support but not tested.

ShadoW2004
23-03-2005, 07:21 PM
dvirus666

Cool...lets test it!!!!

ShadoW2004
24-03-2005, 11:14 AM
COOL it's work!!!!

Good work dvirus666 ;)

nEMO
06-05-2005, 01:02 PM
have someone this script that work on 5510/3330 ??

dvirus666
06-05-2005, 04:30 PM
Here is a script that creates both sent & received in one script and uses definitions.

I have added support for the 3330 & 5510 but I cant test this as I dont have these phones to hand.

ema2000
06-05-2005, 05:11 PM
big thanks to u man :D , now can i add it to 3330 ;)

nEMO
07-05-2005, 07:42 PM
dvirus666 -> biigggg thx !! :] works on 5510 :]

dvirus666
07-05-2005, 08:09 PM
:D I am glad i could help.

yak
07-05-2005, 11:23 PM
Another cool release, thanks m8! I will put this into my NokiX Archive.

LoMaster
02-10-2005, 05:03 PM
A bug:

When translating Nokix scripts to Hebrew, i noticed that the "In:" and "Out:" strings are replaced by "?????" (when the phone is set to Hebrew).

There was already a similar problem with some of Yak's scripts (calendar, screen saver, watch...) He said that those scripts weren't fully supporting Unicode, and corrected the problem in 21.09.2005 snapshot. The problem was discussed here (http://nokiafree.org/forums/t76918/h/s.html) (3rd and 4th posts).
The bninfo.nrx script also has this problem.

Hope you'll correct this. Thanx for the script!

P.S. One more thing: the space after the colon in "In: " and "Out: " strings doesn't appear on the screen (in any language). It doesn't look nice.