Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

checkConnectedPad returns true if the configured signature device is available or if a new device has been found.

 

Combinations

here are some combinations between the parameters and the status of the connected device. With the BLIND-SEARCH Driver-Option, you can hide the search dialog, if multiple devices are connected the first which is found will be automatically selected. 

AutostartSerchingReadAndSaveInRegistryPadsettingsPad is ConnectedReturn Value of checkConnectedPad 
true

true

Registry value: empty

emptyYes

true

(first found pad is being used)

true

true

Registry value: empty

emptyNofalse
true

true

Connected Pad

is stored in Registry

emptyYestrue
true

true

Different Pad

is stored in Registry

emptyYes

false

(because the stored Pad from Registry is not connected)

true -

PadSettings from

connected Pad

Yestrue
true -

PadSettings from

connected Pad

Nofalse
true

true

Connected Pad

is stored in Registry


PadSettings from

disconnected Pad

Yes

false

(Padsettings has higher priority than ReadAndSaveInRegistry)

falsetrueempty Yes

false

(with BLIND-SEARCH return value is true)

 

falsefalseempty No

false

 

false 
false 

true

Different Pad

is stored in Registry

 

 
empty  YesYes 

 

 false
     
     

 

false

(because stored Pad is not found and not AutoStartSearch is false)

false -

PadSettings from

connected Pad

Yestrue
false -

PadSettings from

disconnected Pad

Yes

 false

(because PadSettings Pad is not found and not AutoStartSearch is false)

 

Sample

Code Block
languagec#
titleC#
linenumberstrue
If (noVisiableSearchDialog)
{
	//  Disable Search Dialog for checkConnectedPad
	const int DRIVER_OPTION1_BLIND_SEARCH_IN_CHECKPAD = 0x00000020;
	SigDev.SetDriverLong(0, SigDev.GetDriverLong(0) | DRIVER_OPTION1_BLIND_SEARCH_IN_CHECKPAD);
 
	//  Disable Tablet (PEN/Touch) and Mouse devices
	SigDev.SetDriverLong(59,1);
	SigDev.SetDriverLong(60,1);
	SigDev.SetDriverLong(61,1);
}
            
SigDev.checkConnectedPad("", true, true, true, ref padsetting);

...