13-05-2007, 10:36 AM
For an example, my program is focused on another program using if statements etc. on it.
Focusing on another window
|
13-05-2007, 10:36 AM
For an example, my program is focused on another program using if statements etc. on it.
13-05-2007, 12:34 PM
you want to know if a window is in focus or how to put it in focus?
13-05-2007, 12:45 PM
frmGAYWINDOW.setfocus
Quote:Robin:
13-05-2007, 03:11 PM
example..
Code: On Error Resume Next
13-05-2007, 03:16 PM
Would it be possible to set it true or false? Exactly what would happen if you focused on that text box?
13-05-2007, 03:45 PM
Xerô Wrote:Would it be possible to set it true or false? Exactly what would happen if you focused on that text box? To unfocus, you'll need to setfocus something else. Quote:Robin:
13-05-2007, 07:28 PM
if windowblah.visible then
windowblah.setfocus else frmmirage.setfocus end if or something
14-05-2007, 03:08 AM
No I mean a whole different program. XD Should've been more clear.
14-05-2007, 03:11 AM
I think using .Focus will work on any project, because its not an function, its apart of VB.
14-05-2007, 07:27 AM
yes but that will only work within a single program
Kuja, I think if you want to do that, you have to find out hwnd and all that malarke for the window you want to set in focus so you can do that (Just guessing, that what you need when you want to rearrange window Zorder) I don't know code for setting focus specifically, but I know code to rearrange window zorder which can also set focus if you want, so its basically the same thing. I'll find it after school if you still want it |
« Next Oldest | Next Newest »
|