Hi !
Is there any solution for verify if headset is connected ?
I have tried MortScript but there is no functions ...
Who knoes ?
I have search where is located the "state" of headset :
[HKLM\System\State\Hardware], in the value "Headset"
Find in this topic : http://forum.xda-developers.com/showthread.php?t=264308&highlight=detect+headset
I want to kill a program if this value change.
So how can i create an application launched at Windows Startup and continu verifying always ?
Use a mortscript to monitor the registry setting every few seconds/minutes, and execute your kill app (I wrote one, on my website), although mortscript can probably kill apps itself.
V
If i write a script for execute by MortScript, this script will be executed ONE TIME ... when i "click on it" ... and after it close ...
Or, with an other MortScript, i start my program and i verify my registry ... and if the condition is ok, it will kill the program ... and if i wan't to restart this program, i must relaunch my script ...
Is it possible ? does the MortScript will be able to launch an EXE and continu waiting/monitor registry (my EXE is running) and when the reg change, it kill the apply and finish the script ?
Related
Hello.
I have installed the IIWPO (theft protection) program manually (not in ROM) for testing purposes. After uninstall an error message appeared periodicaly. The error txt is "Cannot execute \windows\IIWPO_main.exe". Also I can not find any reference to this file in the registry (maybe faulty registry editor, PHM ?) or in the startup folder. Also tried searching in the file contents on entire device. No success. Please, help, this error message is pissing me off
might be late, but...
I had the same problem. It seems that the IIWPO_startup.exe writes an additional string somewhere (*.dll?) which forces the program to start. Btw. this means that it is not necessary to put it into the AutoStart directory, it should be enough to open it just one time after the installation.
Until someone finds the destination of this string there is a simple work around: just put a program file you always like to execute at startup (e.g. ClearTemp.exe) into your windows directory and rename it to IIWPO_main.exe. This will help :wink:
p.s. hexediting of the startup and main.exe does not solve the above mentioned problem but gives your iiwpo files and registry settings the desired personal touch to remain undiscovered
I uninstall my IIWPO easily. All you need is to reverse all the steps you followed during installation.
Remember to delete the line from config file in extended rom followed by a hard reset
Of course a HARD RESET will also solve the problem :lol:
I'm having this same problem....any solution yet??????
The reason for this is in the windows registry there is still a link to the program causing it to start. Use a program such as memaid which will find all dead links and delete them i had a problem similar to this with another program. Memaid solved it for me, hope it works for you also
The reason for this is in the windows registry there is still a link to the program causing it to start. Use a program such as memaid which will find all dead links and delete them i had a problem similar to this with another program. Memaid solved it for me, hope it works for you also
Thanks for the advice.........
unfortunately.............I tried memaid...........but it didn't solve the problem.....
anyone else?
Registry key location would be somewhere like HKLM to startup applications. Hard reset will definitely solve your problem.
Do check out www.cartystudios.com
smartskey doesn't seem to be reading my ini. I'm editing the file in notepad, saving as unicide, and transferring back to my device using activesync. am I missing something?
thanks in advance..
-s
Per the .ini-
[MAIN]
; set LSKEY to 1 if you want to override Left Soft Key (DEFAULT 1)
LSKEY=1
; set RSKEY to 1 if you want to override Right Soft Key (DEFAULT 1)
RSKEY=1
; set VOLKEY to 1 if you want to override Volume Key (DEFAULT 1)
VOLKEY=1
; set CLOSEAPP to 1 if you want to close app instead of hide (DEFAULT 0)
CLOSEAPP=1
; set STARTONREBOOT=1 to 1 if you the program to be start automatically during
; reboot, use with RSKEY (DEFAULT 0)
STARTONREBOOT=1
; set VOLUMEONPHONE=1 if you want to set volume using volume key in phone app
; use with VOLKEY (DEFAULT 0)
VOLUMEONPHONE=1
; set OMAPCLOCK to the clock if you want to use omapclock and automatically
; set the clock speed after wakeup, you should put OmapClock.exe in the same
; directory of smartskey.exe
;OMAPCLOCK=264
;REMOVEDUPSDDAEMON=0
;STARTMENUMETHOD=0
; if you set CLOSEAPP to 1, the program will hide the following
; apps (by title) instead of closing. Other apps will be closed.
; maximum can set 16 apps
[EXCEPTIONLIST]
APP00=Text Messages
APP01=Outlook E-mail
APP02=Hotmail
APP04=MMS
APP05=Contacts
APP06=Calendar
It's confusing, at the top is says change closeapp to 1 if you want to close app and at the bottom it says if you set closeapp to 1, the program will hide...???
Also it says if you set OMAPCLOCK to a number and have it in the same folder as OMAPCLOCK.EXE then it should start it on a wakeup. It doesn't...
Don't know about the overclocking parameters, but the .ini content is quite logically:
with closeapp=1 you tell it to close any application by default. To *exclude* applications from that behaviour (like phone for example), you have to list it under the exceptionlist. So those Applications won't be closed, but hidden.
For Omapclock to load on startup you have to remove the ";" before the line OMAPCLOCK=### in the .ini file. Instead of the ### you enter the number of mhz you want. By default it's 264 i believe but i set it to 240 because that is more stable.
When you don't have a ";" before the line CLOSEAPP=1, all programs wil be shut down EXECPT the programs mentioned on the bottom, which will be minimized. This list of programs on the bottom (APP00 till APP07) can be edited. You can remove programs from this list (or just put ";" in front of it) and add programs to it, you can number ahead with APP08= upto APP16=.
The question remains...
Ive got the same problem, smartskey will not read the inifile at all. None of the changes there takes effect.
there can be a problem in the way you edit and save your .ini file on your mobile. I edit and save it using Total Commander: http://ghisler.fileburst.com/ce/tcmdpocketarm.exe I have no problem whatsoever. What you could try to do is to delete all smartkey files from your mobile and redownload them to your mobile, then edit the .ini file using Total Commander.
How would we totally know if the INI file is being read? Would using the soft buttons do?
I'm having the same problem with the ini file not being read. I had this problem last week and solved it by deleting the whole SmartSKey folder including omapclock.exe and then reinstalling. It was running fine aside from not overclocking omap after wakeup, then this morning, nothing. I will reinstall it again but I'd like to know why it keeps faulting.
It's ok for me.
I've put the smartkey folder(including omapclock.exe) in device memory and copy a shortcut to the startup folder.
each time i modify the .ini file and change the omapclock param. from 180 to 240 or vice versa, after a softreset, i can check with omapclock that the freq. DO change as i needed.
1-2tje said:
there can be a problem in the way you edit and save your .ini file on your mobile. I edit and save it using Total Commander: http://ghisler.fileburst.com/ce/tcmdpocketarm.exe I have no problem whatsoever. What you could try to do is to delete all smartkey files from your mobile and redownload them to your mobile, then edit the .ini file using Total Commander.
Click to expand...
Click to collapse
I was having this same problem, and then discovered that everytime I see this problem (usually when I soft reset and find that Smartskey has not automatically started as it should according to the settings in the .ini file). When I go to check the .ini file, it find that the file is empty. Is there a solution or reason for this strange behavior?
Below is the direct quotation form the ini file (first line):
; INI FILE MUST BE SAVED IN UNICODE, PLEASE USE NOTEPAD TO EDIT IT
May is help.
Hi,
I've been having a similar prob and found that Smartskey was happy when I put it in its own folder (just the exe and ini).
HTH
//Adam F
Hi!
Someone know how can I terminate irtanting message:
"The file "PocketClock.exe" cannot be opened. One of its components cannot be found ..."
This message obtain in:
a) Eatch time when I soft reset my MDA Pro,
b) Sometime after 1 min.
I was deinstal PocketClock application: In PocketClock application i have enable Screen Saver antil 1 min.
Help.
Thanx in advantage!
divi said:
I was deinstal PocketClock application: In PocketClock application i have enable Screen Saver antil 1 min.
Click to expand...
Click to collapse
Have a look in the windows/autostart folder.
Maybe there is still a link left after de-installation
Andreas
"Have a look in the windows/autostart folder" :
I cannot found this folder ....
It is maybe in registry ?
Whitch and where in HKEY_....?
Someone maybe know that!
Thanks in advantage
The directory you are looking for is "/Windows/StartUp"
If you can't find it in there you can check through the registry for any reference to this application and remove it using any good registry editor (Resco File Explorer is my personal favourite).
PReDiToR said:
...you can check through the registry for any reference to this application and remove it using any good registry editor (Resco File Explorer is my personal favourite).
Click to expand...
Click to collapse
In \Windows\StartUp I have not PocketCalc.exe
I founded it in registry:
\HKEY_LOCAL_MACHINE\SOFTWARE\MEGASOFT2000\PocketClock\
and I deleted \PocketClock\ all.
Now all is good. TY
I changed registry file per exe file.Word "exefile" I changed with "jpgpicture".My telefone now is blocked !Active sync no work! How change again registry?
Thanks! My telephone is htc s 310.
Why did you do this???
If activesync is not working (did you try soft reset?) you must have changed more than just a file reference.
In any case you can try this:
Download PHM Registry Editor as cab installation
Copy to SD/mini/micro using card reader.
Install to device and use the program to change registry back.
If tis does not work your only choice is hard reset but you will loose all your data.
I have install regedit in my mobile.
I did this because not could download file with extension wich not have program for open this,
For example... no could download file zip if not have unzip program install in my mobile!
How do soft reset? Because when push button(taste) frontale for shown my mobile show:
"There is no application associated with "fexplore".Run the application first and then open this file inside the application"
Or when push Start taste shown:
"There is no application associated with "appman".Run the application first and then open this file inside the application"
Or when push button for camera,mobile shown:
"There is no application associated with "Camera".Run the application first and then open this file inside the application"
And sometimes shown "Cannot execute repplog.exe"
Thanks and forgive for my bad language!
Again thanks!
There should be a hardware button combination to preform hard reset.
Unfortunately I don't know what it is for your device. I recommend you check the manual or look in the WiKi.
Make sure you repost your q to http://forum.xda-developers.com/forumdisplay.php?f=341 . I'm not moving the thread because there may be other S310 users lurking here too.
Hello,
I installed OziCe in my GPS Invion (wince 4.2 loaded from SD card). It
works fine but, every time I turned on the GPS, OziCE asks to re-enter
the registration code. All the other configuration are correctly
reloaded, togheter with last used map.
No problem exiting and restarting OziCE, when the GPS remains active.
It seems that OziCE saves the registration code in same 'volatile'
memory, not flashed at hard shutdown.
I tried to check the registry, comparing them with remote tools before
and after starting OziCE, but I foung nothing.
Does anyone know a way to solve or workaround the problem?
Thanks, Filippo
Found a solution
Hello,
for who may be intersted, I found a way to workaround the issue writing a MortScript (download the interpreter and instructions from http://www.sto-helit.de/).
This is the script I wrote; obviously you have to change the OziCE username and password and the path to OziExplorerCE.exe.
After insatalled and registered MortScript, copy the script in a .mscr file in the device. Executing the script would start OziCE inserting the registration code (if needed).
Ciao.
#OZI CE start
regName = "MyOZICeUserName"
regKey = "MyOZICeRegistrationCode"
WindowTitle="Inserisci Codice di Registrazione"
EngWindowTitle="Enter Registration Code"
OKWindow="OziExplorer"
ozipath = "\SDMMC DISK\WINCE\programfile\ozi_1.12.3\COMMON\OziExplorerCE.exe"
nLoops = 200
Run(ozipath )
#WaitFor(WindowTitle, 5) #returns timeout error if not found...
i=0
While ((ActiveWindow() ne WindowTitle AND ActiveWindow() ne EngWindowTitle) && i<nLoops)
Sleep(50)
i=i+1
EndWhile
if (WndActive(WindowTitle)=1 OR WndActive(EngWindowTitle)=1)
actWin = ActiveWindow()
SendKeys(actWin, regName)
SendTab(actWin)
SendKeys(actWin, regKey)
SendCR(actWin)
#WaitFor(OKWindow, 5)
i=0
While (ActiveWindow() ne OKWindow && i<nLoops)
Sleep(50)
i=i+1
EndWhile
if (WndActive(OKWindow)=1)
SendOK(OKWindow)
EndIf
EndIf
using mortscript to enter OZICe on a windows CE 4.2 device
Filippo, nice work!
That mortscript you wrote works a treat on my navigation box.
I was unable to work out how to do a cab instal of mortscript. My navigation box won't start .cab files. So I need to run the bin:version of mortscript first for the Device binaries (whatever that means) and then I can run your mortscript. Love watching mortscript typing in my name and code.
OziCe now asks for ECW.dll - where does that file come from and where should it be? in windows? in storage card root? in oziexplorer folder on storage card? in nandflash?
OziExplorerCE: Preventing registration key reset turning off the GPS
Please apologize warming up this thread, but thought I'ld share my solution here.
1. OziExplorer stores user-registration data in file named 'gihobj.dll' in OS's folder \Windows.
2. Hence you backup once this 'gihobj.dll' , then always copy it to \Windows before you start OzExplorer.
I suggest to use a wrapper script as following to start OziExplorer:
Code:
#OziExplorer Launcher
#This script must be located in OziExplorer's installation folder
#or you have to alter the OziExplorer 'ozipth' below!
Local()
ozipth=SystemPath("ScriptPath")
oziexpl="OziExplorerCE.exe"
regdata="gihobj.dll"
winregfile="\Windows\"®data
bkupregfile=ozipth\regdata
#check existence of registration data
If(FileExists(winregfile))
#OK, run OziExplorer
Run(ozipth\oziexpl)
ElseIf(FileExists(bkupregdata))
#OK, but in wrong folder, hence copy registration
#data to \Windows, then run OziExplorer
Copy(bkupregdata,winregdata,1)
#wait max. 2 secs
cnt=0
While((NOT FileExists(winregdata))&&(cnt<20))
cnt+=1
Sleep 100
EndWhile
Run(ozipth\oziexpl)
Else
#not OK, hence start OziExplorer with entering user-registration data
RunWait(ozipth\oziexpl)
#backup OziExplorer's registration data
If(FileExists(winregdata))
Copy(winregdata,bkupregdata,1)
EndIf
EndIf
HTH
OziExplorerCE: Preventing registration key reset turning off the GPS
Hello,
I have an old pda with WindowsCE 2002 installed.
Can everyone drive me applying the suggest of jwoegerbauer?
I can't find the file 'gihobj.dll' I think because I don't see the hidden files so:
1. how can I see the hidden files.
2. how can I create the script file? is it a batch file?
many thanks at all,
mimmolo
mimmolo said:
Hello,
2. how can I create the script file? is it a batch file?
mimmolo
Click to expand...
Click to collapse
All you need is MortScript: http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view&menu=29