I have the following code which is the equivalent of pressing "windows" & "F" to bring up the search bar. (courtesy of mvidas - thanks!)
If I have this in a live powerpoint slideshow, it brings the search bar up behind the active slideshow, so I would like the modify the code to add "Alt"&"Tab" to bring it to the front.
Public Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
keybd_event &H5B, 0, 0, 0 'windows key
keybd_event &H46, 0, 0, 0 'F
keybd_event &H5B, 0, &H2, 0 'keys up
Obviously it would be "keybd_event...", but I'm not sure what the codes for the rest of the keyboard are.
Any help greatly appreciated