yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze ROM Development] GLO:
With the 2577 folder in Storage2 it does auto prompt to install.

So does that 100% mean that SD Auto install will install to Storage2 instead of defualting to Storage1 (which contains Android)
[Touch Pro, Fuze ROM Development] pee-wee:
Dear benjamminzIS and all user,

My current and previous HD2 ROM has little problem (allways use the EergyROM)

I can't end the call with touch key, it only can with hard key

Anyone has same problem?

Have been search since I flash from the stock (1 month ago) and no solving

note: I use S4X v1.6 with no setting change or adding
[Touch Pro, Fuze ROM Development] blast0id:
when you manually install to sd what are the options in the install window, extactly... I may have to do some recoding for it the sdauto to work properly... send me a screen shot if you can, of your choices...
[Touch Pro, Fuze ROM Development] pee-wee:
Never mind, I found the problem...

Its from BsB tweak actualy :)
[Touch Pro, Fuze ROM Development] mb:
Can you clear something up for me please? This script used to work perfectly for me, but it no longer seems to work with the XDA_UC on Dutty's latest set of ROMs.

Where exactly do I put the CAB files that I want to install to the SD Card automatically?

In this post http://htcpedia.com/forum/showthread.php?p=70225#post70225 which links to this thread it says they should be in _MOD_/SDAuto but on your page it says they should be in XDA_UC\_Mod_\filesCAB\SDAuto

Which is correct for your script on page 1? Do I still need the 0002_sashimi_sdauto_loader.zip or does yours absolutely replace this file?

Thanks in advance.
[Touch Pro, Fuze ROM Development] blast0id:
glad you got it figured out, I had no idea on that one...

if you download the mod on page one, you do not need 002_sashimi_sdauto_loader.zip, that is the old script, if you want to continue using it, then use the old folder structure, if you use the new script on page 1 then use the new folder structure... sorry for the confusion...
[Touch Pro, Fuze ROM Development] pee-wee:
Hi Ben,

when you release new version?

After the CHT 2.xx released, some settings need update

I can't save the new layout setting...

Wait for that day :)
[Touch Pro, Fuze ROM Development] Trigun:
XDA_UC and Microsoft MyPhone

I searched around some and I'm not sure I'm finding the correct information. Can the login and configuration settings for myphone be loaded using XDA_UC? can this be done with an xml file or does it need to be a registry file?
[Touch Pro, Fuze ROM Development] blast0id:
well from what I can tell the importation of cookie layout files isn't working even with the new chteditor... so I'm just going to wait until final version, and actually nothing needs to be changed, just chteditor needs to be fixed and it will work as usual...

I'm not sure, I don't use this program, but you can check HKCU/HKLM\Software in the registry and see if there are any settings stored there... otherwise I would ask people in the MyPhone related threads, once they tell you where it's stored it's as easy as putting a reg, xml or file in the proper folder of my mod for it to be restored...
[Touch Pro, Fuze ROM Development] pee-wee:
yes, I think for now I will revert back to CHT 1.8.5

v2.0.x is battery drainer... LOL
[Touch Pro, Fuze ROM Development] GLO:
Im using 2.0 since Energy included it in his roms. Works fine for me with only a few issues.

Im keen too see support for cht2.0 soon.
[Touch Pro, Fuze ROM Development] GLO:
Hi,

I am also keen to automate my activesync, email and wifi settings.

Any tips on them? or sharing your xml template.

thanks
[Touch Pro, Fuze ROM Development] pee-wee:
CHT 2.0 become final release :)
[Touch Pro, Fuze ROM Development] lusjash:
please help

I have started to use this mode for a week now. Thanks! great work! I had issues with XDA_UC cooked in ENERGY I am using (wouldn't see my CABs, PIM and CHTsetting).

I have configured everything according to your very detailed manual. And some of the issues were solved. Now i i have some minor problems to sort out

First.

customlinks.ini is being ignored.

here is the content of it is below

[LNK Files]

cleartemp*=Programs\Tools

DDataRecovery*=Programs\Tools

RegistryEn=Programs\Tools

ScreenOff*=Programs\Tools

TodayPluginEn=Programs\Tools

LumosSetup*=Programs\Tools

CorePlayer*=Programs\Multimedia

ESkypeWM*=Programs\Internet

FGooglemaps=Programs\GPS

All shortcuts are placed in Programs folder with no hierarchy. Could it be that these are programs to be installed on SD not the phone?

second. My CHTsettings is being is still being ignored, whether put in XDA_UC folder or _Mod_\filesCHT folder. strangely if i import this settings from CHT editor itself everything imports correctly and works. I am using CHT 1.8.5

And last : the mod does not reset itself but brings up

Windows 'Reset' Could not be found

Line 144 (\Storage Card\XDA_UC\_Mod_\_bin\S4X_Auto.mscr):waitForActive("Reset",30))

I did install the FULL version of this mod with all updates overwritten.

So could anyone help me? thanks in advance
[Touch Pro, Fuze ROM Development] blast0id:
I used makisu to setup activesync connection, email and wifi... it works great...

thanks, will be **attempting** to get everything updated in the next couple of weeks, now that baby is here, it's hard to find any spare time =)

as for the customlinks... I'm not sure why that isn't working, as another user has stated it seems to work sometimes, and other times it doesn't... I haven't had time to try and track down what causes the inconsistency... but I will try to have this done for the next update...

as for CHTsettings import, I'm not sure why that isn't working for you, especially since you're using 1.8.5, as I never had an issue with 1.8.5... only with 2.0... I will do some testing though to make sure...

as for your final issue, I've never seen that error before, but I will make sure to double check that part of the code as I am updating the rest of it...
[Touch Pro, Fuze ROM Development] blast0id:
someone posted in the RAPH energy rom thread, that there is a folder, I believe under the application data folder, that can be backed up and copied, to restore your myphone settings...
[Touch Pro, Fuze ROM Development] inc0gnito:
:confused: A couple of NRG releases ago I've got the same problem with ignored customlinks.ini and "Windows 'Reset' Could not be found" string. Now I have to run your GREAT mod and install some cab in "manual mode"... Please help!
[Touch Pro, Fuze ROM Development] blast0id:
alright will do some testing with the latest energy rom (raph) and see what happens...
[Touch Pro, Fuze ROM Development] pee-wee:
I use 'filesRoot' folder to copy all files to root, including start menu shortcut and deleting unused shortcut manualy

actually I found Del.mscr from M3PH's thread for XDA_UC but I don't know how to use it (my bad) :(

and a use full regXport to save all of my prev phone settings (including CHT and phone settings)

Don't push it so hard Sir :D
[Touch Pro, Fuze ROM Development] lusjash:
Well, I went another way

wrote my own lines in mscr, and adding a "Call" line for every app i want to move the link for.

Example

Call( "MoveLink", "GoogleMaps", "Programs\GPS" )

Call( "MoveLink", "Skype", "Programs\Internet" )

...

Sub MoveLink

fileNM=argv[1]

Destination=argv[2]

If ( FileExists( "\Windows\Start Menu\Programs\" & fileNM & .lnk" )=TRUE )

rename( "\Windows\Start Menu\Programs\" & fileNM & ".lnk", "\Windows\Start Menu\" & Destination & "\" & fileNM & ".lnk", TRUE )

Else

SleepMessage( 5, "No " & fileNM & ".lnk rename/move...bye!", "No File to move!" )

EndIf

EndSub

You can do the same easily - would save you the time of deleting the links manually every time. Just make sure that the mscr runs after the CABs are installed.

What I meant was to let the author of a great project to know that there can be a problem somewhere in his code (as was confirmed by another user).

I didn't know about "full regXport" I will google it now. Is it exporting all of the registry? then i am not sure how to use it. If i export whole registry BEFORE i flash the new ROM it will take some of unwanted leftovers and the install wouldn't be clean. If i do export immediately AFTER a fresh flashing (as if backuping) any later customization (of Sense, lets say) won't be recorded.. That is my logic, according to which i decided to avoid full backups of registry but import everything (mods fixes and tweaks) separately.

Cheers
[Touch Pro, Fuze ROM Development] rmanaka:
Wow, nice job!

I've started out with a single set of "If FileExist" and "Rename" lines and then lazily copied and replicated the code for each icon...never thought about coding a subroutine!

Thanks for providing the code snippet!!!
[Touch Pro, Fuze ROM Development] Gyokumen_Koushu:
Import Adv Config settings

Run("\Windows\AdvancedConfig.exe", """\Storage Card\SASHIMI\Auto\Scripts\AdvancedConfig.provxml""")

This is what i did. Copied via cht import scripts. What it did for me is merely open AdvanceConfig.exe without importing the settings.

Where did i did wrong? Thanks in advance.
[Touch Pro, Fuze ROM Development] motisu:
+1 on this!!!

I also just did a copy and paste. This is much more elegant and much easier to upkeep.

Thanks!!!:)
[Touch Pro, Fuze ROM Development] lusjash:
You are most welcome! This was my first self-created contribution to this great forum! I am glad!
[Touch Pro, Fuze ROM Development] vinceweis:
Thanks

Just wanted to add that I am looking forward to a new release, if you get around to it. I have used your modification in the past and loved the way it worked. Thanks for your efforts. It adds a lot to some of us with ORD that do not have time to manually code this stuff ourself. :D
[Touch Pro, Fuze ROM Development] pee-wee:
Hi Ben,

I have little problem,

1. if I stored reg from Full Regexport, the command after it will skipped, like copy to root and registry from custom reg export

2. if I put it after custom regexport, it not skiped the reg

I think something inside .reg file from fullregeXport changed permission to run next command

could you help me???

note: I atached the .reg file
[Touch Pro, Fuze ROM Development] Ralt:
Failing with Nov 25th ROM

Windows 'Reset' Could not be found

Line 144 (\Storage Card\XDA_UC\_Mod_\_bin\S4X_Auto.mscr):waitForActiv e("Reset",30))

I installed the ROM in my sig...and got the above error. had to manual restore everything and now realize how GREAT this script is!

looking forward to a fix when you have time...

Ral
[Touch Pro, Fuze ROM Development] pee-wee:
yes its because nrgz28 change his xda_uc configuration

all we can do run it manually until it fix :)
[Touch Pro, Fuze ROM Development] Snake28:
Same for me - has anyone an idea?

Thanks

Snake28
[Touch Pro, Fuze ROM Development] rolandyip:
same to me.

and the cht2 also problem.
[Touch Pro, Fuze ROM Development] blast0id:
For all those having issues with newer energy builds (I'm working on it) but temp fix is delete the .mscr file in the root of XDA_UC (or move it somewhere). copy the "2577" folder from the "XDA_UC\_bin" and place it in the root of your Storage Card, upon first boot the autostart will run via the 2577 folder and you can then choose yes/no to run the Mod... ifyou run it manually (via the .exe in the _bin folder) or with the autostart feature (via the 2577 folder). it will run without any errors...

I'm not sure why you would do a "full export" and then also do a "custom" export as well... full exports should be for "research" only and should never be applied, unless you have not updated the rom in ANY fashion other than a hard-reset.

maybe I'm not understanding what it is you are attempting... if so, I apologize, please try to explain what you are attempting a little further in detail.

see above, there is no need for a new version right now other than to fix the run via XDA_UC feature.

try it like this:

Run("\Windows\AdvancedConfig.exe", "\Storage Card\SASHIMI\Auto\Scripts\AdvancedConfig.provxml")

Not sure if that will work, never used advanced config to import xml's... you can just place the advancedconfig.provxml (as long as it is saved as unicode) to the "XDA_UC\_Mod\filesXML" and when my Mod is run it will be provisioned via XDA_UC automatically...
[Touch Pro, Fuze ROM Development] pee-wee:
hehehe... sorry for that, it is no problem because my mistaken mix fulreg and custom reg in restoring :p

but with fulreg I can't restore my files, seems it change the attrib so I can't restore my files (copy to root)

little suggestion for fix which make mscr run again here, maybe it could help Sir :)
[Touch Pro, Fuze ROM Development] blast0id:
that just looks like an alternative way for SDAuto install... I'm not sure what you mean by "make mscr run again". If you are speaking of my mscr not running automatically from xda_uc folder, I don't see how that post helps... maybe you linked to wrong post? again I apologize if I am misunderstanding you...
[Touch Pro, Fuze ROM Development] pee-wee:
ahhh sory again sir, I wrong for it...

my job made me less sleep :(

I'll find it later
[Touch Pro, Fuze ROM Development] blast0id:
OK, here's the fix for the newer energy ROMs... find the S4X_Auto.mscr in the XDA_UC\_Mod_\_bin folder and edit it as such:

######################################################
# PREPARING TO RUN MOD ###############################
######################################################

@backLightSettings
[color=red]	If( scriptProcExists( "xdauc.mscr" ) )
waitForActive( "Reset", 30 )
sendRight( "Reset" )
sendCR( "Reset" )
EndIf[/color]

delete only that which is in RED. enjoy =)
[Touch Pro, Fuze ROM Development] rolandyip:
Thanks ok to run now...
[Touch Pro, Fuze ROM Development] blast0id:
actually, even better, could be changed to:

If( scriptProcExists( "xdauc.mscr" ) )
killScript( "xdauc.mscr" )

EndIf

this is what will be in the update, when I can get around to it...
[Touch Pro, Fuze ROM Development] powinmo:
benjamminzIS -

I've been meaning to post for some time to say thanks for your scripts. Appreciate your efforts thus far and understand how family takes priority.

Also wanted to ask about how you would normally like to handle any possibly code update submissions from other users... I can offer to help maintain the code.

I've followed most of the thread since the 1.6 release. I've had some problems with the code for certain things I needed done, and have done the following:

1. fixed pimRestore sub

* "sourcPIM" to "sourcePIM" (from some prior posts)

2. refactored sub tskKill

* exitSub in MortScript 4.3.0.11 is broken and the taskKill sub terminates prematurely depending on the code path

* eliminated the need to use exitSub

* this caused items like dialerCAB to fail when it could not kill cprog.exe (for CDMA ROMs) properly. This is probably causing other items to fail as well and folks likely think it is something else not working.

3. modified sub restoreCHT

* fails if your filename is not exactly "chtbackup.cht" (default)

* if default filename is not found, the sub will check for the most recent .cht file in the "filesCHT" directory and use that

* no longer relies on the "default" filename if not found

* changes are only for CHT 1.8.5 so far as I stopped using CHT 2.0.0.0 for now

4. added MortScriptVersion output string to Init messages so we can debug what versions of MortScript is in use

5. modified checking of xdauc.mscr so that the script works with Energy ROMs from Nov 2010 onwards

Note stuff like tskKill failing is something that I've had problems with since I stated using v1.6 on a bunch of TP2s regardless of the custom ROM (Energy/Stock/etc). It took me a while to figure out it was the ExitSub function that is broken in MortScript 4.3b11 itself.

I can post an updated version of S4X_Auto.mscr (eg call it 1.6.1) if that is fine with you and others... or I can provide the diff/patch code.

In the works:

a. CHT 2.0.0.0 settings restore as I play with it on a test TP2 unit I have

b. reviewing customlinks.ini handling

c. checking on your TO DO of pimbackup via ini or some other automated method
[Touch Pro, Fuze ROM Development] blast0id:
for now, please feel free to post the updated patch code and a package if you so choose... I will edit first post to point to your post, once it's posted... I apologize for the slow updates... but finding time hasn't been easy lately... I do still do my best to at least reply to posts asap... thanks for your interest and I'm glad you've found it useful to this point!
[Touch Pro, Fuze ROM Development] jbs68:
HD Mini support (320x480)

Hello to all !

I would like to use this application as a supplement to XDA_UC to restore my soft on the SD Card in automatic, but the resolution of my Mini HD is not supported...

Somebody would have a compatible version with a resolution of 320x480?

Thank you in advance!
[Touch Pro, Fuze ROM Development] jbs68:
QVGA and HVGA Support.....

Hello to all, I try to adapt this script to screens HVGA and QVGA but to analyze the script, I would need screen shots of the windows of the files CAB installation of a HD2 (Leo) and\or a HD (Blackstone).

If somebody could post me these screen shots.. Thanks to you!

Below the captures of screens QVGA and HVGA.

I would need the same in VGA and WVGA, thank you.
[Touch Pro, Fuze ROM Development] powinmo:
No problem on the slow updates. Again many of us realize that family should come first but greatly appreciate that you are still at least able to reply to your thread on a regular basis.

I'll post two separate items. One will contain the file attachments + info and the other will be my changelog/testing items.
[Touch Pro, Fuze ROM Development] powinmo:
To help out benjamminzIS and other users, I am providing my updates to the scripts where applicable.

Please see the initial discussions starting at post 282:

http://xdaforums.com/showpost.php?p=10091804&postcount=282

Attached is: (Jan.17.2011)

1. S4X_SDAuto_1.62_[updateONLY].zip = updates to the 1.6/1.61 S4X_Auto.mscr script and this file contains the updated mscr file itself and a changelog text file. No package just yet - when/if I do I will update this post.

Attached is: (Dec.27.2010)

1. S4X_SDAuto_1.61_[updateONLY].zip = updates to the 1.6 S4X_Auto.mscr script and this file only contains the updated mscr file itself. No package just yet - when/if I do I will update this post.

2. diff-1.6-to-1.6.1.patch.txt = patch/diff file from 1.6 to my changes

Please see the next post for my changelogs and additional information.

Feel free to test and let me know if there are any issues or other items you'd like me to check/fix/research. No promises on issue items that I do not specifically use or have the ability to simulate/test.
[Touch Pro, Fuze ROM Development] powinmo:
I believe you do not need screen shots from WVGA users.

See the section in the S4X_Auto.mscr starting with the comments:

###########################################################

# SCREEN VARIABLES ########################################

################# originally from: SASHIMI by: bengilah ###

This section defines the screen positions to handle the SD auto stuff.

You'll see "Unsupported Resolution" for non WVGA resolutions. Copy the section from the WVGA section (above the message). Adapt the res-check and Pos values accordingly, which I would assume dividing by a minimum of 2.5 for at least the VertPos values.

Good luck! If you get it to work, post the modified code and I'll merge it in.
[Touch Pro, Fuze ROM Development] blast0id:
O.K. I will update 1st post to point to your attachement post... I meant to add that I found an error in the dialerCABs part of the cab install... it only installs the first cab currently... I have a fix for it and will post that if you want to merge it to the 1.6.1 or 1.6.2 code, I doubt many people use/need it, but it's handy for me as I install the leo 2g dialer and the energy theme for it back-to-back...

EDIT: O.K. first post updated... I will post the dialerCAB corrected code asap...
[Touch Pro, Fuze ROM Development] jbs68:
I saw this section of the code, it is exactly the one that I wanted to adapt!

On the other hand, I do not understand to what correspond variables and that is why I asked for a screen shot of a HD2 to see these various zones.

I thought modifying the code like this :

# VGA and WVGA
If( ( ( screenwidth( ) = 480 ) AND ( screenheight( ) = 640 ) ) OR ( ( screenwidth( ) = 480 ) AND ( screenheight( ) = 800 ) ) = 1 )
MaxCabInstallTextValue = 136
CabInstallTextValueIncrement = 29
RadioButtonHrzPos = 30
RadioButtonVertPos = 208
RadioButtonVertIncrement = 37
AdditionalTextVertPos = 290
[COLOR="blue"]# HVGA - Code by jbs68
elseif ( ( ( screenwidth( ) = 320 ) AND ( screenheight( ) = 480 ) ) = 1 )
MaxCabInstallTextValue = 88
CabInstallTextValueIncrement = 19
RadioButtonHrzPos = 24
RadioButtonVertPos = 136
RadioButtonVertIncrement = 50
AdditionalTextVertPos = 240
# QVGA - Code by jbs68
elseif ( ( ( screenwidth( ) = 240 ) AND ( screenheight( ) = 320 ) ) = 1 )
MaxCabInstallTextValue = 66
CabInstallTextValueIncrement = 14
RadioButtonHrzPos = 16
RadioButtonVertPos = 88
RadioButtonVertIncrement = 22
AdditionalTextVertPos = 130[/COLOR]
Else
StatusMessageAppend( screenwidth( ) &"x"&screenheight( ) )
StatusMessage( "!! Unsupported resolution !!" )
StatusMessage( "!! Auto Storage Card install disabled !!" )
WaitFlag=1
skipSCFlag = 1
EndIf
[COLOR="Blue"]# VGA, WVGA, HVGA and QVGA - Code by jbs68
If( ( ( screenwidth( ) = 480 ) AND ( screenheight( ) = 640 ) ) \
OR ( ( screenwidth( ) = 480 ) AND ( screenheight( ) = 800 ) ) \
OR ( ( screenwidth( ) = 320 ) AND ( screenheight( ) = 480 ) ) \
OR ( ( screenwidth( ) = 240 ) AND ( screenheight( ) = 320 ) ) = 1 )
StatusMessageAppend( screenwidth( ) &"x"&screenheight( ) )
HrzMidPos = ( screenwidth( )/2 )
MinCabInstallTextValue = MaxCabInstallTextValue-( CabInstallTextValueIncrement*2 )
SuccessTextVertPos = MinCabInstallTextValue
EndIf[/COLOR]

So, i have try this code on my HTC Touch Dual (QVGA) and all working fine !

But.... on my HD Mini (HVGA), the script stop at each installation cab, he don't select "\storage card" and he don't send eany key... I have to select the SD Card and send the install key in manually !! :confused:
[Touch Pro, Fuze ROM Development] blast0id:
here is the dialerCABs code fix (found in: Sub CABInstall):

ElseIf( subStr( toUpper( file ), 1, dialPathLength ) eq toUpper( filesCAB \"Dialer\" ) )
sType = "dialerCABs"
If( isEmpty( dialCABArr ) )
@taskMSG( "No custom dialer CABs, skipping...", sType )
Else
If( regRead( "HKLM", XDARegPATH \ sType, ""& fName &"" ) = 1 )
@taskMSG( "SKIPPED: "& fName &" already installed", sType )
Else
If ( procExists("cprog.exe") )
@tskKill( "cprog.exe", sType )
EndIf
If( procExists("phcanvga.exe") )
@tskKill( "phcanvga.exe", sType)
EndIf
If( procExists( "cprog.exe" ) )
@taskMSG( "ERROR: couldn't kill a critical process", sType )
Else
If( procExists( "phcanvga.exe" ) )
@taskMSG( sType &" WARNING: couldn't kill phcanvga.exe, but continuing anyways...", sType )
EndIf
runWait( "\Windows\wceload.exe", "/nodelete /silent """& file &"""" )
@taskMSG( "INSTALLED: "& fName, sType )
regWriteDword( "HKLM", XDARegPATH \ sType, ""& fName &"", "1" )
EndIf
EndIf

forgot to add a check before killing, even though the kill sub has a check built in, for some reason this causes it to skip the rest of the cabs in the dialer folder...