|
-
Feb 8th, 2011, 12:39 AM
#1
Re: VB6 Form and PDF
Just add code to the function that fires when the key is pressed. In the article you linked, that would be in the IsHooked function.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Feb 8th, 2011, 01:02 AM
#2
Thread Starter
New Member
-
Feb 8th, 2011, 03:47 AM
#3
Thread Starter
New Member
Re: VB6 Form and PDF
it's working now!!  
I just placed
This Code:
If WebBrowser1.Busy = False Then
WebBrowser1.Navigate "some pdf file on the lan"
End If
Thanks to gigel_hifi and especially to jemidiah
-
Feb 9th, 2011, 04:01 AM
#4
Thread Starter
New Member
Re: VB6 Form and PDF
Ooops now I have a new problem.
The keyboard hook is working fine but when I press F1, it unloads the form containing the keyboard hook but it seems the F1 command is passed over to another form and closes it too.
All forms exit through F1.
Is there a way to clear the keyboard buffer used by the keyboard hook?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|