Results 1 to 7 of 7

Thread: Start Menu *Ahhhhhh!*

  1. #1

    Thread Starter
    Addicted Member Cbomb's Avatar
    Join Date
    Jul 1999
    Posts
    153

    Arrow

    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

  2. #2
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    yeah, hold on a sec pleeze

  3. #3
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    damn, not workin, still seaching for info

  4. #4
    Lively Member
    Join Date
    Sep 2000
    Posts
    126
    hmmm i thought i could just use ascii value for start button on my keyboard, but it wont let me get the value.....

  5. #5
    Lively Member
    Join Date
    Aug 2000
    Location
    Dullawhere
    Posts
    100
    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 !"

  6. #6

    Thread Starter
    Addicted Member Cbomb's Avatar
    Join Date
    Jul 1999
    Posts
    153

    Lightbulb 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

  7. #7
    Hyperactive Member dsy5's Avatar
    Join Date
    Jul 2000
    Location
    Lockport, NY
    Posts
    362
    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
  •  



Click Here to Expand Forum to Full Width