Home > Software engineering > [WINIO consult. DLL how simulation button has been pressed don't lift?]
[WINIO consult. DLL how simulation button has been pressed don't lift?]
Time:09-22
I according to the online tutorial, the code seems to have a problem, just mykeydown with keys out, don't need mykeyup ~
Please the teacher and master know how to press a button, after know to specify the length of the lift?
Is this SUB is there a problem?
Sub MyKeyDown (ByVal vKeyCoad As Long) ' Dim btScancode As Long BtScancode=MapVirtualKey (vKeyCoad, 0) KBCWait4IBE 'send data should wait for the keyboard buffer is empty before SetPortVal KBC_KEY_CMD, & amp; HD2, 1 'send keyboard write command 'SetPortVal function is used to write data to the port, its usage is SetPortVal port, to write data, the length of the write data KBCWait4IBE SetPortVal KBC_KEY_DATA btScancode, 1 'written key information, press the keys End Sub
Sub MyKeyUp (ByVal vKeyCoad As Long) Dim btScancode As Long BtScancode=MapVirtualKey (vKeyCoad, 0) KBCWait4IBE 'waiting for the keyboard buffer is empty SetPortVal KBC_KEY_CMD, & amp; HD2, 1 'send keyboard write command KBCWait4IBE SetPortVal KBC_KEY_DATA, (btScancode Or & amp; H80), 1 'written key information, release the button End Sub
In addition I winio. DLL XP debugging through, but Windows 7 according to the online tutorials, to open the test mode and add DLL to trust the root directory, But still tip can't find the DLL to consult how to use WINIO under Windows 7. DLL?
(often registered no pop-up safety warning, tutorials author said to pop up security warning, don't know is it because I signed up too many times so there is no warning)
Rectified didn't solve, pleaded with expert guidance!
CodePudding user response:
is hardware and I think, it is not a press is not raise way of sending data waiting for the lift instructions but when I press the hardware is once every 30 milliseconds to send?
CodePudding user response:
That could be a 64 - bit version of the relationship between behind May be the winio. DLL you are 32 bit
CodePudding user response:
Also used the DLL, you can try on your own, if DOWN not only run UP in TXT again function, can continuous input Numbers or characters