Hi there,
I kindly ask you for some help because I'm stuck on a script for a customer.
My conditions work fine when alone, everytime I try to combine my conditions, i won't have any output when scanning (bulding the script returns no error).
Do you have an idea of what I'm doing wrong please ?
Device : MC92 CE, using TNCE v7.3.252
Thank you,
Nicolas
Script( KE1_REC )
String( sBarcode )
String( NewString )
Number( nBarcode )
Activate( On_Input, sBarcode, nBarcode )
Comment: : If(Boolean_And( String_Equal( Get_Screen_Text( 1, 1 ), "KE1 REC", 7, FALSE ),String_Equal( Get_Screen_Text( 4, 1 ), "LPN:", 4, FALSE ),Number_Equal(nBarcode, Get_Scan_Type_Value("QR CODE"))))
If( String_Equal( Get_Screen_Text( 1, 1 ), "KE1 REC", 7, FALSE ) )
If( String_Equal( Get_Screen_Text( 4, 1 ), "LPN:", 4, FALSE ) )
If( Number_Equal( nBarcode, Get_Scan_Type_Value( "QR CODE" ) ) )
NewString = String_Middle( sBarcode, 2, 18 )
Keypress_String( NewString )
Keypress_Key( "VT100", "Enter" )
NewString = String_Middle( sBarcode, 30, 6 )
Keypress_String( NewString )
Keypress_Key( "VT100", "Enter" )
NewString = String_Middle( sBarcode, 38, 10 )
Keypress_String( NewString )
Keypress_Key( "VT100", "Enter" )
NewString = String_Middle( sBarcode, 50, 5 )
Keypress_String( NewString )
Keypress_Key( "VT100", "Enter" )
End_If
End_If
Else
Scan_String( sBarcode, nBarcode )
End_If
Return