PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 01-30-2010, 02:11 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

Quote:
Originally Posted by mswlogo View Post
You used all If's and no While Loops. The problem is if you issue a close or kill and not verify it's done it could be running when igo8 starts up. But by the time you look with task manager they are gone.

Also tmail requires multiple close windows so it just loops killing windows until they are all gone. That is probably why you saw tmail.exe still running.

There is a method to my madness in my orignal script.

Like I said in an earlier post, you can do one better by looping on closed windows first until they close. Then loop waiting for the process to close.

Then continue to the next.
Maybe this is the way to go ??? I think this is what you are saying...




While ( WndExists( "ActiveSync" ) )
Close("ActiveSync")
Sleep(500)
EndWhile
While ( ProcExists("repllog.exe") )
Kill("repllog.exe")
Sleep(500)
EndWhile



Notice I moved the Sleep(500) AFTER the Close command. Why wait 500 before trying to close it if the window exists? If the window exists, close it first, then wait 500.


Using the While command - if the window or process does NOT exist - then it does not run the code inside correct (meaning it works like and If statement?)
Reply With Quote
  #22 (permalink)  
Old 01-30-2010, 03:13 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

I found out that instead of trying to close all of the apps that use tmail.exe that you can actually CLOSE (not kill) tmail.exe. This way you dont have to try and close 9 apps that use it =)

Same thing for AudioManager_eng.exe - you can close it.

I am about to test this out:


RegWriteDword("HKLM","Software\Microsoft\Today\Ite ms\HTC Sense","Enabled",0)
RedrawToday
While ( ProcExists("manila.exe") )
Sleep(500)
EndWhile
RegWriteDword ("HKLM","Software\Microsoft\Today\Items\HTC Sense","Enabled",1)

ErrorLevel("syntax")


# Close ActiveSync
While ( WndExists( "ActiveSync" ) )
Close("ActiveSync")
Sleep(500)
EndWhile
While ( ProcExists("repllog.exe") )
Kill("repllog.exe")
Sleep(500)
EndWhile






# Close text messageing, SMS / MMS, Outlook E-mail, guilette.net, etc...
If ( ProcExists( "tmail.exe" ) )
Close("tmail.exe")
Sleep(500)
EndIf
While ( ProcExists("tmail.exe") )
Kill("tmail.exe")
Sleep(500)
EndWhile


# Close HTC Music Player
If ( ProcExists( "AudioManager_eng.exe" ) )
Close("AudioManager_eng.exe")
Sleep(500)
EndIf
While ( ProcExists("AudioManager_eng.exe") )
Kill("AudioManager_eng.exe")
Sleep(500)
EndWhile






# Close Album & AlbumSearcher
While ( WndExists( "Album" ) )
Close("Album")
Sleep(500)
EndWhile
While ( ProcExists("HTCAlbum.exe") )
Kill("HTCAlbum.exe")
Sleep(500)
EndWhile
While ( ProcExists("AlbumSearcher.exe") )
Kill("AlbumSearcher.exe")
Sleep(500)
EndWhile


# Close Contacts
While ( WndExists( "Contacts" ) )
Close("Contacts")
Sleep(500)
EndWhile
While ( ProcExists("poutlook.exe") )
Kill("poutlook.exe")
Sleep(500)
EndWhile


# Close Wi-Fi Router
While ( WndExists( "Mobile Wi-Fi Router" ) )
Close("Mobile Wi-Fi Router")
Sleep(500)
EndWhile
While ( ProcExists("CMInternetSharing.exe") )
Kill("CMInternetSharing.exe")
Sleep(500)
EndWhile


# Close Communications Manager
While ( WndExists( "Comm Manager" ) )
Close("Comm Manager")
Sleep(500)
EndWhile
While ( ProcExists("CommManager.exe") )
Kill("CommManager.exe")
Sleep(500)
EndWhile


# Close Opera
While ( WndExists( "VZW Today" ) )
Close("VZW Today")
Sleep(500)
EndWhile
While ( ProcExists("Opera9.exe") )
Kill("Opera9.exe")
Sleep(500)
EndWhile


# Close Task Manager
While ( WndExists( "Task Manager" ) )
Close("Task Manager")
Sleep(500)
EndWhile
While ( ProcExists("TaskMgr.exe") )
Kill("TaskMgr.exe")
Sleep(500)
EndWhile


# Close File Explorer
While ( WndExists( "File Explorer" ) )
Close("File Explorer")
Sleep(500)
EndWhile
While ( ProcExists("fexplore.exe") )
Kill("fexplore.exe")
Sleep(500)
EndWhile


# Close Excel
While ( WndExists( "Excel Mobile" ) )
Close("Excel Mobile")
Sleep(500)
EndWhile
While ( ProcExists("pxl.exe") )
Kill("pxl.exe")
Sleep(500)
EndWhile








RunWait("\Storage Card\IGO8\iGO8.exe")

While ( ProcExists("iGO8.exe") )
Sleep(500)
EndWhile

RedrawToday

Last edited by nayr1482; 01-30-2010 at 03:26 PM.
Reply With Quote
  #23 (permalink)  
Old 01-30-2010, 03:39 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

with the above TTS is not working again!!!
Reply With Quote
  #24 (permalink)  
Old 01-31-2010, 02:09 AM
mswlogo's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint SERO Premium
Threadstarter
Location: MA, USA
 
Join Date: Jun 2007
Posts: 1,330
Reputation: 970
mswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

Quote:
Originally Posted by nayr1482 View Post
with the above TTS is not working again!!!
I don't think it is good putting kills in the loops.
__________________
EVO 4G, Stock Sprint ROM, ProClip in Car, Sony HBH-300.
Reply With Quote
  #25 (permalink)  
Old 01-31-2010, 02:50 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

Hi, here is my latest...this seems to be working 100% of the time. I am still tweaking (notice I removed the while procexists after running igo8 - i found it isn't necessary - seems the RunWait command pauses there until you exit whatever app you call).

I took all of the kill commands out (for now). So far haven't had any issues...but of course have to keep testing.





If ( ProcExists("manila.exe") )
RegWriteDword("HKLM","Software\Microsoft\Today\Ite ms\HTC Sense","Enabled",0)
RedrawToday
While ( WndExists( "Start" ) )
Sleep(500)
EndWhile
RegWriteDword ("HKLM","Software\Microsoft\Today\Items\HTC Sense","Enabled",1)
EndIf



ErrorLevel("syntax")



If ( ProcExists("repllog.exe") )
Close("ActiveSync")
While ( WndExists( "ActiveSync" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists( "tmail.exe" ) )
Close("Outlook E-mail")
While( WndExists( "Outlook E-mail") )
Sleep(500)
EndWhile
EndIf



If ( ProcExists( "tmail.exe" ) )
Close("Messaging")
While( WndExists( "Messaging") )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("HTCAlbum.exe") )
Close("Album")
While ( WndExists( "Album" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("poutlook.exe") )
Close("Contacts")
While ( WndExists( "Contacts" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("CommManager.exe") )
Close("Comm Manager")
While ( WndExists( "Comm Manager" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("TaskMgr.exe") )
Close("Task Manager")
While ( WndExists( "Task Manager" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("fexplore.exe") )
Close("File Explorer")
While ( WndExists( "File Explorer" ) )
Sleep(500)
EndWhile
EndIf



RunWait("\Storage Card\IGO8\iGO8.exe")

RedrawToday
Reply With Quote
  #26 (permalink)  
Old 01-31-2010, 03:58 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

added Opera back in since it seems that was one of the main issues (at least for me)





If ( ProcExists("manila.exe") )
RegWriteDword("HKLM","Software\Microsoft\Today\Ite ms\HTC Sense","Enabled",0)
RedrawToday
While ( WndExists( "Start" ) )
Sleep(500)
EndWhile
RegWriteDword ("HKLM","Software\Microsoft\Today\Items\HTC Sense","Enabled",1)
EndIf



ErrorLevel("syntax")



If ( ProcExists("repllog.exe") )
Close("ActiveSync")
While ( WndExists( "ActiveSync" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists( "tmail.exe" ) )
Close("Outlook E-mail")
While( WndExists( "Outlook E-mail") )
Sleep(500)
EndWhile
Close("Messaging")
While( WndExists( "Messaging") )
Sleep(500)
EndWhile
EndIf



If ( ProcExists( "tmail.exe" ) )

EndIf



If ( ProcExists("HTCAlbum.exe") )
Close("Album")
While ( WndExists( "Album" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("poutlook.exe") )
Close("Contacts")
While ( WndExists( "Contacts" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("CommManager.exe") )
Close("Comm Manager")
While ( WndExists( "Comm Manager" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("TaskMgr.exe") )
Close("Task Manager")
While ( WndExists( "Task Manager" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("fexplore.exe") )
Close("File Explorer")
While ( WndExists( "File Explorer" ) )
Sleep(500)
EndWhile
EndIf



If ( ProcExists("Opera9.exe") )
Close("OperaNetwork")
While ( WndExists( "OperaNetwork" ) )
Sleep(500)
EndWhile
Close("Opera")
While ( WndExists( "Opera" ) )
Sleep(500)
EndWhile
Close("VZW Today")
While ( WndExists( "VZW Today" ) )
Sleep(500)
EndWhile
EndIf







RunWait("\Storage Card\IGO8\iGO8.exe")


RedrawToday
Reply With Quote
  #27 (permalink)  
Old 01-31-2010, 05:30 PM
mswlogo's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint SERO Premium
Threadstarter
Location: MA, USA
 
Join Date: Jun 2007
Posts: 1,330
Reputation: 970
mswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

That looks much better. Is it working now?
Reply With Quote
  #28 (permalink)  
Old 01-31-2010, 08:51 PM
nayr1482's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Touch Pro2
Carrier: Verizon
 
Join Date: Dec 2009
Posts: 312
Reputation: 1315
nayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on repnayr1482 is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

Quote:
Originally Posted by mswlogo View Post
That looks much better. Is it working now?
seems to be so far. i am going to continue testing it, etc...

from my testing it seems that Opera 9.5 has been the biggest problem for me...
Reply With Quote
  #29 (permalink)  
Old 01-31-2010, 08:52 PM
oldgarfield's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: Texas
 
Join Date: Jun 2008
Posts: 137
Reputation: 135
oldgarfield is keeping up the good workoldgarfield is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

Quote:
Originally Posted by nayr1482 View Post
seems to be so far. i am going to continue testing it, etc...

from my testing it seems that Opera 9.5 has been the biggest problem for me...
That's true to me as well.
Reply With Quote
  #30 (permalink)  
Old 01-31-2010, 09:23 PM
mswlogo's Avatar
VIP Member
Offline
Pocket PC: EVO 4G
Carrier: Sprint SERO Premium
Threadstarter
Location: MA, USA
 
Join Date: Jun 2007
Posts: 1,330
Reputation: 970
mswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuffmswlogo knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: iGuidance MortScript to get around TTS not always working

I generally have opera 10 beta 2u off before I do anything. But it probably would not hurt adding it the the script I posted for iGuidance as well.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:10 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com