PDA

View Full Version : Help: Infinite Loop problem



Ron
October 13th, 2002, 12:55 PM
Use states instead of disabling them.

The problem with enabling the groups is the following:

Both groups have the same eventstring learned to it.

1st group is enabled. You press the button on the remote, Girder executes the first group. In that group you enable the 2nd group and disable the 1st group. Girder is still executing you 1st button press. Remember Girder traverses the whole tree searching for matches. Girder after finishing the first multigroup continues with the second, now enabled, multigroup. And voila there is the problem, cause now the 2nd group gets execute on the first button press.

So to solve this use the states, I know these are difficult to understand at first but give it a try also read about them in the helpfile and here on the forum.

SteveV
October 13th, 2002, 12:55 PM
Set the anti-repeat wait time to a value of 1000 (1 second) or so. That should prevent girder from seeing multiple repeat ir signals from a single button press.

-- Steve

jediperry
October 13th, 2002, 12:55 PM
A more versatile way of doing this would be to use the 'Window Exists' function when the ir code is recieved and then have separate winamp open and winamp close commands that are exicuted appropriatly.
This way, if winamp has been exicuted by other means, you won't have to press the remote button twice to close it.

Mike

scarlethippo
October 13th, 2002, 12:55 PM
Hi, I would like to be able to run and close winamp using one button (like a toggle switch) only i cant get the macros to work.
I have the following macros: (Run Winamp and Close Winamp are both bound to the same Button on my remote)

[Run Winamp]
-Execute Winamp
-Enable 'Close Winamp'
-Disable 'Run Winamp'

[Close Winamp]
-Exit Winamp
-Enable 'Run Winamp'
-Disable 'Close Winamp'

I was hoping this would toggle between which multigroup was enabled. But instead it just runs throught the loop about 10 times and stops. What have i done wrong?

scarlethippo
October 13th, 2002, 12:55 PM
ok, i have just checked, and it works when i bind them to differenc buttons. So i have to make it to that holding down the remote button is ony read as one push, and not multiple pushes. How do i do this?

scarlethippo
October 13th, 2002, 12:55 PM
i tried that, it didnt make any difference at all :sad: