Check whether control is focused - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Check whether control is focused (/showthread.php?tid=94355) Check whether control is focused by ryxdp on 04-11-2010 at 09:12 AM
I have an EditControl that, when the text changes, checks whether it's focused (there is a secondary EditControl that does exactly the same). I searched the forums and found the GetFocus function via SetFocus, but the function doesn't seem to have any parameters. What I need to do is something like: code: Is there some way to do this? RE: Check whether control is focused by Matti on 04-11-2010 at 12:42 PM
GetFocus() returns the handle of the currently focused control, so you need to compare that return value to the handle of the control you want to react upon. js code:Or the short version: js code: RE: Check whether control is focused by ryxdp on 04-11-2010 at 11:59 PM
Thanks a lot, it seems to be working perfectly now |