Results 1 to 3 of 3

Thread: hWnd from shell

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    43

    Question

    Is it at all possible to run a program using the shell command, get get its hWnd without knowing its caption etc??? Or is there another command which will let you run an exe, and also get the shell command?
    Thanx
    Cease

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    'Result is a handle to the shelled process
    dim Result as long

    Result = Shell(FileWhichYouWantToShellExecute, vbWindowSize)

    look for SHELL in your vb helpfile

    DocZaf
    {;->
    VB5

  3. #3

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    43

    Talking Thanx man

    Right thanx for that, and i would have checked the help file but it has become corrupt (damn virri), and reinstalling is too much effort,
    Thanx again
    Cease

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