| View previous topic :: View next topic |
| Author |
Message |
genomega MagicJack Newbie
Joined: 27 Aug 2009 Posts: 3 Location: Pensacola FL
|
Posted: Mon Aug 31, 2009 8:23 am Post subject: Re: What file do I edit in the instructions for "Edit C |
|
|
| cbibolet2 wrote: | There are tons of au3 files. What file do I edit when the instructions say to "Edit the Code"?
Thanks- |
Open the editor, copy and paste the code from this list that you wish to use, make the appropriate changes, then save as a .au3 file in the MJ directory.
Start MJ, use explorer and open MJ directory, right click on au3 file and click start script. Script icon should show up next to MJ icon in the task bar. Works for me.
I'm sure there is a way to have MJ call the script and run it if you care to research it. When you close MJ it kills the script also so it needs to be restarted each time.
Sorry, but I'm not much of an instructor so if anyone can improve on this please feel free. |
|
| Back to top |
|
 |
Google AdSense

|
Posted: Mon Aug 31, 2009 8:23 am Post subject: Magicjack support, tips, tricks, and hacks |
|
|
|
|
| Back to top |
|
 |
apple123 magicJack Apprentice
Joined: 16 Jul 2009 Posts: 11
|
Posted: Sat Sep 19, 2009 2:19 pm Post subject: |
|
|
There are two scripts. One created by me, and the other modified by pancho. If you follow my instructions from my original post everything will work fine. Pancho's code also works fine and requires very little editing. My code does require a bit more editing.
The difference between pancho's code and mine is that in pancho's code you have to dial "1" every time you're going to call outside you're area code. In my code you don't have to dial "1" when you want to call outside your area code. It's a matter of preference.
Either way, each of the codes will make it so you don't have to dial your own area code. I hope that clears things up.
Also, if you're not code-friendly, I will be updating my code in about 3-6 weeks to make this process simple. I'm kind of busy right now. |
|
| Back to top |
|
 |
The_1 MagicJack Newbie
Joined: 30 Sep 2009 Posts: 3
|
Posted: Wed Sep 30, 2009 5:44 pm Post subject: |
|
|
| thanks!! |
|
| Back to top |
|
 |
rlwatson MagicJack Newbie
Joined: 18 May 2009 Posts: 6
|
Posted: Thu Oct 01, 2009 12:53 pm Post subject: |
|
|
How to get this to work if i am running MJMD5??
Thanks |
|
| Back to top |
|
 |
Vicarious magicJack Apprentice
Joined: 16 Oct 2009 Posts: 17
|
Posted: Fri Oct 23, 2009 11:29 am Post subject: |
|
|
This is a great script, and it works fine if I physically go into the MJ folder and activate it. For some reason, however, when I set up a Scheduled Task in XPe on my thin client (I have an automatic reboot every morning, and the MJ script must be re-run), the task initiates as it is supposed to, but the script does not actually run, or if it runs it doesn't continue running. I still have to go into the folder to manually run the script.
Any ideas on how to tweak the different components of this setup so the script actually runs after reboot?
Thanks for your help. |
|
| Back to top |
|
 |
apple123 magicJack Apprentice
Joined: 16 Jul 2009 Posts: 11
|
Posted: Tue Jan 12, 2010 1:37 pm Post subject: |
|
|
| Sorry for the late reply. I have update the script on my end, which runs all the time and it detects when MJ crashes and restarts MJ. If you're interested on the script let me know so I can clean it up a bit. |
|
| Back to top |
|
 |
fester113 MagicJack Newbie
Joined: 09 Jun 2008 Posts: 7
|
Posted: Mon Jan 18, 2010 4:27 pm Post subject: |
|
|
Apple, please send that to me/post it.
Also, I can't seem to get this to work with MagicBlock, is that not possible? |
|
| Back to top |
|
 |
apple123 magicJack Apprentice
Joined: 16 Jul 2009 Posts: 11
|
Posted: Sat Jan 23, 2010 3:00 pm Post subject: |
|
|
| I don't really know what magicblock is. I will post the code when I'm done with it. Which should be in a few days. |
|
| Back to top |
|
 |
richman MagicJack Newbie
Joined: 18 Dec 2009 Posts: 6
|
Posted: Sun Feb 07, 2010 4:22 pm Post subject: |
|
|
| It works fine when MJ pop-up, but It ddn't work if run MJ as window services. Any idea or resolution? |
|
| Back to top |
|
 |
fester113 MagicJack Newbie
Joined: 09 Jun 2008 Posts: 7
|
Posted: Wed Feb 24, 2010 3:20 pm Post subject: |
|
|
| Apple, have you had any luck cleaning up the code? |
|
| Back to top |
|
 |
apple123 magicJack Apprentice
Joined: 16 Jul 2009 Posts: 11
|
Posted: Wed Mar 03, 2010 7:52 pm Post subject: |
|
|
lol I so forgot about this. I will do it this weekend. No Excuses.
Sorry Guys. |
|
| Back to top |
|
 |
jackiehsu97 MagicJack Contributor
Joined: 17 Jan 2010 Posts: 66 Location: Florida
|
Posted: Sun Mar 14, 2010 8:17 pm Post subject: a |
|
|
apple, if you have finished 'cleaning up' the code, could you so kindly upload it or send it to me in some form, please? I would appreciate it.
-=-=-=-Jackie-=  _________________ Thank you for stopping by, I hope I did a good job at addressing your concerns. For further concerns, please go to http://www.magicjack.com/techchat for a live representative. Thanks again! |
|
| Back to top |
|
 |
tonyk MagicJack Newbie
Joined: 18 Nov 2008 Posts: 3
|
Posted: Tue May 25, 2010 12:25 pm Post subject: |
|
|
| apple123 wrote: | lol I so forgot about this. I will do it this weekend. No Excuses.
Sorry Guys. |
Has this been done. If so I'd really be interested in seeing it.
Tony |
|
| Back to top |
|
 |
ruggb MagicJack User
Joined: 10 Feb 2008 Posts: 48
|
Posted: Wed Jun 09, 2010 11:54 pm Post subject: |
|
|
Been trying to figure this all out. Not much knowledge re scripts or MJ operation, but it appears to me that the task would be to determine how long the string is.
If StringLen = 3, then send it.
If StringLen = 10, send it.
If StringLen = 11, send it.
If StringLen = 7, prepend the local area code and send it.
But I don't know what the "*" is all about.
Can someone tell me what is wrong with my logic???
Please don't laff, but this is my first shot and I really don't know what the rest of the script does, I just copied it - and I am not sure how to test it.
==============================
$NewCall = True
While WinExists("magicJack")
Sleep(100)
$var = ControlGetText("magicJack", "", "Edit1")
if $NewCall And String($var) = 0 Then
$var = "" & $var
ElseIf $NewCall And String($var) = 1 Then
$var = "" & $var
EndIf
if $NewCall
Select
Case (StringLen($var) = 3)
Case (StringLen($var) = 10)
Case (StringLen($var) = 11)
Case Else
$var = "919" & $var
ControlSetText("magicJack", "", "Edit1", $var )
Send("{End 1}")
EndIf
If StringLen($var) > 6 Then
Sleep(500)
$NewCall = False
Else
$NewCall = True
EndIf
It would really help me if someone could explain the script
thanks |
|
| Back to top |
|
 |
DaleHohm MagicJack Newbie
Joined: 06 Aug 2010 Posts: 1
|
Posted: Fri Aug 06, 2010 11:40 am Post subject: Simpler AutoIt code |
|
|
I recently wrote something similar that does not depend on a list of area codes. Code below. You can see if this is enhanced in the future in the AutoIt forum here: http://www.autoitscript.com/forum/index.php?showtopic=118146
| Code: | ; mjAddLocalAreaCode.au3
;
; AutoIt program to add local area code automatically when
; dialing a local number with magicJack
;
; Requires Autoit from http://www.autoitscript.com
$sMyAreaCode = "111" ; Change to your area code
$iSecondsToWait = 2.5 ; Number of seconds to wait with 7 digits entered
; before deciding you are done entering numbers
; make this too short and you may still be dialing
; make it too long and mj may dial the 7 digit #
While WinExists("magicJack")
If StringLen(DialString()) = 7 Then AddPrefixIfLocal()
Sleep(100)
WEnd
Func AddPrefixIfLocal()
; Wait a configurable number of seconds and if the dial string has not
; changed, prepend the local area code to the dial string
$sStart = DialString()
Sleep($iSecondsToWait * 1000)
If DialString() = $sStart Then
ControlSetText("magicJack", "", "Edit1", $sMyAreaCode & $sStart)
ControlSend("magicJack", "", "Edit1", "{End 1}")
EndIf
EndFunc ;==>AddPrefixIfLocal
Func DialString()
; Get and return the current dial string from the magicJack softphone
Return ControlGetText("magicJack", "", "Edit1")
EndFunc ;==>DialString
|
|
|
| Back to top |
|
 |
|