PDA

View Full Version : Changing Focus



grantos
September 7th, 2007, 02:01 AM
Hi, i have been using Girder 4 to control winamp for some time and it works very well, however, every now and then winamp is not in focus and it is a pain to get up and manually select it before the remote will work properly again.

I have since tried to implement the Windows > Focus command in the play / pause command for winamp and no matter what i try i cant get it to work.

The strange thing is that when i right click on the play / pause command and click TEST, everything works beautifully... winamp is focused, on screen display tells me PAUSE and winamp actually pauses but when i step back and try and use the remote nothing happens.

As soon as i delete the focus command the remote works again. Is there a simple solution to this problem?

Regards
Grant.

http://www.grantos.org/temp/d.jpg

Rob H
September 7th, 2007, 02:58 AM
I'm wondering why there's a plus symbol next to the PAUSE event there?

It doesn't look like a macro event (at least in 4.0.15 that should look like a cog with a remote on top of it). I'd delete that event and try adding it to the parent node again.

I'd also move the Focus action to be the first action in that macro.

grantos
September 7th, 2007, 05:18 AM
have tried what you suggested but still no love....

anything else spring to mind?

http://www.grantos.org/temp/d2.jpg

Rob H
September 7th, 2007, 06:21 AM
When you press the remote button does Winamp come into focus? If it does then you may just need to add a short delay (Flow control|Wait) of about 100ms (don't bother with the window picker) after the Focus action.

grantos
September 7th, 2007, 07:23 AM
Hey.. no. nothing happens.

girder received the command though.

Rob H
September 7th, 2007, 07:33 AM
Hang on, what's that Window Conditional that I see in the screenshot? That looks to be attached to the group - I'd bet that it's set to "Window is foreground"

grantos
September 7th, 2007, 02:55 PM
Bingo!

I disabled it and it works perfectly.

Thankyou!!! :D

Rob H
September 7th, 2007, 03:15 PM
I'd just change it to "Window exists" rather than disabling it.

grantos
September 8th, 2007, 01:40 AM
Also works..


thanks again.