Roaming Comes Back On After Reset - Mogul, XV6800 General

I'm near the border lately and my phone keeps going into roaming on a different carrier. I turned off roaming but it keeps going back to automatic after a reset. Is it possible to permanently disable roaming?

I played around with QPST to try to disable roaming with no luck. Finally I wrote a VERY rough MortScript that will do it.
Anyone else notice with Mortscript that WaitForActive seems to do nothing? Maybe I'm using it wrong.
Anyway, here's my script. I have it a shortcut to it in my Startup folder.
Code:
ShowWaitCursor
sleep( 30000 )
Run( "cprog.exe" )
WaitForActive( Phone, 90 )
sleep(2000)
SendRightSoft()
sleep(100)
SendUp()
sleep(100)
SendUp()
sleep(100)
SendUp()
sleep(100)
SendCR()
sleep(2000)
SendUp()
sleep(100)
SendUp()
sleep(100)
SendRight()
sleep(100)
SendDown()
sleep(100)
SendDown()
sleep(100)
SendDown()
sleep(100)
SendTab()
sleep(100)
SendTab()
sleep(100)
SendCR()
sleep(500)
SendUp()
sleep(100)
SendCR()
sleep(100)
SendOK()
sleep(1000)
SendOK()
WaitForActive( Phone, 90 )
sleep(5000)
Minimize( Phone )
HideWaitCursor
The huge sleep at the beginning is to wait for the phone to completely boot up since it does wonky things if I leave that out.
If anyone has a more elegant way of doing this, please let me know! This is a horrible hack job and I know it

Related

QiD: ActiveSync Toggle, and Bluetooth + profile Toggle

Quick and dirty;
i hated starting ActSync, -> tools -> Options -> Options -> uncheck 'When craddled' Eneble PC sync '...'
Everytime i had to change is, or Tomtom would not work, and i would see a Qtec trying to sync with my car !
So i made a quick, and not so dirty mortscript/mortrunner batch :
This is for the MDA 2/XDA2/Qtec 2020
Cut here
---8<-------------------------------------------------
Code:
Errorlevel Syntax
If regKeyEqualsDWord HKCU, ControlPanel\Comm, AutoCnct, 5
if question AutoActiveSync is On. Switch Off ?, ActiveSync when cradled
RegWriteDWord HKCU, ControlPanel\Comm, AutoCnct, 0
Else
Exit
Endif
Else
if question AutoActiveSync is Off. Switch On ?, ActiveSync when cradled
RegWriteDWord HKCU, ControlPanel\Comm, AutoCnct, 1
Else
Exit
Endif
---8<-------------------------------------------------
Save as toggleASync.mortrun or toggleASync.mscr and sitck it somewhere on the qtec and create a shortcut to it, install Mortrunner/Mortscript and assign a HW button to the shortcut, or add it to a Today launcher
Did the same for switching BT + profile on off..
Please test, since it don't work on my Qtec, i have BTTools installed
---8<-------------------------------------------------
Code:
Errorlevel Syntax
If regKeyExists HKCU, Software\PBT, PreferredAudioDevice
Message "BTTools is installed, Use it's TodayPlugin instead!", ToggleBT
Exit
Endif
If regKeyEqualsDWord HKCU, Software\Microsoft\Bluetooth\Settings, ScanMode, 1
if question Bluetooth is On. Switch Off ?, ToggleBT
RegWriteDWord HKCU, Software\Microsoft\Bluetooth\Settings, ScanMode, 0
RegWriteDWord HKCU, Software\HTC\BTProfile, On, 0
Else
Exit
Endif
Else
if question Bluetooth is Off. Switch On ?, ToggleBT
RegWriteDWord HKCU, Software\Microsoft\Bluetooth\Settings, ScanMode, 5
RegWriteDWord HKCU, Software\HTC\BTProfile, On, 1
Else
Exit
Endif
exit
---8<-------------------------------------------------
Save as ToggleBT.mscr or .mortrunner etc....

Turning BT off/on w/ mortscript

I am trying to create a script that checks the BT state and then turn on/keeps on the BT then start a program (landscaper-->google maps) and then when the program terminates it returns the BT state that it was before starting the script...
the programs are
Program Files\BlindLemon\BTToggle.exe
Program Files\Landscaper.exe or \Windows\Start Menu\Programs\Landscaper.exe
Program Files\Googlemaps\googlemaps.exe
I have part of the script but I need the BT part. Here is what I have
Rotate(90)
Run( "\Window\Start Menu\Programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Rotate(0)
And This portion Works fine.. just looking for the BT component
If anyone has experience with this or has a similar script let me know
Thanks..
__________________
You couldn't fool your mother on the foolingest day of your life even if you had an electrified fooling machine!
I saw him once. Sure I'm blind in one eye, and my other eye was infected that day from picking at it, and I was tired, and I'd been swimming in a pool with too much chlorine, and that was the hour my glasses were at Lenscrafters but I seen that fish!
bluetooth toggle
i just found this little app that toggles BT state when called. i mapped it to an icon in my program launcher/today screen to toggle BT on and off with the push of a button. I believe I found it on the forums here, but can't remember - it was late. Hope this helps.
Thanks, but I already have a BT Toggler app, (BlindLemon\BTToggle.exe) What I need to know is how to read the BT status, and then either turn the BT on or execute the program.
I need to know how to have Mortscript read the BT status also I cannot figure out the if/then part
Figured It out...
This script is for
1. Check the BT state and turn on if off (using a simple BT toggler program located HERE....and turn off when program is exited
2. Rotating the screen to 90º (So Keyboard will be Functional)
3. Keeping the screen rotated at 90º even if switched to portrait (this is achived with the program called Landscaper)
4. Running Google Maps
5. Returning everything (BT Status/Rotation) to state prior to executing the script
Of course you can change any of the programs to suite your needs..
Here is the Script I used
B = RegRead ("HKLM", "Software\oem\bluetooth\" , "BTcomstatus" )
If ( B = 0 )
Run( "\Program Files\BlindLemon\BTToggle.exe" )
Rotate(90)
Run( "\windows\Start Menu\programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Run( "\Program Files\BlindLemon\BTToggle.exe" )
Rotate(0)
Else
If ( B = 1 )
Rotate(90)
Run( "\windows\Start Menu\programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Rotate(0)
Here is the BT monitoring part
0 is BT off
1 is BT on
B = RegRead ("HKLM", "Software\oem\bluetooth\" , "BTcomstatus" )
If ( B = 0 )
run( "Prorgam path for BT toggler such as BlindLemon's BTTolgger" )
runwait( "Insert your program path here" )
run( "Prorgam path for BT toggler such as BlindLemon's BTTolgger" )
Else
If ( B = 1 )
run( "Insert your program path here" )

MortScript command for WaitFor"In"active? (for hiding & showing today bars)

MortScript command for WaitFor"In"active? (for hiding & showing today bars)
So vjtottletodayIIalpha can hide the task bar, but since we use the task bar quite often so this is my idea:
A mort script that can execute the vjtoggle program when today shows up, and kill the program when the screen is occupied by other programs.
Can this be done? Any help? Please~~~?
Sorry for my bad english, I'll try to make it clearer:
Ok, so this probably doesn't sound very interesting for most people, but last night I did some digging and finally figured something out and it feels good.
But I STILL NEED HELP!
Anyone can tell me if there's a command that can achieve something like WaitForActive("AnyProgramButDesktop",-1) ?
I would really appreciate it!!!!!
The below script is what I have so far:
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "SoftKeySize",26 )
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "StartSize",26 )
Run ( "\Program Files\vjtoggletodayiialpha.exe" )
Sleep( 2000 )
If ( wndActive( "Desktop" ) )
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "SoftKeySize",0 )
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "StartSize",0 )
Run ( "\Program Files\vjtoggletodayiialpha.exe" )
Else
WaitForActive("Desktop",-1)
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "SoftKeySize",0 )
RegWriteDWord ( "HKLM", "Software\VJTodayToggle\", "StartSize",0 )
Run ( "\Program Files\vjtoggletodayiialpha.exe" )
EndIf
Click to expand...
Click to collapse
Im actually lost about what your trying to achieve?
vijays toggletodayIIalpha just hides your soft button taskbar on the today screen. It comes back up in any other screen/program you launch.
Actually the program hides top & buttom bars, but when in other program only the buttom bar comes back, not the top bar. So what I wanna do is to make a script that detects whether the screen in occupied(active) by desktop/other apps, and hide/show the bars. Is it more obvious now? Sorry for my bad English

kill and start processus when screen off

Hi,
Already , sorry for my english
I would like to make a script which kills a process when the screen is off and start process when screen is on , If possible with mortscript.
With windows mobile 6.5
I looked everywhere, I did not find
Thx very very very much
Yannis
Try this:
ProcessToKill="XYZ.exe"
While(ProcExists("device.exe"))
If(0=RegRead("HKLM","System\CurrentControlSet\Control\Power\State\BackLightOff","bkl1:"))
#
#backlight is off
If(ProcExists(ProcessToKill))
Kill(ProcessToKill)
EndIf
Else
#
#backlight is on
If(NOT ProcExists(ProcessToKill))
Run(ProcessToKill)
EndIf
EndIf
#
#yield
Sleep 1000
EndWhile
Try this:
ProcessToKill="XYZ.exe"
While(ProcExists("device.exe"))
If(0=RegRead("HKLM","System\CurrentControlSet\Control\Power\State\BackLightOff","bkl1:"))
#
#backlight is off
If(ProcExists(ProcessToKill))
Kill(ProcessToKill)
EndIf
Else
#
#backlight is on
If(NOT ProcExists(ProcessToKill))
Run(ProcessToKill)
EndIf
EndIf
#
#yield
Sleep 1000
EndWhile

[Q] How to start connection setup via MortScript

Hello,
I have a dualsim dapter and I want to configure my Phone for each SIM with a mort script because I hate to wait for the automatic detection of Connection Setup and then I have to press additionally 2 buttons ...
Can someone tell me how to force ConnectionSetup.exe to switch immediately to O2 settings or T-Mobile settings?
Thanks
I had a script doing the commands for "network wizard" a long time ago.
Code:
If( FileExists( "\windows\NetworkWizard.exe" ))
Sleep( 10000 )
Run( "\windows\NetworkWizard.exe" )
WaitForActive( "Network Wizard", 30 )
Sleep( 1000 )
SendCR
Sleep( 1000 )
SendKeys( "UN" )
Sleep( 1000 )
SendCR
Sleep( 1000 )
SendDown
Sleep( 1000 )
SendCR
Sleep( 1000 )
SendKeys( "A" )
Sleep( 1000 )
SendCR
Sleep( 1000 )
SendLeftSoft
Sleep( 1000 )
SendLeftSoft
Sleep( 1000 )
SendLeftSoft
EndIf
@RoryB
Thansk for the script, I will try to adapt it and at least I have an igea how it could work.
Great !
I cannot get it working.
The reason is if I open the ConnestionSetup.exe I have to choose from 2 drop down menus. I did not find a solution to choose the right value.
Homer-S said:
I cannot get it working.
The reason is if I open the ConnestionSetup.exe I have to choose from 2 drop down menus. I did not find a solution to choose the right value.
Click to expand...
Click to collapse
You could use MouseClick(x,y) where x,y are the coordinates of the drop down menu you want to select, then use SendKeys("??") where ?? is the first few letters of the item in the list under the drop down menu you want to select.
See the wiki for how to get the x,y coordinates.

Categories

Resources