Jump to content
Sign in to follow this  
mladost1

iTunes Com object problem

Recommended Posts

mladost1

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

Share this post


Link to post
Share on other sites
torels

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

Share this post


Link to post
Share on other sites
torels

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

Share this post


Link to post
Share on other sites
mladost1

Even though u helped me inside the forum i will check ur info :) I just wanted to know how to do it myself thats why i asked.

~Thanks torels :)

Share this post


Link to post
Share on other sites
mladost1

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

Share this post


Link to post
Share on other sites
torels

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.