dim keyPressed
Sub TWUniButton1Click(Sender)
select case keyPressed
case 16
msgBox "button pressed with shift"
case 17
msgBox "button pressed with ctrl"
case 18
msgBox "button pressed with alt"
case else
msgBox "button pressed with no key"
end select
keyPressed = 0
End sub
Function SC_KeyDown(Key, Shift)
keyPressed = key
SC_KeyDown = 0
End Function
You can try this code:
Code:dim keyPressed Sub TWUniButton1Click(Sender) select case keyPressed case 16 msgBox "button pressed with shift" case 17 msgBox "button pressed with ctrl" case 18 msgBox "button pressed with alt" case else msgBox "button pressed with no key" end select keyPressed = 0 End sub Function SC_KeyDown(Key, Shift) keyPressed = key SC_KeyDown = 0 End Function
Just consider that this code worked for me only in the Director and not in VTW or ActiveX