Google
  Web www.gpspassion.com


GpsPasSion LIVE!

Scriptless
www.NaviBlog.com




Versions

Links/Liens




Portal/Portail
Rechercher

- del.icio.us

Polls/Sondages
Sondage
Roulez-vous avec un carburant propre ?
Oui, le SP95-E10
Oui, le E85
Oui, le GPL
Oui, électricité/hybride
Non
Voter  -  Résultat des votes
Votes : 1388




Club GpsPasSion
Soutenez le site!

USA: (US$)
EUROPE: (€)
Guide Paypal


GpsPasSion Forums
Home | Profile | Register/Enregist. | Active Topics | Search/Recherche | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 English Forums - Hardware
 Mio AIO Forums - www.mionav.com
 C310Auto.Exe - Automatic Unlock Script
 New Topic  Reply/Répondre
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 23

gpsgator

211 Posts

Posted - 03 janv. 2007 :  06:45:04  Show Profile  Reply with Quote
3/11/2007 5th release now available here http://www.gpspassion.com/upload/C310Auto.zip

Only change in 5th release is Time.reg which is updated for new daylight savings time rules.

Edited subject as search function only searches subject.

When the Mio boots it starts a program called ST.EXE. One of the first things this does is run the program \Storage Card\C310Auto.EXE if found. If not found it will continue with the normal Mio startup which in the end run MainShell.exe. ST.EXE is the program responsible for check if the Menu Key and Volume + is being held down to not start the MainShell.EXE and enable the taskbar.

Well I wrote a little scripting program that if called C310Auto.Exe and placed in \Storage Card will run when the Mio is booted. I use it to automatically unlock my Mio from a Hard Reset. It runs only after a Hard Reset since I change the StartUp of the Mio so subsequent resets don't even bother running ST.EXE. I'll be posting more details and releasing the program when I get it ready for others. Here are the commands I have so far with the command followed by any parameters it needs:
Message p1
Display Message p1 in popup box and wait for ok to be clicked
Restart
Restart Mio
Run p1 p2
Run Program p1 with arguments p2 waiting for it to finish
Copy p1 p2
Copy files p1 to p2. p1 can have wildcard.
Regedit p1
Load registry from registry file p1. p1 can have wildcard.
Currently this requires an external program, but when I get time
I'd like to this internal.
Desktop p1 p2
Create shortcut called \Windows\Desktop\p1.lnk for p2.
Favorites p1 p2
Create shortcut called \Windows\Favorites\p1.lnk for p2.
Programs p1 p2
Create shortcut called \Windows\Programs\p1.lnk with p2 program.
Exit
Done with script file.
#
Comments no action taken.

Others I plan to implement are: DelTree.
So far these do everything I need. If you have an ideas for other commands that might be useful let me know.

See ReadMe.txt inside of zip for more details and the latest information.

Edited by - gpsgator on 11 mars 2007 20:14:03

Ads


gpsgator

211 Posts

Posted - 03 janv. 2007 :  06:47:40  Show Profile  Reply with Quote
Here is the script I am currently running:

#Mio Setup
#Run \Windows\MioUtility.Exe -SelLang
#Run \Windows\MioUtility.Exe -SelTimezone
Copy "\Storage Card\Unlock\Windows\*.*" \Windows
Copy "\Storage Card\Unlock\Desktop\*.lnk" \Windows\Desktop
Copy "\Storage Card\Unlock\Favorites\*.lnk" \Windows\Favorites
RegEdit "\Storage Card\Unlock\Registry\*.reg"
Favorites ApMemo "\Storage Card\Programs\Notes\apMemo.exe"
Programs GasUp "\Storage Card\Programs\GasUp\GasUpLogger.exe"
Restart

I will post details on some of these.
Go to Top of Page

gpsgator

211 Posts

Posted - 03 janv. 2007 :  06:57:20  Show Profile  Reply with Quote
Copy "\Storage Card\Unlock\Windows\*.*" \Windows

I have in my Unlock\Windows directory the DLL's that other programs might need to run. I got most of these out of the unlock ******** cab we use to have to run to unlock the Mio. Here is what I have: aygshell.dll, celib.dll, cellcore.dll, DocList.dll, gsgetfile.dll, gx.dll, imgdecmp.dll, mfcce211.dll, mfcce200.dll, mscoree.dll, note_prj.dll, olece211.dll, olece300.dll, taskbar.exe, Xcefobj.dll, zlib.dll.
Go to Top of Page

gpsgator

211 Posts

Posted - 03 janv. 2007 :  07:03:14  Show Profile  Reply with Quote
RegEdit "\Storage Card\Unlock\Registry\*.reg"

This does all the registry entries needed.
This is the main for unlock the Mio.
[HKEY_LOCAL_MACHINE\init]
"Depend80"=hex: 32,00
"Launch80"="taskbar.exe"

There is where the Mio was told to run ST.EXE. I change it to run TaskBar.Exe. Since ST.EXE is not running resets will no longer try to C310Auto and MainShell will never run and also the screen that says you are connected to USB will no longer popup.

So the mimimal changes to unlock the Mio is the TaskBar.Exe program and the above registry change.
Go to Top of Page

gpsgator

211 Posts

Posted - 03 janv. 2007 :  07:06:19  Show Profile  Reply with Quote
Below are some other registry changes I do.

To turn on AutoHide of the taskbar:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\AutoHide]
@=dword:00000001

To setup Owner information:
[HKEY_CURRENT_USER\ControlPanel\Owner]
"Owner"=hex: 47,00,61,00,74,00,6f,00,72,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,00,00
Go to Top of Page

gpsgator

211 Posts

Posted - 03 janv. 2007 :  07:13:21  Show Profile  Reply with Quote
One thing I am not sure is what else ST.EXE is doing. I know that it runs Run MioUtility.Exe
with the -SelLang and again with the -SelTimezone. This is where we are prompted for the Language and Timezone. However when I run the language there are no selections. What that means is ST must be reading the language directory and populating the list first. To make a long story short since I didn't want to have to answer these questions anyway I just captured my registry before and after these were run normally from ST.EXE and capture the changes. I then don't even ask the questions and just set the registry enties. For me for english language and eastern timezone they are:

[HKEY_LOCAL_MACHINE\SOFTWARE\MiTAC]
[HKEY_LOCAL_MACHINE\SOFTWARE\MiTAC\SupportedVoice]
"TatolSupport"=dword:00000010
"VoiceID16"=dword:00000c0a
"VoiceID15"=dword:00000816
"VoiceID14"=dword:00000814
"VoiceID13"=dword:00000813
"VoiceID12"=dword:00000409
"VoiceID11"=dword:0000041f
"VoiceID10"=dword:0000041d
"VoiceID9"=dword:00000415
"VoiceID8"=dword:00000413
"VoiceID7"=dword:00000410
"VoiceID6"=dword:0000040c
"VoiceID5"=dword:0000040b
"VoiceID4"=dword:00000408
"VoiceID3"=dword:00000407
"VoiceID2"=dword:00000406
"VoiceID1"=dword:00000405

[HKEY_LOCAL_MACHINE\SOFTWARE\MiTAC\MultiLang]
"TatolSupport"=dword:00000010
"LangID16"=dword:00000c0a
"LangID15"=dword:00000816
"LangID14"=dword:00000814
"LangID13"=dword:00000813
"LangID12"=dword:00000409
"LangID11"=dword:0000041f
"LangID10"=dword:0000041d
"LangID9"=dword:00000415
"LangID8"=dword:00000413
"LangID7"=dword:00000410
"LangID6"=dword:0000040c
"LangID5"=dword:0000040b
"LangID4"=dword:00000408
"LangID3"=dword:00000407
"LangID2"=dword:00000406
"LangID1"=dword:00000405
[HKEY_LOCAL_MACHINE\SOFTWARE\MiTAC\CurrentVoice]
"VoiceID"=dword:00000409
[HKEY_LOCAL_MACHINE\SOFTWARE\MiTAC\TimeZoneInformation]
"ZoneListLoc"=dword:0000000c
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex: 2c,01,00,00,45,00,61,00,73,00,74,00,65,00,72,00,6e,00,20,00,53,00,74,00,61, 00,6e,00,64,00,61,00,72,00,64,00,20,00,54,00,69,00,6d,00,65,00,00,00,69,00, 6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0a,00,00,00,05, 00,02,00,00,00,00,00,00,00,00,00,00,00,45,00,61,00,73,00,74,00,65,00,72,00, 6e,00,20,00,44,00,61,00,79,00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69, 00,6d,00,65,00,00,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00, 00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00,c4,ff,ff,ff

Go to Top of Page

Hans23

USA
85 Posts

Posted - 03 janv. 2007 :  08:28:51  Show Profile  Reply with Quote
GPSgator,
Great Job.
Keep it up. If only Mio had sriptors or programmers and software designers like you.

Go to Top of Page

gpsgator

211 Posts

Posted - 06 janv. 2007 :  20:35:44  Show Profile  Reply with Quote
Okay I think I have it ready if anyone wants to try it out.
How do you make the files available for download here?
Go to Top of Page

mickey1987

USA
195 Posts

Posted - 06 janv. 2007 :  21:23:20  Show Profile  Reply with Quote
Some people use rapidshare.com to upload their files
Go to Top of Page

gpsgator

211 Posts

Posted - 06 janv. 2007 :  21:36:19  Show Profile  Reply with Quote
http://www.gpspassion.com/upload/C310Auto.zip
Go to Top of Page

logic26

92 Posts

Posted - 06 janv. 2007 :  22:07:26  Show Profile  Reply with Quote
do i unzip it and save just the auto.exe to the memory card or all the other stuffs too?

Mio C320
Jerry Skin 01/07/08
QuickSilver Resurrected Skin:
http://www.gpspassion.com/upload/Logic26_QuickSilver_Resurrected_20080201.zip
Iphone Skin:http://www.mediafire.com/?8s5n3xweybj
Go to Top of Page

chuka

67 Posts

Posted - 06 janv. 2007 :  23:30:15  Show Profile  Reply with Quote
Instead of changing the st.exe not to run you could do teh following.
Place an empty file under /windows or someplace that will disapear only during hard reset.
When running you file auto.exe check if the empty file is present, if yes do not do anything, if not continue with hard rest condition.
Go to Top of Page

gpsgator

211 Posts

Posted - 07 janv. 2007 :  00:25:42  Show Profile  Reply with Quote
logic:
You need c310auto.exe and c310auto.scr in the root of the SD card.
For my sample .scr file you need the rest of the files there as well, but you can change the script to get them from anywhere.

chuka:
ST.EXE starts the MainShell.exe which is what you don't want for an unlocked Mio. Since ST.EXE is the one running C310Auto.exe if found it is only run once since ST.EXE does not run any more with my sample script.
Go to Top of Page

icehome

44 Posts

Posted - 07 janv. 2007 :  02:28:28  Show Profile  Reply with Quote
@gpsgator,

Could you post the source as well so that we can learn some windows programming as well? Thanks for putting effort into creating this nice tool!!!
Go to Top of Page

chuka

67 Posts

Posted - 07 janv. 2007 :  14:06:41  Show Profile  Reply with Quote
GPSgator

What other commands are supported?
I created a list of all the needed files / direcory structor, I do not want to copy one by one.
xcopy?
Can we zip everytning and unzip?

Edited by - chuka on 07 janv. 2007 14:14:18
Go to Top of Page

gpsgator

211 Posts

Posted - 07 janv. 2007 :  22:43:21  Show Profile  Reply with Quote
There is a file in the zip with all the commands.

rCopy will recurse down directories doing a copy and creating the directories if they don't exist.

No zip built in, but you can call/run any program.
Go to Top of Page
Page: of 23 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply/Répondre
 Printer Friendly
Jump To:
GpsPasSion Forums © 2002-2009_GpsPasSion/Manzanite Go To Top Of Page
This page was generated in 2,05 seconds. Powered By: Snitz Forums 2000 Version 3.4.05