Home > database >  Want to send an application window a shortcut
Want to send an application window a shortcut

Time:09-17

Through the API function findwindow I found the handle to the window a=findwindow (0, 'window title') to get a handle value
But I want to send function to send the window a simulation of the keyboard keys in the past, such as sending a 'a' key shortcut button to trigger the window (why not achieve them?

CodePudding user response:

Send (h, 258, asc (' a '), 0)

CodePudding user response:

Long ll_handle



Send (ll_handle, 256, 9, Long (0, 0))//this is sending TAB

Send (ll_handle, 256, asc (' A ') and Long (0, 0))
  • Related