|
-
Feb 9th, 2001, 07:19 PM
#1
Thread Starter
Addicted Member
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.
Cbomb
Techie 
-
Feb 9th, 2001, 07:57 PM
#2
Lively Member
yeah, hold on a sec pleeze
-
Feb 9th, 2001, 08:03 PM
#3
Lively Member
damn, not workin, still seaching for info
-
Feb 9th, 2001, 08:06 PM
#4
Lively Member
hmmm i thought i could just use ascii value for start button on my keyboard, but it wont let me get the value.....
-
Feb 9th, 2001, 08:13 PM
#5
Lively Member
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.
I am stupid..but I AM 15 !
*a line from a song i wrote*
""""""""""""""""""""""""""""""""""""""""
so i came to say life bites away
whats done is done the past is gone
i cant believe the sh*t I know
i always wish it would just go
""""""""""""""""""""""""""""""""""""""""
"remember you Ps And Qs Boy !"
-
Feb 9th, 2001, 08:28 PM
#6
Thread Starter
Addicted Member
Shell
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.
Cbomb
Techie 
-
Feb 9th, 2001, 08:36 PM
#7
Hyperactive Member
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
Last edited by dsy5; Feb 9th, 2001 at 09:38 PM.
Donald Sy - VB (ab)user
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
|