Is there an API call or something that brings up the Start Menu? or if not then is there something I can do to emulate it?
Thanks in advance.
Printable View
Is there an API call or something that brings up the Start Menu? or if not then is there something I can do to emulate it?
Thanks in advance.
yeah, hold on a sec pleeze
damn, not workin, still seaching for info
hmmm i thought i could just use ascii value for start button on my keyboard, but it wont let me get the value.....
nope..and CTRL has no KeyAscii so you couldn't use CTRL + ESC either.You could try and see if you can make the person's mouse mouse, like an auto clicker, but only once.
Well I would just "SendMessage" to it. But the thnig is, explorer.exe, which contains the taskbar...etc, wont be loaded. I'm making a shell repalcement (really simple) And I just want the start menu (or simpliar) to pop up. Right now I just have buttons for my most commonly used programs.
Ok, here ya go:
Code:Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Sub Command1_Click()
lhWnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lhWnd = FindWindowEx(lhWnd, 0&, "Button", vbNullString)
SetForegroundWindow (lhWnd)
SendKeys "~" 'Send the Enter keypress
End Sub