![]() |
Focusing on another window - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Focusing on another window (/showthread.php?tid=932) |
Focusing on another window - Tony - 13-05-2007 For an example, my program is focused on another program using if statements etc. on it. - funkynut - 13-05-2007 you want to know if a window is in focus or how to put it in focus? - Robin - 13-05-2007 frmGAYWINDOW.setfocus - Da Undead - 13-05-2007 example.. Code: On Error Resume Next - Ramsey - 13-05-2007 Would it be possible to set it true or false? Exactly what would happen if you focused on that text box? - Robin - 13-05-2007 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. - Tosuxo - 13-05-2007 if windowblah.visible then windowblah.setfocus else frmmirage.setfocus end if or something - Tony - 14-05-2007 No I mean a whole different program. XD Should've been more clear. - Da Undead - 14-05-2007 I think using .Focus will work on any project, because its not an function, its apart of VB. - funkynut - 14-05-2007 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 |