Jump to content
Fivewin Brasil

Leitor Biométrico FS-80


Marca

Recommended Posts

Bom dia pessoal.
Estou com um leitor aqui CIS FS-80
Alguém pode me dizer o caminho das pedras ????
Estou com um aparelho destes aqui e preciso de algum exemplo de como rodar isso no five

No Windows já esta instalado e funcionando.

Alguém teria algum material a respeito ? Tudo q. encontrei falam do uso de uma dll GrFinger.dll

Sendo que junto deste modelo as dlls que vieram não batem

Link to comment
Share on other sites

Tenho exemplo para leitor de marca diferente. Serve?

Se tiver o SDK, dá para programar esse aí. Deve ser a mesma ideia.

Exemplo:

Ptit01 := TestSDK()
FUNCTION TestSDK()
   local aFiles := Array( ADir( CurDrive()+":\"+GetCurDir()+"\DIGITAL\D*.TXT" ) )
   local ADir   := ADir( CurDrive()+":\"+GetCurDir()+"\DIGITAL\D*.TXT", aFiles )
   IF cFReader != "Fingkey Hamster - Nitgen"
      MsgAlert("Configure a biometria no menu 'Configurações' -> 'Gerais'","Erro de configuração")
      RETURN " "
   ENDIF

   TRY
      objNBioBSP := CreateObject('NBioBSPCOM.NBioBSP')
      objDevice := objNBioBSP:Device
      objExtraction := objNBioBSP:Extraction
      objMatching := objNBioBSP:Matching

      objExtraction:WindowStyle := 0;

      objDevice:Open(255)
      objExtraction:DefaultTimeout := SECS("02:00:00") * 1000 // Duas horas convertidas para milliseconds
      objExtraction:Capture()
      cTempl := objExtraction:TextEncodeFIR()

      cDedo := ""
      IF LEN(aFiles) > 0
         FOR nDedo := 1 TO LEN(aFiles)
            cTxtFile := CurDrive()+":\"+GetCurDir()+"\DIGITAL\"+aFiles[nDedo]
            objMatching:VerifyMatch(cTempl, MEMOREAD(cTxtFile))
            if objMatching:ErrorCode <> 0
              *msginfo("error")
            else
               if objMatching:MatchingResult = 1
                  cDedo := aFiles[nDedo]
                  EXIT
               endif
            endif
         NEXT
      ENDIF
      cCodigo := "0"
      IF ! EMPTY(cTempl)
         SELECT 3 // Pessoal
         PESSOAL->(DBSETORDER(1))
         nRec := SUBSTR(cDedo,5,4)
         cCodigo := "0"
         IF ! PESSOAL->(DBSEEK(VAL(nRec)))
            PESSOAL->(DBGOTOP())
         ELSE
            cCodigo := ALLTRIM(STR(PESSOAL->CODIGO))
         ENDIF
      ELSE
         cCodigo := " "
      ENDIF
      objDevice:Close(255)
   CATCH
       MsgAlert( "ERRO! O leitor biométrico não está instalado em seu computador.", "Aviso")
       cCodigo := " "
   END
RETURN( cCodigo )
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...