|
-
May 8th, 2002, 03:34 PM
#1
Thread Starter
Hyperactive Member
Window list
I would like to force a click on a window in my menu's windowlist. Can I do that.
-
May 8th, 2002, 03:36 PM
#2
Frenzied Member
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.
-
May 8th, 2002, 03:38 PM
#3
Thread Starter
Hyperactive Member
Ok but can I reference those menu created like i dont know mnuWindowlist(1), etc.. Do they have a name??
-
May 8th, 2002, 03:41 PM
#4
couldn't you just bring the desired window to the front?
using frmMyForm.SetFocus
-
May 8th, 2002, 03:44 PM
#5
Frenzied Member
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:
'in declarations
Dim Childs(100) as new frmChild, CurrentNew as integer
sub command1_click()
'make the new child
if currentnew = 100 then
msgbox "Already opened 100, out of memory"
exit sub
end if
childs(currentnew).show
currentnew=currentnew+1
end sub
sub command2_click()
'call up child #42
childs(42).show
end sub
Is that what you wanted?
-
May 8th, 2002, 03:45 PM
#6
Thread Starter
Hyperactive Member
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:
If WorksGood Then DontWork
-
May 8th, 2002, 03:49 PM
#7
Thread Starter
Hyperactive Member
Well not exactly numtel but your form array gives me an idea and yes it is MDI
-
May 8th, 2002, 03:50 PM
#8
Frenzied Member
i've gotten so worked into a program before where I had things contradicting eachother
-
May 9th, 2002, 09:30 AM
#9
Thread Starter
Hyperactive Member
I'm just wondering about the form array should I set the the form to nothing when it closes
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
|