Go Back   xda-developers > Windows Mobile Development and Hacking > Development and Hacking General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd September 2007, 09:05 AM
Daktaklakpak's Avatar
Daktaklakpak Daktaklakpak is offline
Junior Member
 
Join Date: Apr 2007
Posts: 11
Post Random Ringtones, MortScript by oblyvaeon

So people are constantly saying to me, "But Dak! I'm too much of a sodding conformist to have anything resembling a unique personality! All of my ringtones are exactly the same stock drivel that everyone else in my suburbanite wonderland has on their phones! If my phone played random ringtones, as you propose, I wouldn't be able to tell if it was in fact my phone ringing because I don't have a creative bone in my evolutionary throwback of a body!", at which point they usually dissolve into the obscure nothingness of mundania.

But now you don't have to fall victim to this pitiful demise! Naysayers be damned and behold: here is a MortScript to make your phone play ringtones randomly selected from a directory that you specify.

Developed for Hermes/WM5, but it might work for you with little or no modification.

Code:
Version History

1.0
  -Initial Release

1.1
  -Fixed path error-checking
  -Compacted code a bit

1.2
  -More error-checking
  -Script automatically reconfigures itself if files in ringtone path have changed
Attached Files
File Type: zip oblyvaeonRandomRingtones12.zip (4.6 KB, 1645 views)
__________________
Welcome to oblyvaeon...

Last edited by Daktaklakpak; 7th September 2007 at 02:25 AM.. Reason: Version update
Reply With Quote
Sponsored Links

  #2  
Old 3rd September 2007, 11:22 AM
sandip_in sandip_in is offline
Junior Member
 
Join Date: Jul 2006
Posts: 24
Default

nice job man...

keep it up.. really nice aps.... thanks...
Reply With Quote

  #3  
Old 7th September 2007, 02:29 AM
Daktaklakpak's Avatar
Daktaklakpak Daktaklakpak is offline
Junior Member
 
Join Date: Apr 2007
Posts: 11
Default

New version (1.2) available; major changes:

1. Much more comprehensive and robust error-checking routines.

2. Automatically detects and reconfigures itself when you add/remove/change files in your ringtone directory.
__________________
Welcome to oblyvaeon...
Reply With Quote

  #4  
Old 26th September 2007, 05:47 AM
seelanj seelanj is offline
Junior Member
 
Join Date: Jun 2007
Posts: 5
Default

no *.exe file was attached in zip file to execute oblyvaeonRandomRingtones.mscr . pls advice
Reply With Quote

  #5  
Old 26th September 2007, 03:40 PM
grypho grypho is offline
Senior Member
 
Join Date: Jan 2007
Posts: 117
Default

no .exe is needed, you need to install mortscript (freeware) in your pda.
Reply With Quote

  #6  
Old 24th October 2007, 05:41 AM
cusen cusen is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Default

not work on o2i?I tried but not work.
Reply With Quote

  #7  
Old 1st December 2007, 09:14 PM
Antipodeanist Antipodeanist is offline
Junior Member
 
Join Date: Dec 2007
Posts: 2
Default

Works on the Sprint HTC Touch running WM6. Thank you so much for this. I was looking for something that could do this and so far it appears to work great. Thanks a bunch.
Reply With Quote

  #8  
Old 14th December 2007, 07:54 AM
mmoroz mmoroz is offline
Member
 
Join Date: Nov 2007
Posts: 36
Default

Thank you -- it works great on Kaiser.

While 1-2% CPU usage isn't much, I think it would be better to reduce the run time further -- if only to reduce battery usage. I suppose there's no way to only run a script as part of an incoming call event (like in event-based VBA coding, etc.)?

Also, I seemed unable to change the folder to \Storage Card, until I manually changed it in the ini file. Maybe I was doing something wrong.
Reply With Quote

  #9  
Old 26th February 2008, 10:58 PM
supa4h supa4h is offline
Junior Member
 
Join Date: Nov 2007
Posts: 3
Default

Any chance of getting something like this for slider sounds?
Reply With Quote

  #10  
Old 4th March 2008, 07:23 PM
Daktaklakpak's Avatar
Daktaklakpak Daktaklakpak is offline
Junior Member
 
Join Date: Apr 2007
Posts: 11
Default

Quote:
Originally Posted by mmoroz View Post
Thank you -- it works great on Kaiser.

While 1-2% CPU usage isn't much, I think it would be better to reduce the run time further -- if only to reduce battery usage. I suppose there's no way to only run a script as part of an incoming call event (like in event-based VBA coding, etc.)?

Also, I seemed unable to change the folder to \Storage Card, until I manually changed it in the ini file. Maybe I was doing something wrong.
The 1-2% spike only occurs every 1 second (maybe not clear in documentation), but you could reduce this further by modifying the delay time to every 5, 10, 30, or any arbitrary number. The line "Sleep(1000)" is the 1000 millisecond delay. MortScript is not quite as advanced as any implemetation of VB script (loop-based or nothing as far as I can tell), heh :)

As for working from \Storage Card, that's how mine is personally set up and I did it through the default interface (no ini edit), so it does work; must have been an input error.


Quote:
Originally Posted by supa4h View Post
Any chance of getting something like this for slider sounds?
Not sure what "slider sound" is... ? It's probably possible; if there's a setting in the registry, this script could handle it. Case in point: I'm currently modifying it to work with Text Messaging at the request of a user.
__________________
Welcome to oblyvaeon...
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:21 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.