| Author | 
                
Topic | 
                  | 
              
              
                | 
                 KnowledgeBase 
                 
                
                296 Posts  | 
                
                  
                    
                      
                       Posted - 26 Feb 2002 :  15:21:43
                        
                        
                      
  | 
                     
                    
                       Q: How can I initiate a touch panel calibration through software?
  See the update below for current recommendations.
 There are several ways to do this.  For portability of your application across ADS builds of CE, we recommend that you call \windows\ForceCal.exe.
  For further reading about touch panels on ADS products, see the touch panel topic index.
  ------------------ ADS Knowledge Base
  Edited 27-dec-2002 by akidder: Update \windows\calibrate.exe to \windows\ForceCal.exe. Remove requirement that "CalibrationData" registry key from [HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH] be deleted. Edited 7-Dec-2006 by akidder: Strike ForceCal information and refer to link below. | 
                     
                   
                 | 
              
              
                | 
                 Susan 
                 
                
                123 Posts  | 
                
                  
                    
                      
                       Posted - 11 Sep 2003 :  07:53:47
                        
                        
                      
  | 
                     
                    
                       BitsyX 4.10.23, 1.07
  Changed all CreateProcess calls from \windows\calibrate.exe to \windows\ForceCal.exe.  CreateProcess returns error code 0x2 - ERROR_FILE_NOT_FOUND | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 ctacke 
                 
                
                877 Posts  | 
                
                  
                    
                      
                       Posted - 11 Sep 2003 :  09:57:18
                        
                        
                      
  | 
                     
                    
                       #TouchCalibrate
  Update: TouchCalibrate() API
  Instead of calling ForceCal.exe, it is often simpler to just call the system TouchCalibrate() API, which will present the calibration screen.  TouchCalibrate is exported by coredll.dll and can be easily added to your code like this:
 
  // declaration extern "C" BOOL TouchCalibrate(void);
  ...
  //use TouchCalibrate();
 
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 pacsciinst 
                 
                
                15 Posts  | 
                
                  
                    
                      
                       Posted - 02 Sep 2005 :  15:19:22
                        
                        
                      
  | 
                     
                    
                       Hello:
  When using TouchCalibrate(), does it automatically persist the new registry settings for the touchscreen, or should one programatically flush the registry?
  Thanks | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 akidder 
                 
                
                1519 Posts  | 
                
                  
                    
                      
                       Posted - 06 Sep 2005 :  14:19:48
                        
                        
                      
  | 
                     
                    
                      |  Persistence is automatic.  Older systems save to adsload.reg; newer CE builds will save calibration to the hive-based registry. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 jeffyech 
                 
                
                22 Posts  | 
                
                  
                    
                      
                       Posted - 13 Feb 2008 :  12:21:23
                        
                        
                      
  | 
                     
                    
                      |  How would I force a new calibration through adsload.reg? | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 ljoy 
                 
                
                22 Posts  | 
                
                  
                    
                      
                       Posted - 13 Feb 2008 :  16:58:40
                        
                        
                      
  | 
                     
                    
                      |  Calibration data was stored in ADSLOAD.REG only in older systems.  In your newer system, a new calibration can't be forced from ADSLOAD.REG.  To force a new calibration, put an application into one of the \Startup folders.  Sample code can be found at Topic 1004. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Susan 
                 
                
                123 Posts  | 
                
                  
                    
                      
                       Posted - 14 Feb 2008 :  06:02:38
                        
                        
                      
  | 
                     
                    
                       Linda,
  Please define 'newer system'. Where is the cutoff point?  Which systems/boards?  I'm not only concerned with the boards that we are currently using, but also any to which we may consider migrating.  
  Thank you. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 ljoy 
                 
                
                22 Posts  | 
                
                  
                    
                      
                       Posted - 14 Feb 2008 :  10:50:07
                        
                        
                      
  | 
                     
                    
                      |  The switchover from RAM-based to Hive-based registries occurred during 2005. See Topic 1469 for general details.  You can also look at the CE files page for specific devices of interest. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 beitman 
                 
                
                63 Posts  | 
                
                  
                    
                      
                       Posted - 14 Feb 2008 :  13:09:27
                        
                        
                      
  | 
                     
                    
                       To clarify you can look at your system to determine if it is using HIVE registry.
  If your system has the "FlashFX Disk\Documents and Settings\" folder, then it includes HIVE registry and would fall under the 'newer system' for this discussion. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                |   | 
                
Topic | 
                  |