focus across windows!!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Cool_bombom Offline
Senior Member
Posts: 119
Joined: Oct 2008
Reputation: 1
Post: #1
Hi

is there any way to check focus across windows. i wan't to check if a grouplist has focus in the home windows from the videooverlay, and then make the videoocerlay slide to the side. is this possible and howConfused

i have already tried:

Window(0).ControlGroup(3551).HasFocus()
Window(Home).ControlGroup(3551).HasFocus()
ControlGroup(3551).HasFocus()
ControlGroup(3551).HasFocus

with no luck!!

cheers
c_bb
(This post was last modified: 2012-05-27 14:09 by Cool_bombom.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #2
ControlGroup(ID).HasFocus

[Image: sig_zps3af3b48e.jpg]
find quote
Cool_bombom Offline
Senior Member
Posts: 119
Joined: Oct 2008
Reputation: 1
Post: #3
Hi Hitcher

thnx for the quick reply, but as i wrote in my post that does not work .... i also tried it without the () in the end ... stil no luck!!

do you have any other ideas?? thnx in advance :-)

cheers
c_bb
(This post was last modified: 2012-05-27 14:10 by Cool_bombom.)
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #4
Is it definitely a grouplist you're trying to check has focus?

Pasting the whole home.xml to pastebin might help us.

[Image: sig_zps3af3b48e.jpg]
(This post was last modified: 2012-05-27 15:02 by Hitcher.)
find quote
Cool_bombom Offline
Senior Member
Posts: 119
Joined: Oct 2008
Reputation: 1
Post: #5
just so we understand each other :-)

it is not in home.xml i have the problem, it is in videooverlay.xml i have the problem!! so i'm trying to read a focus state in home.xml (window 0) from videooverlay.xml (window 2904)!!

hope it makes sence??

cheers
c_bb
(This post was last modified: 2012-05-27 15:30 by Cool_bombom.)
find quote
`Black Offline
Skilled Skinner
Posts: 2,072
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #6
You can't check focus across windows, only in the current window. It may work with a script but I'm not sure.

Edit: You should be able to do it with a script... you have to grab the home window (10000), then you can get the focus id (getFocusId()), compare it to the id of your grouplist and set a property if it's focused. Then you can slide the overlay with a conditional animation.

[Image: xp1080-21.png]
(This post was last modified: 2012-05-27 16:21 by `Black.)
find quote