Jump to content

iTunes Com object problem


Recommended Posts

I have a question about the OBJect iTunes - i want to switch out and into Mini player but autoit is unable to execute my command . How should i write it?

;For example
$iTunes=ObjCreate("iTunes.Application")
$iTunes.MiniPlayer();it says it needs a boolean arguement but it does not work that way

Thanks in advance

Link to comment
Share on other sites

try my iTunes UDF :)

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Anyway it's:

$iTunes=ObjCreate("iTunes.Application")
$iTunes.MiniPlayer = 1 ;miniplayer
$iTunes.MiniPlayer = 0 ;full mode

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Hmm... just tried it and it does not seem to work :)

It says the requested operation with the object failed

func Mini_Show_hide()
    if $check=true Then
        $check=False
        $iTunes.MiniPlayer=1
    elseif $check=False Then
        $check=True
        $iTunes.MiniPlayer=0
    EndIf
EndFunc
Link to comment
Share on other sites

DOH!

sorry... this is the right code!

Func _iTunes_MiniPlayer($state = 1)
    If $state = 1 Then
        $iTunes.Browserwindow.MiniPlayer = 1
    Else
        $iTunes.Browserwindow.MiniPlayer = 0
    EndIf
EndFunc   ;==>_iTunes_MiniPlayer

:)

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...