PDA

View Full Version : iTunes trouble



Shepard
August 18th, 2005, 10:28 AM
Hi!

I have loaded the iTunes control.GML from this page but it doesn't really work..
First it doesn't recognize iTunes starting so I have to start this initializing script manually.
Then when I press a control button on my remote for, let's say "Pause" the girder main window shows a "Parse error". Going into the script section for this command and doing the same it outputs:

error: attempt to call field `Pause' (a nil value)
stack traceback:
1: main of (none)

or later also sometimes (don't know when):

error: COM error:(.\src\library\tLuaCOM.cpp,403):Eine Schnittstelle, die für einen anderen Thread marshalled war, wurde von der Anwendung aufgerufen.

stack traceback:
1: method `Pause' [C]
2: main of (none)

Ok this is a german message generated by my system I think. :)
The irritating point is: if I go into the script section of the pause command and start this code snippet "iTunes.com:Pause ()" by clicking the "Run script" button it works just fine!
So what does my remote do that it generates these errors when executing the script?
Thanks for help in advance!

Simon

Promixis
August 18th, 2005, 10:35 AM
Simon, unless you need to control the object via COM I would use the other iTunes group in the download area.

Shepard
August 18th, 2005, 11:54 AM
Well it would be nice if this would work so I could try extending it a little bit..

The groups I see for download for iTunes are:

iTunes 0.04 iTunes COM interface. Script showing how to use iTunes via its COM object. Download the iTunes SDK for more information. 1545 Mike C 19-May-2004

iTunes 4.x ITunes 1916 Ron 25-Apr-2004

iTunes Control and OSD v1.3 Control iTunes via its COM interface. Includes an OSD for showing iTunes player information including cover art. Requires XP OSD. 1972 Mike C 23-Oct-2004

Do you refer to the second link? Well that doesn't work for me - it redirects me to www.proximis.com

Promixis
August 18th, 2005, 12:54 PM
Will check the other link...

Do you know any basic programming or scripting?

Shepard
August 18th, 2005, 02:17 PM
I haven't figured out LUA yet but I'm studying computer science so yes, I can code :)

Promixis
August 18th, 2005, 02:21 PM
well ok then...

the problem you are having above is related to which thread the luacom code was called from... and this is different depending on how the code is executed... ie the play button or by an event.

This problem has been resolved in girder 4.

For 3.3 you will have to run all the code by events or when developing by pressing the play button. Painful. :evil:

Shepard
August 18th, 2005, 04:18 PM
muchos gracias!