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
  #1 (permalink)  
Old 11-05-2011, 11:15 AM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

this script is so simple i can't believe its not working lol . i will get this working for you !

all the script does is check the registry to see if the device is locked , and if youre using lockdevice it will lock it when it goes into standby . then it checks to see if it has become unlocked , then it opens the window which holds your home screen . there are only 3 things which can go wrong , 1st , its not changing the reg value , 2nd its not noticing the reg change , and 3rd its not getting the window .

we know the script is getting the proper window , and i think the reg values are being read properly , as you said my other script works . ill make a diagnostic script which will log everything . in the mean time , change the "Screen off when locked" delay time to like 5 just to confirm its working properly .
thanks qanda !
Seth
Reply With Quote
This post has been thanked 1 times.
  #2 (permalink)  
Old 11-05-2011, 12:36 PM
qanda's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TouchPro2
Carrier: Sprint
Location: USA
 
Join Date: Jul 2011
Posts: 86
Reputation: 65
qanda is becoming a great contributor
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by elesbb View Post
this script is so simple i can't believe its not working lol . i will get this working for you !
I am sure you will but you can stop at any time you feel the effort is too time consuming.

Quote:
.......all the script does is check the registry to see if the device is locked ,
I checked the "0" (unlocked) and "2" (locked) states and the device state is changing.

Quote:
.........and if youre using lockdevice it will lock it when it goes into standby .
I am using Lock Device, and it has been working fine.

Quote:
..... then it checks to see if it has become unlocked , then it opens the window which holds your home screen .
WE know this aint' working.

Quote:
there are only 3 things which can go wrong , 1st , its not changing the reg value , 2nd its not noticing the reg change , and 3rd its not getting the window .
My bet is on #2. I checked the lock state and it changes as it should. We also know that after I tap the Unlock icon, it jumps to the Home page, so it knows where to go. It may be a question of it not knowing WHEN to go.

Ok, let me know what you wish me to do. I know my way around a registry editor in case you need some values checked.

Screen off when Locked set to 5 seconds. Works fine.

Regards,
QA
__________________
HTC Vogue,
HTC Touch Pro 2

Last edited by qanda; 11-05-2011 at 03:20 PM. Reason: Additional registry information
Reply With Quote
  #3 (permalink)  
Old 11-05-2011, 04:11 PM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

[QUOTE=qanda;2154189]I am sure you will but you can stop at any time you feel the effort is too time consuming.[/AUOTE]
Nahhh it dont bother me , i just wish i had the device next to me so i can see whats going on . id hate to have you hard reset . so i'll make a log script to log everything the program needs .

Quote:
I checked the "0" (unlocked) and "2" (locked) states and the device state is
changing. I am using Lock Device, and it has been working fine.
Well thats good , hmmmm ....

Quote:
it changes as it should. We also know that after I tap the Unlock icon, it jumps
to the Home page, so it knows where to go. It may be a question of it not
knowing WHEN to go.
when is based off the reg entries , it has two while statements one checks for when it does lock , then the second checks for when it unlocks . i may need a sleep entry before checking to see if its unlocked , your device may be a split second slower in changing a reg entry then what mortscript can read .

Quote:
Ok, let me know what you wish me to do. I know my way around a registry
editor in case you need some values checked.
Im glad ! that makes things a tad easier on my end . but everything registry wise is getting set and unset so it seems to be working .

Quote:
Screen off when Locked set to 5 seconds. Works fine.

Regards,
QA
well then we know thats good . all the info you just gave me narrows it down to the last while statement and the command to switch windows . i'll start there .

all the cabs i create from here on out , INSTALL WITHOUT UNINSTALLING the original . any cab i creat from here on out will overwrite any files it needs . so just leave my "unlock to home screen" cab installed onto the device .

im not doing much today (other than black ops and battlefield 3 xP) so i can work on it today . im eager to get this working !
Reply With Quote
  #4 (permalink)  
Old 11-05-2011, 06:46 PM
qanda's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TouchPro2
Carrier: Sprint
Location: USA
 
Join Date: Jul 2011
Posts: 86
Reputation: 65
qanda is becoming a great contributor
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by elesbb
.................
when is based off the reg entries , it has two while statements ............. i may need a sleep entry before checking to see if its unlocked , your device may be a split second slower in changing a reg entry then what mortscript can read .
Funny you should mention the device being a bit slower. I do notice that it lags a command such as Back or X. It takes a second or so to compete the action, so the time factor on the 'when' may be the answer.

Quote:
.......... that makes things a tad easier on my end . but everything registry wise is getting set and unset so it seems to be working .
Glad I could help somewhat

Quote:
............. all the info you just gave me narrows it down to the last while statement and the command to switch windows . i'll start there .
I am glad I could come up with a direction for a possible solution, except I have no idea how I got to it.

Quote:
all the cabs i create from here on out , INSTALL WITHOUT UNINSTALLING the original .
That will make things a lot easier. Super.

Quote:
im not doing much today (other than black ops and battlefield 3 xP) so i can work on it today . im eager to get this working !
Me too. I'm only playing around on MS FS testing out some new flight procedures for some upcoming flights.
(I know your going to ask. Yes, I am). lol


Regards,
QA

Last edited by qanda; 11-05-2011 at 06:53 PM.
Reply With Quote
  #5 (permalink)  
Old 11-05-2011, 07:51 PM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by qanda View Post
Funny you should mention the device being a bit slower. I do notice that it lags a command such as Back or X. It takes a second or so to compete the action, so the time factor on the 'when' may be the answer.
That shouldnt be making it lag , if you look at any process manager you will see that the MortScript.exe process uses like 1 percent of CPU and only for like one second . there was only one script i wrote which resulted in MortScript.exe using 99 percent CPU xP and resulted in SOD . but fear not , i have come a long ways since those days xD

[QUOTE[I am glad I could come up with a direction for a possible solution, except I have no idea how I got to it. [/QUOTE]
Simply , you are the one with the device , not me , i cant diagnose it only you can

Quote:
Me too. I'm only playing around on MS FS testing out some new flight procedures for some upcoming flights.
(I know your going to ask. Yes, I am). lol


Regards,
QA

Woahhh , i like so hate you right now . lol JKJK . my uncle has his pilot's license . when i was younger he used to have a Cessena , and took us up for flights , ugh i miss those days . but then the cost of a hanger was too much so he got rid of it . i keep bugging him to take me up again but he always responds with "when you pay for it i'll fly" lol . I have MS FSX on my desktop and its my play toy its the closest i can get to the real thing xP i fly to florida and cali when i wanna go on my dream vacations do you fly commercial airliners ? personal ? or freight ? god dude im so jealous .. =D> btw howard Hughes is my favorite guy in the whole world . and the Aviator is my 2nd favorite movie of all time .
Reply With Quote
  #6 (permalink)  
Old 11-05-2011, 08:33 PM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

try this
Attached Files
File Type: cab elesbb Diagnosing.cab (1.6 KB, 2 views) Click for barcode!
Reply With Quote
  #7 (permalink)  
Old 11-05-2011, 09:51 PM
qanda's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TouchPro2
Carrier: Sprint
Location: USA
 
Join Date: Jul 2011
Posts: 86
Reputation: 65
qanda is becoming a great contributor
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by elesbb View Post
try this
Ok, I installed it. Now what?

I ran the procedure again: Tap icon, wait, answer YES, tap OK and tried it. Still nothing. Is their a log you need me to post?

QA
Reply With Quote
  #8 (permalink)  
Old 11-05-2011, 10:26 PM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by qanda View Post
Ok, I installed it. Now what?

I ran the procedure again: Tap icon, wait, answer YES, tap OK and tried it. Still nothing. Is their a log you need me to post?

QA
after installing of diagnostic cab , soft reset . my bad :P
Reply With Quote
  #9 (permalink)  
Old 11-05-2011, 11:25 PM
qanda's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TouchPro2
Carrier: Sprint
Location: USA
 
Join Date: Jul 2011
Posts: 86
Reputation: 65
qanda is becoming a great contributor
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

Quote:
Originally Posted by elesbb View Post
after installing of diagnostic cab , soft reset . my bad :P
I'v heard of step by step instructions but this is comical.

I did a soft reset. What is supposed to happen?

I ran the procedure again. It still doesn't work, and I don't see any diagnostic result.
You need to give me a little more to go on.

What do I do now? What am I looking for?

QA

Last edited by qanda; 11-05-2011 at 11:27 PM.
Reply With Quote
  #10 (permalink)  
Old 11-05-2011, 11:29 PM
elesbb's Avatar
Super genious in training
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
Location: PA
 
Join Date: Jun 2010
Posts: 1,198
Reputation: 1600
elesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on repelesbb is halfway to VIP status based on rep
Mentioned: 42 Post(s)
Tagged: 0 Thread(s)
Re: How to lock volume buttons while phone is locked?

have you tried opening something , locking , then unlocking ?
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:39 PM.


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