Sign in to follow this  
Followers 0
Stilgar

UDF to control Fire.fm (FireFox-AddOn) with FF.au3

3 posts in this topic

#1 ·  Posted (edited)

Here's an example for the FireFox-Addon Fire.fm how to control an FireFox-AddOn via the FF.au3:

_FF_FireFM.au3

Current functions in V5.0:

; _FF_FireFM_BanTrack

; _FF_FireFM_Fader

; _FF_FireFM_GetCurrentStation

; _FF_FireFM_GetFriends

; _FF_FireFM_GetNeighbours

; _FF_FireFM_GetSimilarArtists

; _FF_FireFM_GetStationHistory

; _FF_FireFM_GetTopArtists

; _FF_FireFM_GetTrackInfo

; _FF_FireFM_IsLoggedIn

; _FF_FireFM_IsPlaying

; _FF_FireFM_Loggin

; _FF_FireFM_LoveTrack

; _FF_FireFM_Player

; _FF_FireFM_PlayRandomStation

; _FF_FireFM_SetStation

; _FF_FireFM_SetVolume

Requirement(s).: FF.au3 >= 0.5.3.0 / MozRepl / FireFM

Example Script:

#Region Includes
#include <Array.au3>
#include <FF.au3>
#include _FF_FireFM.au3
#EndRegion Includes

If _FFConnect() Then
    _FF_FireFM_Player("Play")
    If Not @error Then
        Sleep(3000)

        ; fading volume
        _FF_FireFM_Fader("out")
        _FF_FireFM_Fader("in")

        ; get title information
        $a = _FF_FireFM_GetTrackInfo()
        _ArrayDisplay($a)
        Sleep(3000)

        ; skip the current song
        _FF_FireFM_Player()

        ; stop playing
        Sleep(10000)
        _FF_FireFM_Player("Stop")
    EndIf
EndIf

Exit
Edited by Stilgar

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  
Followers 0