<rant>Please use code tags, they are your friends
They make reading much easier, and the autoit tags will link keywords directly to the documentation. It just makes everyone's lives easier.
Shellexecute("watchhdtvplay", "", "c:\documents and settings\desktop")
Sleep(10)
Controlclick("watchhdtvplay", "", "[class:button; text:open; instance:2]")
He is my info from Info Tool
Basic Window Info
Title-Watchhdtvplay
Class-#32770
Basic Control Info
Class-Button
Instance-2
Control Tab from Info Tool
Class-Button
Instance-2
Classnamenn-Button2
Advanced(Class)-Class:Button; Instance:2
ID-1000
Text-Open
Pos-354,29
Size-54,20
Controlclick Coords-29,14
Style-0x0018000
Exstyle-0x00000004
Handle-0x00302ee</rant>
It's possible that the documentation is just a bit more of a stickler for details, but you might be having a problem because of improper capitalization. Try this:
Shellexecute("watchhdtvplay", "", "c:\documents and settings\desktop")
WinWaitActive ('Watchhdtvplay'); Just demonstrating a different way of doing it, possibly faster, definitely more reliable
Controlclick("Watchhdtvplay", "", "[class:Button; text:Open; instance:2"); capitalized to match output from Info Tool
It might seem like cheating a little, but you can often just copy and paste the bit from the 'Advanced(Class)' line and be done with it (no typing - yay!).