| Mirage Source http://miragesource.net/forums/ |
|
| Focusing on another window http://miragesource.net/forums/viewtopic.php?f=201&t=1798 |
Page 1 of 1 |
| Author: | Tony [ Sun May 13, 2007 10:36 am ] |
| Post subject: | Focusing on another window |
For an example, my program is focused on another program using if statements etc. on it. |
|
| Author: | funkynut [ Sun May 13, 2007 12:34 pm ] |
| Post subject: | |
you want to know if a window is in focus or how to put it in focus? |
|
| Author: | Robin [ Sun May 13, 2007 12:45 pm ] |
| Post subject: | |
frmGAYWINDOW.setfocus |
|
| Author: | Da Undead [ Sun May 13, 2007 3:11 pm ] |
| Post subject: | |
example.. Code: On Error Resume Next
frmMirage.txtMyTextBox.SetFocus |
|
| Author: | Ramsey [ Sun May 13, 2007 3:16 pm ] |
| Post subject: | |
Would it be possible to set it true or false? Exactly what would happen if you focused on that text box? |
|
| Author: | Robin [ Sun May 13, 2007 3:45 pm ] |
| Post subject: | |
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. |
|
| Author: | Tosuxo [ Sun May 13, 2007 7:28 pm ] |
| Post subject: | |
if windowblah.visible then windowblah.setfocus else frmmirage.setfocus end if or something |
|
| Author: | Tony [ Mon May 14, 2007 3:08 am ] |
| Post subject: | |
No I mean a whole different program. XD Should've been more clear. |
|
| Author: | Da Undead [ Mon May 14, 2007 3:11 am ] |
| Post subject: | |
I think using .Focus will work on any project, because its not an function, its apart of VB. |
|
| Author: | funkynut [ Mon May 14, 2007 7:27 am ] |
| Post subject: | |
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 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|