1. Naveen M R
  2. PowerBuilder
  3. Wednesday, 1 April 2020 04:30 AM UTC

On clicking search button, CTRL + F action should happen. How to trigger keybd_event method for keys CTRL  &  F together? 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 1 April 2020 10:36 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

 

Sorry for the multiple corrections. The keyb_event API is obsolete, but does still kinda works.

Maybe this will help.

https://www.rgagnon.com/pbdetails/pb-0041.html

 

I've tried to use the send() function, and some things like "DEL" work, but others like "BACKspace" don't.

I'm going to post this as a separate question.

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 1 April 2020 14:13 PM UTC
  2. PowerBuilder
  3. # 2

Greetings, Naveen -

Are you wanting to send the simulated Ctrl+F keystrokes internally to your PB application or to another application from your PB application?

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 1 April 2020 14:16 PM UTC
  2. PowerBuilder
  3. # 3

Why can't you just have the button click event and the window key event both call the same window function.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.