cbouknight
Programmer
I'm trying to use WaitForKeys as follows:
I have "proceed" declared as boolean.
However, on executing the code, I get an error stating "Conversion from type '_ComObject' to type 'Boolean' is not valid."
How can I properly use this properly?
Code:
Proceed = Screen1.WaitForKeys(9000, "<Tab>")
If Proceed Then
MessageBox.Show("Done.")
Else
MessageBox.Show("No key pressed in 9 seconds.")
End If
I have "proceed" declared as boolean.
However, on executing the code, I get an error stating "Conversion from type '_ComObject' to type 'Boolean' is not valid."
How can I properly use this properly?