Opening a cash Drawer connected to PC using access2000
Posted on 2006-03-29
i am trying to open a cash drawer connected to a PC via a USB trigger. trigger came with a small exe file which opens the drawer when run with "RunCommand" under access 2000. however i also need to check the open/close status of the drawer. i tried using MSCOMM control but that conflicts with the orignal exe file as both try to work on the same com port.
so i think i would'nt be able to use them both together and have to open & check the status of the drawer using my own code, as the exe file provided just opens it.
i managed to track the open close staus of drawer by "mscomm1.CTSHolding" property. but cant open the drawer itself.
i have tried everything i can think of but its not working. i tried sending diff values to the port using ".output" property but with no gain. may be i am not using ".output" properly. i tried most of the code available here but cash drawer does'nt wanna open.
alternatively is there any way to use the exe file & MSCOMM together i-e (one opens the drawer one checks the status) but as i have to open port using mscomm at form load & when the exe file tries to open the drawer it finds the port alreday open.
Hope i made myself clear :)
any help appriciated THANKS