hi
I am looking for a script or tool that will activate the wlan-option when ActiveSynch is connected? To save power, this tool should also disconnect wlan when AS is stopped. Someone knows already some tools for that?
or is it possible to get n toggle-button option for wlan as softkey?
thanks
Use this wifi toggle and assign it to a soft key with SoftKey manager.
If you install mortscript a fairly simple script can be written to toggle wifi on and off with an activesync connection. I have written a similar one to toggle wifi on automatically when I open pocket internet explorer or the Network plugin and off when I close them.
hello,
yes i am already using mortscript (to set the registry key showsim = 0). i tried to find the wlan-toggle-key in the registry to turn it on and of, but i didn't find it. and also i don't know how to get the activsync status...
thanks for your toggle-sricpt, i will use it for the first time...
Changing registry values to turn hardware on or off using mortscript does not work. That's why you need to get mortscript to run the toggle I attached.
Try this script
-----------------------------------------------------------------
VariableValue = 0
While (1)
#Detect for USB connection
SyncState = RegRead("HKLM", "System\State\Hardware", "Cradled")
If (SyncState = 1 && VariableValue = 0)
#Turn on Wifi
Run "Path to\Wifi_on-off.exe"
VariableValue = 1
EndIf
#Detect for USB disconnection
SyncState = RegRead("HKLM", "System\State\Hardware", "Cradled")
If (SyncState = 0 && VariableValue = 1)
#Turn off Wifi
Run "Path to\Wifi_on-off.exe"
VariableValue = 0
EndIf
Sleep 2000
Endwhile
-----------------------------------------------------------------
Remember to place the script or a link to the script in your Windows\Startup folder
works perfect! thanks!
neomagik said:
Changing registry values to turn hardware on or off using mortscript does not work. That's why you need to get mortscript to run the toggle I attached.
Try this script
-----------------------------------------------------------------
VariableValue = 0
While (1)
#Detect for USB connection
SyncState = RegRead("HKLM", "System\State\Hardware", "Cradled")
If (SyncState = 1 && VariableValue = 0)
#Turn on Wifi
Run "Path to\Wifi_on-off.exe"
VariableValue = 1
EndIf
#Detect for USB disconnection
SyncState = RegRead("HKLM", "System\State\Hardware", "Cradled")
If (SyncState = 0 && VariableValue = 1)
#Turn off Wifi
Run "Path to\Wifi_on-off.exe"
VariableValue = 0
EndIf
Sleep 2000
Endwhile
-----------------------------------------------------------------
Remember to place the script or a link to the script in your Windows\Startup folder
Click to expand...
Click to collapse
Hi neomagik,
Can you perhaps provide me with that script you have written please?,i don't know how to write scripts ...
Related
Hi All,
I used aWizard to read out my Wizard's ExtRom, but do not know how to write it back.
I want to read out the ExtRom in .nba format, I studied the aWizard , I believe since " pdocread.exe 0 0x3900000 ROM\OS.nba " can read out the os, then theoretically " pdocread.exe ??? 0xA00000 ROM\ExtRom.nba " should be able to read out ExtRom in .nba format.
I do not know about programming, can someone be kind enough to point out what the ??? in above should be.
Will the following info has some hints?
Cmd>r2sd all
***** user area size = 0x1E100000 Bytes
R2SDBackup() - Download type = 5
usTotalBlock = 1 sizeof(SDCARD_SIGNATRUE_TABLE)=512
Start address = 0x80000000 , Length = 0x800 (IPL)
Start address = 0x80000800 , Length = 0xC0000 (SPL)
Start address = 0x800C0800 , Length = 0x40000 ( )
Start address = 0x80100800 , Length = 0x280000 (GSM)
Start address = 0x4E3D4C0 , Length = 0x3900000 (OS)
Start address = 0x743D4C0 , Length = 0xA00000 (EXTROM)
Thanks a lot!
Any idea about " pdocread.exe 0 0x3900000 ROM\OS.nba "?
Is 0 the starting offset address & 0x3900000 the size of the os rom part?
I have read the info in wiki.xda-developers.com, but my programming knowledge is too bad for me to understand it!
(just for reference), i posted a detailed explanation on http://www.spv-developers.com/forum/showthread.php?t=2888
willem
can please someone from WM6 post the values of all key in the
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS
trying to solve the SD mount problem with 3.3 ...
?
please ?
thanx
Yeah of course, no problem.
(Default) (value not set) = string value
CacheDll diskcache.dll = string value
CacheSize 0x1000 (4096) = dword value
Dll fatfsd.dll = string value
EnableCache 0x1 (1) = dword value
Flags 0x44 (68) = dword value
FriendlyName FAT FileSystem = string value
Paging 0x1 (1) = dword value
Util fatutil.dll = string value
Then there's a map called Filters with submaps:
Filters:
(default) (value not set) = string value
In the map Filters is a submap called CacheFilt.
CacheFilt:
(default) (value not set) = string value
Dll CacheFilt.dll = string value
Order 0x2 (2) = dword value
--------------------------------------------------------------------------
That's the complete contents of the FATFS map.
So to summarize. The dir structure is:
HKLM->System->StorageManager->FATFS->Filters->CacheFilt.
Good luck.
thanx...
trying somthn out
Please send me this values from 3.3 ROM not the WM6!!!
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Flags
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\BufferSize
thanx !
I am using a diamond with Energy rom, very nice interface but it eat up a lot of ram.
each time i want to run my garmin i have to go to setting home and disable htc sense in order to gain enough memory.
is there any application which can automatically help me switch off sense when i launch garmin, and restart sense when i close garmin?
would appreciate if anybody can give me a idea.
thanks.
there is a script (.cab file) h**p://forum.xda-developers.com/showthread.php?t=598342
sry for ** i cant make links
this is the script (iGo-launcher.mscr), that you still have to adjust for garmin
Code:
If ( ProcExists("igo8.exe") )
Exit
EndIf
PRG=1
STR=2
# WWE
dirs[1][PRG]= "Program Files"
dirs[1][STR]= "Storage Card" [COLOR="Red"]<<<< path from you internal storage, you must edit for diamond !!![/COLOR]
# ITA
dirs[2][PRG]= "Programmi"
dirs[2][STR]= "Scheda di Memoria"
# GER
dirs[3][PRG]= "Programme"
dirs[3][STR]= "Interner Speicher"
# DUT
dirs[4][PRG]= "Programmabestanden"
dirs[4][STR]= "Opslagkaart"
# SPA
dirs[5][PRG]= "Archivos de programa"
dirs[5][STR]= "Tarjeta de almacenamiento"
lang_count= 4
lang= 0
i= 0
While ( lang=0 and i<lang_count )
i= i+1
If ( DirExists( "\" \ dirs[i][STR] \ "\" ) )
lang= i
EndIf
EndWhile
If ( lang = 0 )
Message ( "Unsupported language." )
Exit
EndIf
ShowWaitCursor
manilastate= ProcExists("manila.exe")
If (manilastate)
RegWriteDword ("HKLM","Software\Microsoft\Today\Items\HTC Sense","Enabled",0)
RedrawToday
Close(ActiveWindow())
RedrawToday
endif
Kill("Messaging_Client.exe")
Kill("fexplore.exe")
HideWaitCursor
If ( FileExists("\Windows\htcAddicts_cleanRAM.exe") )
RunWait("\Windows\htcAddicts_cleanRAM.exe")
ElseIf ( FileExists( "\" \ dirs[lang][PRG] \ "htcaddicts cleanram\htcAddicts_cleanRAM.exe") )
RunWait( "\" \ dirs[lang][PRG] \ "htcaddicts cleanram\htcAddicts_cleanRAM.exe" )
ElseIf ( FileExists( "\" \ dirs[lang][STR] \ dirs[lang][PRG] \ "htcaddicts cleanram\htcAddicts_cleanRAM.exe") )
RunWait( "\" \ dirs[lang][STR] \ dirs[lang][PRG] \ "htcaddicts cleanram\htcAddicts_cleanRAM.exe") )
EndIf
RunWait( "\" \ dirs[lang][STR] \ "iGO8\igo8.exe" )
Sleep(5000)
Kill("Repllog.exe")
While ( ProcExists("igo8.exe") )
IdleTimerReset
Sleep(500)
EndWhile
If (manilastate)
ShowWaitCursor
RegWriteDword ("HKLM","Software\Microsoft\Today\Items\HTC Sense","Enabled",1)
Run("\windows\manila.exe")
HideWaitCursor
RedrawToday
endif
it works perfect for igo8.
I hope I could help you a bit and sorry for my english, am from germany
bye
I've tried rooting my lg 4xhd for a few days but every time I try it it just says:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
DON'T TOUCH THE DEVICE OR UNPLUG WHILE ROOTING!
PUSH FILES
failed to copy 'busybox' to '/data/local/busybox': No such file or direc
failed to copy 'su' to '/data/local/su': No such file or directory
failed to copy 'Superuser.apk' to '/data/local/Superuser.apk': No such f
irectory
- exec '/system/bin/sh' failed: No such file or directory (2) -
read NV size = 4, offset = 0
read NV ret = 4
read NV offset = 0, message = (0)[0]
check_LGE_official: nvdata_buf = , , .
check_LGE_official: enable_root = 1
- exec '/system/bin/sh' failed: No such file or directory (2) -
read NV size = 4, offset = 0
read NV ret = 4
read NV offset = 0, message = (0)[0]
check_LGE_official: nvdata_buf = , , .
check_LGE_official: enable_root = 1
- exec '/system/bin/sh' failed: No such file or directory (2) -
read NV size = 4, offset = 0
read NV ret = 4
read NV offset = 0, message = (0)[0]
check_LGE_official: nvdata_buf = , , .
check_LGE_official: enable_root = 1
- exec '/system/bin/sh' failed: No such file or directory (2) -
read NV size = 4, offset = 0
read NV ret = 4
read NV offset = 0, message = (0)[0]
check_LGE_official: nvdata_buf = , , .
check_LGE_official: enable_root = 1
- exec '/system/bin/sh' failed: No such file or directory (2) -
read NV size = 4, offset = 0
read NV ret = 4
read NV offset = 0, message = (0)[0]
check_LGE_official: nvdata_buf = , , .
check_LGE_official: enable_root = 1
REBOOT
/system/bin/sh: can't create /data/local.prop: Permission denied
AGAIN REBOOT
AGAIN!?
mount: Operation not permitted
mount: Operation not permitted
/system/bin/sh: can't create /system/xbin/busybox: Read-only file system
Unable to chmod /system/xbin/busybox: No such file or directory
/system/bin/sh: /system/xbin/busybox: not found
/system/bin/sh: busybox: not found
/system/bin/sh: busybox: not found
Unable to chown /system/xbin/su: No such file or directory
Unable to chmod /system/xbin/su: No such file or directory
Unable to chmod /system/app/Superuser.apk: No such file or directory
rm failed for /data/local.prop, No such file or directory
rm failed for /data/local/tmp, Permission denied
failed on '/data/local/tmp.bak' - No such file or directory
Now I am not really an expert with complicated stuff but I DID install all the drivers properly. It would be nice if someone could help me in a awnser that I can hopefully understand. Thanks in advance
As the log implies quite clearly, it isn't finding the files to push
Check out you have all required files and that you unpacked everything correctly in proper directories
Okay, I'm trying to make parse a json file with a JavaScriplet.
I'm going through and pulling out data based on if a specific data set of the json matches a specific word in an array.
For example,
var arr = parsed data
For i = 0 to end
If arr.data.wall.color = "Red" var wallname = arr.data.wall.name
So if I do it like that, it works great. But I want to be able to put a variable in there. If I do this, it works:
var colorname = "Red"
var arr = parsed data
For i = 0 to end
If arr.data.wall.color = colorname var wallname = arr.data.wall.name
Obviously a local variable. But I want to use a Global variable... one I've already set in a different task. So in task 1 I set ColorName = "Red"
And then in task 2:
var arr = parsed data
For i = 0 to end
If arr.data.wall.color = ColorName var wallname = arr.data.wall.name
...which doesn't work. I read else where that you need to use global() to access global variables in Scriptlets, but trying that doesn't work:
If arr.data.wall.color = global(ColorName) var wallname = arr.data.wall.name
Nor does adding the percent sign anywhere seem to work. Any ideas what I'm doing wrong?
I'm fairly certain the format is: global('VarName')
So if you were doing a JSON read from data returned in the global %HTTPD variable: JSON.parse(global('HTTPD')).current_observation.icon
Try using the apostrophe's like: global('ColorName')