Keep wifi connection alive in standby - HD2 General

Hi
This is work but afther soft reset system replace it:
[HKEY_LOCAL_MACHINE\Comm\BCMSDDHD1\Parms]
"HTCKeepWifiOnWhenUnattended"=dword:00000001
Any ideas how to fix it, beouse MSN and other programs start to use 3G when phone is standby.

my device keeps WiFi on even in standby out of the box. it will only shut WiFi off when I manually turn it off. it came like this out of the box.

Exactly the same for me, anyone?

I have a T-Mobile HD2 and as default wifi isn't active during standby. The registry key works but a soft reset will revert it to '0', so I wrote the following simple Mortscript and placed a shortcut to it in the /Windows/Startup folder (place the file on your device and using the file explorer copy and 'paste shortcut' into the startup folder). It works well.
You will of course need to install Mortscript for this to work.

yippee wifi stays connected
my htc hd2 outta the box stayed connected to wifi until i told it to disconnect, after installing a few programs and tweaking the reg etc and after a hard reset i noticed this wouldnt stay connected, annoying!
thanks for this little tweak you have, it works great and the only thing have found to work properly.
regards

No problem, I use it constantly and will until a ROM incorporates a fix.

profahmad said:
I have a T-Mobile HD2 and as default wifi isn't active during standby. The registry key works but a soft reset will revert it to '0', so I wrote the following simple Mortscript and placed a shortcut to it in the /Windows/Startup folder (place the file on your device and using the file explorer copy and 'paste shortcut' into the startup folder). It works well.
You will of course need to install Mortscript for this to work.
Click to expand...
Click to collapse
Thanks, I will give this a go.

Working nicely. Many thanks. Much better than the other Mortscript solution "Don'tSleep" which still drains battery because screen is on while connected.

No problem. I didn't come across the other mortscript fix and the wifi switching off was doing my head in. Glad there's a simple registry key.

Thank yo for this script profahmad.
Wich folder you mean exactly? I dont found on my System Startup (it is a german device).
Mean you AutoStart?
Best regards Theo

Copy the file to any location on your phone or storage card, then using the file explorer highlight it and select 'copy', then navigate to /Windows/Startup and paste shortcut (not simply 'paste').
Am I missing the point: is the /Windows/Startup folder not showing on your device?

Thanks for creating and sharing this script. It works great if I simply run it after startup, but for some reason it is not executing automatically on startup. I followed your instructions and have a shortcut to the script (which I stuck in My Documents) in /Windows/Startup. I installed MortScript to my device as well. I have an ATT Tilt 2. Is there something more I need to do, perhaps with MortScript, to get the script to run at startup?

juancotton said:
Thanks for creating and sharing this script. It works great if I simply run it after startup, but for some reason it is not executing automatically on startup. I followed your instructions and have a shortcut to the script (which I stuck in My Documents) in /Windows/Startup. I installed MortScript to my device as well. I have an ATT Tilt 2. Is there something more I need to do, perhaps with MortScript, to get the script to run at startup?
Click to expand...
Click to collapse
Are you sure you are putting it in the right folder? On my phone I have to put it in /Windows/Autostart.

ainatar said:
Are you sure you are putting it in the right folder? On my phone I have to put it in /Windows/Autostart.
Click to expand...
Click to collapse
Yeah, I only have the Startup folder - no Autostart.

juancotton said:
Thanks for creating and sharing this script. It works great if I simply run it after startup, but for some reason it is not executing automatically on startup. I followed your instructions and have a shortcut to the script (which I stuck in My Documents) in /Windows/Startup. I installed MortScript to my device as well. I have an ATT Tilt 2. Is there something more I need to do, perhaps with MortScript, to get the script to run at startup?
Click to expand...
Click to collapse
Disregard - appears to be user error. Works great

Can I just make sure I've got this right? You install the MortScript cab file, which then appears in the Start menu, yes? Then, is it the little Wifi zip file you have to create a shortcut to, and do you have to unzip it first?

Si6776 said:
Can I just make sure I've got this right? You install the MortScript cab file, which then appears in the Start menu, yes? Then, is it the little Wifi zip file you have to create a shortcut to, and do you have to unzip it first?
Click to expand...
Click to collapse
Yeah, install Mortscript for the functionality but you won't need to do anything with it after that. Unzip the wifi script anywhere on the device and place the shortcut in the startup folder.

That's what I did and kept getting an error message on boot up, something like, "The file 'Mortscript' cannot be opened. Either the app is not signed with a trusted certificate, or one or more components cannot be found."

Hmm. Install BSB Tweaks and enable Allow unsigned applications.

That worked, thanks. Now I have to see if it kills my battery.

Related

How to convert LNK to EXE? For key remap

I have been trying to get my HW keys remapped on the Q9 for a day now. After picking through the registry, I found a reg key that maps to the button
\HKEY_CURRENT_USER\ControlPanel\Keybd\APP2_Path
It accepts any .exe but I need to point it to a Mortscript file and that won't work. I can't even put a shortcut LNK value in there. Soon as I pop any exe in that field it works. Anybody know how to convert a LNK into an exe to trick this thing? I even tried running Mortscript.exe with the script name as a parameter but no luck. Thanks!
Looks like what I need is a basic applauncher .exe that would read the script/exe parameter from the registry or file. I have experimented some more with this registry key and it won't take anything other then a straight exe. Even quotes around the value breaks everything so I can't pass parameters around.
Mortscript comes with a file called autorun.exe. rename this file to the name of your mortscript, so if your mortscript is named 'myscript.mscr' then rename autorun.exe to 'myscript.exe'. make sure both files are in the same folder. Now when you run 'myscript.exe' it executes 'myscript.mscr'. For more information check mortscript documentation.
joemanb said:
Mortscript comes with a file called autorun.exe. rename this file to the name of your mortscript, so if your mortscript is named 'myscript.mscr' then rename autorun.exe to 'myscript.exe'. make sure both files are in the same folder. Now when you run 'myscript.exe' it executes 'myscript.mscr'. For more information check mortscript documentation.
Click to expand...
Click to collapse
i was so happy to see this fix and tried it. it appears to work about 5 times and then it stops responding. i have to reboot to get it working again. If i click on the script .mscr it works however. so something buggy in the autorun.exe. Any suggestions?
Take a look at http://www.vijay555.com
I think it's VJbrisk.exe or something like that, but I'm not sure...
There's definitely something there that can help you!
ithx i tried vbrisk but it would not install on wm6 smartphone. Any other apps that do the same?
Are your files in the same folder as 'mortscript.exe'? If not, put them there and try it. Make sure you have the lastest mortscript version.
Also, there is an old program called 'Launch Pad' by 'On Hiatus' that was developed for the HPC version of WinCE, and uses PocketC by 'Orbworks' (google both). You can use it to create .EXEs that work like .lnk files.
It works fine on my WM6 Wizard PPC, don't know if it will work on a Smartphone, but it's worth a try if the above doesn't work.
Another thing you could try is to extract the VJbrisk.exe from the cab file and manually transfer it to your device, then see if it works.
Yah they are in the same folder and named the same. I moved it al into the root. It appears to work for a couple hours, then dies and requires reboot. Otherwise it does the trick nicely. Mortscript is great!

How To Replace Long Press Power Button Shutdown App With PsShutXP

Orig title:How Do I Remap Power To An App On My Mogul
I want to replace my long press power button application with psshutxp. I tried to edit the registry, rename the link to long_press etc..., map key 00EC and nothing.. Need help...
I did download aebplus but it fights with the default shutdown app..
i'm running WM6.1 on my sprint mogul
Eazy
http://forum.xda-developers.com/showthread.php?t=398571
NotLutzik said:
http://forum.xda-developers.com/showthread.php?t=398571
Click to expand...
Click to collapse
Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......
If you didn’t know you could have posted that.. Well here it is..
You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.
NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.
I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.
Eazy
maybe someone can create a cab for me please ;-)
mm with diamond don't go.. any ideas?
Great idea Eazy. I'll be waiting for a cab too...
On my hermes, there is no poweroffwarning.exe, so your solution will not work on all devices.
Just had a quick look at the running tasks, and the warning comes from gwes.exe, which is the 'Graphics, Windowing and Events Subsystem'
eazy2001x said:
Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......
If you didn’t know you could have posted that.. Well here it is..
You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.
NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.
I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.
Eazy
Click to expand...
Click to collapse
Works fine on my Touch Pro.
And, if you use program like Resco Explorer, you can pass the ZIP routine, and go directly to overwriting the .exe .
works on my Trinity 6.1
very nice thank you!!!
jez83uk said:
On my hermes, there is no poweroffwarning.exe, so your solution will not work on all devices.
Just had a quick look at the running tasks, and the warning comes from gwes.exe, which is the 'Graphics, Windowing and Events Subsystem'
Click to expand...
Click to collapse
seems like you know your problem.. so run the app and make sure its the same app to shut down your phone then replace it following the process.. i never said that it will work on all devices hence the reason that i posted what phone i was using.. i am using it on my diamond as well..
if you need any more help let me know.. all i did was post a process that worked for me. if you need to use a diff exe please feel free to do so..
eazy2001x said:
seems like you know your problem.. so run the app and make sure its the same app to shut down your phone then replace it following the process.. i never said that it will work on all devices hence the reason that i posted what phone i was using.. i am using it on my diamond as well..
if you need any more help let me know.. all i did was post a process that worked for me. if you need to use a diff exe please feel free to do so..
Click to expand...
Click to collapse
I'm sorry, I certainly didn't intend to imply any criticism of your work.
For anyone else in my situation, unfortunately the gwes.exe is a vital process, which is always running, and does more than just the power off warning. As there is no standalone app for this warning in my rom, there is no exe which can be replaced.
I made a cab for the method stated.
PsShutXP_Replace.cab is just an automated way of Eazys method on the first page so check that first.
PsShutXP_Diamond.cab is the same method but with the VGA version and a diamond skin from lesteryh
Can this be undone if it doesn't work?
I think there's still the issue where it doesn't work right if you also use S2U2. not sure which ones at fault there.
Works fine on my Vogue running NSFAN's 6.1 Rom. I'm also running S2U2.
I dought the uninstall will work. If you want to go back then read Eazys post on page one and backup the file first.
eazy2001x said:
Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......
If you didn’t know you could have posted that.. Well here it is..
You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.
NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.
I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.
Eazy
Click to expand...
Click to collapse
It works!
Many thanks!
Anthony2oo5 said:
I made a cab for the method stated.
PsShutXP_Replace.cab is just an automated way of Eazys method on the first page so check that first.
PsShutXP_Diamond.cab is the same method but with the VGA version and a diamond skin from lesteryh
Click to expand...
Click to collapse
Hey.. Can I ask you to change up how your cab works.. Just to make things easy.. I have not ventured into how to make cab's yet but will soon..
User:
Install PsShutXP (QVGA/VGA)then run the (not yet created) cab
Your cab:
create a directory under \program files\PsShutXP called Backup
create a directory under \program files\PsShutXP called modfile
copy \Windows\PowerOffWarning.exe to \program files\PsShutXP\backup
copy \program files\PsShutXP\PsShutXP.exe to \program files\PsShutXP\modfile\PowerOffWarning.exe
copy program files\PsShutXP\modfile\PowerOffWarning.exe to Windows\PowerOffWarning.exe and overwrite the file.
copy \program files\PsShutXP\*.gif to \Windows\
and on your uninstall
copy \program files\PsShutXP\Backup\PowerOffWarning.exe to \Windows
This will allow the user to uninstall the program if needed.
I am also using that skin on My Touch pro but removed the text up top that says Touch Diamond.
If you could create that cab it would be greatly appreciated. Until then everyone can just follow the manual process..
Working Devices so far:
Mogul 6.1
Touch 6.1
Touch Pro 6.1
Touch Diamond 6.1
Vogue 6.1
Trinity 6.1
jez83uk said:
I'm sorry, I certainly didn't intend to imply any criticism of your work.
For anyone else in my situation, unfortunately the gwes.exe is a vital process, which is always running, and does more than just the power off warning. As there is no standalone app for this warning in my rom, there is no exe which can be replaced.
Click to expand...
Click to collapse
I'll help you out.. I don’t think gwes.exe is the right file for you to be looking at.. How about this.. It seems that when you hold down your power button you get the same type of power off warning box that we do.. How about you go into your windows directors and sort by exe. Then start clicking on each exe until you see the warning box pop up and then you will know which file shuts down your phone. That’s how I found the PowerOffWarning.exe file. Please report back...
There's a thread over at ppcgeeks that I can't find right now, but it said to just copy the psshutxp.exe and paste a .lnk in \Windows\. Then you rename the "psshutxp.lnk" to "Long_Power.lnk". This method doesn't overwrite any exe's and works like a charm on my Touch Pro.
at the time that did not work on my mogul.. if it is working for you then your good.. if it works for anyone else then they dont need to use this process.. i have not tested that on my diamond pro since this worked for me.

HELP with FingerSuite

I am currently using FingerSuite on my HTC Touch. There are two parts to the suite, one is for "menus" and the other for "pop-ups". To prevent running the program each time I had to soft reset my phone I copied the .exe file for the 'MsgBox' program (which provides a more finger friendly interface for errors that give pop-ups) and placed this in \Windows\StartUp. However, by placing the .exe file in the 'StartUp' folder the program doesn't seem to run. When a pop-up should appear (eg. for confirmation of deleting a file; Yes or No) the screen simply freezes. This, I understand, is because I should have placed the .lnk file in the 'StartUp' folder instead as it requires other files in the same folder which are missing in 'StartUp'. Unfortunately I am unaware of a way to disable FingerSuite once it is running and because of this I am unable to delete the file I have placed in the StartUp folder.
Sorry for the poor description of my problem.
Is there any way in which I can remove this file I have placed in the 'StartUp' folder? I don't want to have to hard reset my device but if there is no other way then I suppose I will have to.
Any help would be greatly appreciated!
Thanks, Alex
Nevermind, I managed to delete the file once I ran my device in Safe Mode.

[App] Execute Apps Automatically (14 Jan 10) Source Code Included

I use Sashimi alot and the only gribe I have with it is that I cannot Automatically Setup My Applications within Sashimi. I know it will run all exe files that is placed within the \Sashimi\Auto\EXE folder but it cant execute .lnk files. So this little app has three files which you simply dump in \Sashime\Auto\EXE folder.
There will be a file called Executefiles.txt
Any apps in there will be executed automatically after Sashimi is done with its installation
I use 1. Pimbackup.exe
2. Galarm
3. Audio notes
4. Magicall
Theres a config file where you can specify whether it should auto close or wait for a keypress to exit
O yes Source Code is in vs2008 used C#. Graphics aint good. But it doesnt need to be. I only spent about an hour and half on the app
aren't executable (AND lnk files) automatically executed when placing them in \Windows\Startup directory? or is this some Sashimi related thing. Whatever Sashimi is!?
RAMMANN said:
aren't executable (AND lnk files) automatically executed when placing them in \Windows\Startup directory? or is this some Sashimi related thing. Whatever Sashimi is!?
Click to expand...
Click to collapse
When you flash a new rom Sashimi is used to install al your cabs automatically and do reg imports and copy files etc. So now when you are done installing everything you obviously need to run certain apps to chage settings and this app will help you execute these apps once sashime is done installing
Have a look at sashimi here : http://www.winmo-experts.com/viewtopic.php?f=7&t=4
Forgot
Forgot to add you can even install cab files with it
ok I see. Thanks for explanation.
Thx you. Will look into it.
Thanks for the source code, now i can excute a .lnk without error.
last try fail with process.start, shellexcuteex and mortscript
vua777 said:
Thanks for the source code, now i can excute a .lnk without error.
last try fail with process.start, shellexcuteex and mortscript
Click to expand...
Click to collapse
No problem i battleded my backside of as well to get it to work. It would only execute .exe files initially but now it will do .cab .lnk and properly .html as well cause it passes it to the shell instead off trying to execute it itself. What app are you trying to write? You will see there a waitcomplete or something. if you remove that line it will start the process and still continue to run the app in the foreground. that command makes it execute the app and wait for it to finish before carying on with code. The only problem with that is if you would execute an app and minimize it then your code will wait indefinately for the app to exit before it will continue

[Q]How to launch a program at startup

hello to all
i have a exe file and i want to lauch it at every startup ....i tried to add in startup folder with app.dat but the program does not launched but it is correctly situated in startup folder ...i have to click the exe file to launch ...will anyone please help me if u have any solution ...
thanks to all
Put the .exe anywhere then try putting a link to it in the \Windows\Startup folder
NilsP said:
Put the .exe anywhere then try putting a link to it in the \Windows\Startup folder
Click to expand...
Click to collapse
thanks but this method not working ...;i have to click that program to launch
Hi,
second methode:
Code:
[HKEY_LOCAL_MACHINE\init]
"Launch50"="\\Program Files\\Your Tool\\Example App.exe"
with friendly greet
starbase64
Try to pun a .lnk instead a .exe in Startup folder (through app.dat i mean),not completly sure but i just checked my Startup folder and i can see only .lnk inside.
starbase64 said:
Hi,
second methode:
Code:
[HKEY_LOCAL_MACHINE\init]
"Launch50"="\\Program Files\\Your Tool\\Example App.exe"
with friendly greet
starbase64
Click to expand...
Click to collapse
thanks bro but still not working i tried this method..;my file is in windows
REGEDIT4
[HKEY_LOCAL_MACHINE\init]
"Launch151"="\\Windows\\notifbar.exe" .;;i have putted 151 just like that
af974 said:
Try to pun a .lnk instead a .exe in Startup folder (through app.dat i mean),not completly sure but i just checked my Startup folder and i can see only .lnk inside.
Click to expand...
Click to collapse
thanks yes i tried but not working
You may need to add a depend key for the app, and make sure it launches after everything else. If there's too much stuff going on during startup when it's trying to launch, perhaps there isn't enough available memory to get it going. Just look at the other depend keys; basically, I think you just want to list all of the processes launched in the init queue. You could also increase the delay time between launches (this might work better w/ the startup folder) from 5 seconds to 6 or 7.
Farmer Ted said:
You may need to add a depend key for the app, and make sure it launches after everything else. If there's too much stuff going on during startup when it's trying to launch, perhaps there isn't enough available memory to get it going. Just look at the other depend keys; basically, I think you just want to list all of the processes launched in the init queue. You could also increase the delay time between launches (this might work better w/ the startup folder) from 5 seconds to 6 or 7.
Click to expand...
Click to collapse
ok thanks bro will try this
One-tier versus Two-tier Devices
Windows Mobile Device Security Model
One-tier versus Two-tier Devices;
The first part of the security policy is known as access tiers; devices can have one-tier or two-tier access.
To me it seems you have a two-tier access shafizal.

Categories

Resources