Code:
#IF 0 ' *********************************************** macro to test if a virtual key is pressed use the following ASM instructions to respond ' either CmpKey(%VK_SHIFT) ! je label ' if VK_SHIFT is pressed ' or CmpKey(%VK_SHIFT) ! jne label ' if VK_SHIFT is not pressed ' ....... label: #ENDIF ' *********************************************** MACRO CmpKey(vk_key) GetAsyncKeyState vk_key ! and eax, &B00000000000000001000000000000000 ! rol eax, 17 ! cmp eax, 1 END MACRO ' ******************************************************