Mobiion Forum  
May 17, 2012, 07:38:53 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1   Go Down
  Print  
Author Topic: SMS rule that includes {time} parameter.  (Read 2950 times)
Ed
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: January 04, 2008, 07:12:11 pm »

Does anyone know how to create a rule that runs an application at repeated time intervals when an SMS has been received?

I am not sure what the syntax of the {time} parameter is as there are no examples in the user guide. I tried to substitute the letters "time" in-between the curly brackets with a minute {00:01} and typed this it in the paramater field in a rule I created but it doesn't work.

Ideally I would like the rule to play a WAV file every minute when an SMS has been received from a specific number. My smartphone associates WAV with Windows Media Player so I can make it play once, but not repeatedly until the SMS has been read.

Any ideas would be appreciated.
 
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #1 on: January 05, 2008, 03:27:21 am »

Hi Ed,

MagiCall is not able to do that. {time} is used to refer to the time at which a call or SMS is filtered, often used when replying SMS.
Your requirement is much likely a feature of a profiler program.

Regards.
Logged
Ed
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #2 on: January 07, 2008, 07:16:58 pm »

Hi Admin,

Thanks for your reply and for clarifying the use of the {time} function. I have bought several profiler programs such as AutoFlight and CallMe etc. However they are not able to repeat the running of an application (not the same as repeating an alarm). An interesting thing is that these software programs do not have an option to stop/exit the running of an application at a specified time. I was hoping that with MagiCall's rules it could be done. I also bought your competitions SmartBlock but even though they say it is compatible with the Samsung Blackjack i600, it is not. MagiCall is compatible and I have not had any problems therewith.

Thanks in any event.
Ed.
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #3 on: January 08, 2008, 03:20:54 am »

Hi Ed,

I've made a small program to run application at intervals for you. It has been attached in this thread.
How to use it:

1. Download and copy it to your device's Windows folder.
2. Create a SMS rule in MagiCall and make it to Launch App for Action2.
3. Fill the rule's App Path like this: RunApp "<your app's full path>" <interval in seconds> <run times>

For example, if you want to run program "\Program Files\App1\App.exe" 10 times at every 20 seconds, the string is like this:
RunApp "\Program Files\App1\App.exe" 20 10

Currently you cannot stop RunApp if it is running. I will make it able to be closed in the next several days. Hope you like it. Thanks.

* RunApp.exe (5.5 KB - downloaded 115 times.)
Logged
Ed
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #4 on: January 11, 2008, 02:39:23 am »

Hi Admin,

Wow! I am amazed that you went to the trouble. Thank you for thinking about a solution to my requirements and for doing something about this.

However, I can't make it work and have tried several addaptions to your syntax with several SMS's sent to myself. Below are the things I have tried. In all cases MagiCall has correctly filtered the incomming SMS and the filtered message does appear while the device gives its default ring, for incomming messages into the inbox.

As I actually want to continuously repeat a sound after an SMS has been received I initially included the wav file name as follows:
RunApp "\Windows\phone.wav" 10 3
RunApp "\Windows\wmplayer.exe\phone.wav" 10 3
RunApp "\Windows\wmplayer.exe phone.wav" 10 3

I also placed the wav file in the windows directory for the above. Then I tried the following:

RunApp "\Windows\wmplayer.exe" 10 3
RunApp.exe "\Windows\wmplayer.exe" 10 3
\Windows\RunApp.exe "\Windows\wmplayer.exe" 10 3
\Windows\RunApp "\Windows\wmplayer.exe" 10 3

I also rebooted after I copied your RunApp.exe file to the \Windows directory in case that WM5.0 needed its path in memory. I also moved the file to the \My Programs directory and tried several different commands in the App path: field in MagiCall' rule. I can not get it to work or even launch the WMPlayer.

Any ideas?

Much appreciated,
Ed
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #5 on: January 11, 2008, 01:02:51 pm »

Hi Ed,

I made a mistake. You need to put parameters in the Params field. Here is an example:

App path: RunApp.exe
Params: "\Windows\Alarm1.wav" 3 3

I tested the above settings, they worked. You need to put RunApp.exe under \Windows otherwise a full path should be applied.
Logged
Ed
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #6 on: January 11, 2008, 07:43:37 pm »

Hi Admin,

I got it to work & it works very well on my Blackjack.

In case anyone wants to set up MagiCall so that an incoming SMS rings a sound at regular intervals, here is the exact procedure I followed:

1. Press [New] to create a new rule.
2. Enter a rule name.
3. Select [SMS] as the rule type.
4. Select the [All] filter type. One can alternatively select a specific number or other setting.
5. The Phone # field will be grayed-out if [All] was selected in step 4.
6. Set Action1 as [Normal].
7. Set Action2 as [Launch application].
8. In the App path do the following:
8.1. Press [Menu] and the press [3].
8.2. Scroll down to Other Programs and press [Menu] and then [2].
8.3. Scroll down to Windows and press the Enter button on the device to enter the Windows directory. Note: Do not press the OK menu option as this will take you back to step 8.
8.4. Scroll down to RunApp.exe and press [Select].
8.5. Scroll down to RunApp.exe and press [OK].
9. In the Params filed you need to add the time and repeats and Admin suggested as follows:
9.1. In the Params find a wav file on your device in the same way as in step 8.
9.2. Add a space and then the time interval and another space and the number of repeats the sound must play. MagiCall puts the path in apostrophes. Pick a sound that is short, e.g. 2 seconds so that it will not interfere with the time. If you choose a wav file for example the type of file must be associated with a player e.g. Windows Media Player. This is what the syntax would look like for a wav sound file I placed in the My Documents\Sounds directory that plays every minute for 2 hours: "\My Documents\Sounds\bell.wav" 60 120
10. Set the Between start [time] and the and end [time].
11. Set the On [days].
12. Select the notice types and [Save].

When an SMS is received with these settings, MagiCall will play the wav sound every minute until the RunApp is stopped. To stop it go to the Task Manager and stop RunApp. The next time an SMS is received, MagiCall will activate RunApp.exe again which in turn will activate Windows Media Player that will play the wav file.

I think this method could be a bit irritating for someone that receives many SMS's but for someone that receives only a few a week and you don't want to miss them it may be Ok.

Thanks a lot for your help Admin.

Ed
Logged
Ed
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #7 on: January 16, 2008, 07:58:03 am »

Hi Admin,

Here is a future feature idea I have as a result of using the RunApp application to play a sound:

Let MagiCall initially filter for SMS's and then secondly monitor the Inbox for unread messages and ring/play a sound which stops playing once all the Inbox items are unread.

Ed.
Logged
admin
Administrator
Hero Member
*****
Offline Offline

Posts: 1188


View Profile
« Reply #8 on: January 17, 2008, 03:34:09 pm »

Good idea. I will improve it when I have free time.  Smiley
Logged
Pages: 1   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!