Results 1 to 9 of 9

Thread: Window list

  1. #1

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384

    Window list

    I would like to force a click on a window in my menu's windowlist. Can I do that.
    COBOL sa suce !!!

  2. #2
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    You could use the sendkeys function to send it, jst make sure you have all of the shortcuts set up for your menu, it might be problematic because windows would be coming and going and the count would get screwed up.

  3. #3

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384
    Ok but can I reference those menu created like i dont know mnuWindowlist(1), etc.. Do they have a name??
    COBOL sa suce !!!

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    couldn't you just bring the desired window to the front?

    using frmMyForm.SetFocus

  5. #5
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    I don't think so, is this an MDI application? When you make the MDI Child windows you could have the form be a public variable that way you can access it from another sub. Like this:

    VB Code:
    1. 'in declarations
    2. Dim Childs(100) as new frmChild, CurrentNew as integer
    3.  
    4. sub command1_click()
    5. 'make the new child
    6. if currentnew = 100 then
    7.   msgbox "Already opened 100, out of memory"
    8.   exit sub
    9. end if
    10. childs(currentnew).show
    11. currentnew=currentnew+1
    12. end sub
    13.  
    14. sub command2_click()
    15. 'call up child #42
    16. childs(42).show
    17. end sub

    Is that what you wanted?

  6. #6

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384
    See thats my problem if you see my other post from today(here and in API) everything is all f****d up ; nothing is working must be sometyhing somewhere in my code like
    VB Code:
    1. If WorksGood Then DontWork
    COBOL sa suce !!!

  7. #7

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384
    Well not exactly numtel but your form array gives me an idea and yes it is MDI
    COBOL sa suce !!!

  8. #8
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    i've gotten so worked into a program before where I had things contradicting eachother

  9. #9

    Thread Starter
    Hyperactive Member maxl's Avatar
    Join Date
    Jan 2002
    Location
    Montréal
    Posts
    384
    I'm just wondering about the form array should I set the the form to nothing when it closes
    COBOL sa suce !!!

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