Jump to content

Search the Community

Showing results for tags 'Last.fm'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hey All! I'm a huge Last.FM fan (though Pandora is becoming a competitor now). I've been using last.fm for over 7 years. At work I love to stream Last.FM to my computer the whole day using the Last.FM windows scrobbler app. However the previous versions stunk! No matter how hard I tried with AutoIt, I could never find a way to play/pause the music and skip tracks using my windows keyboard media controls (winactivate never worked properly) - seriously spent hours trying various methods short of mouse coordinates. However, Last.FM recently updated their app to version 2.1 which is a new interface (with several handy keyboard shortcuts) So if you are running Windows Scrobbler version 2.1 or newer, this code should work. I created two scripts for my needs - play/pause, and skip track (both using keyboard shortcuts). After compiling, I assigned the programs to the keypress. However if you cannot do that with your keyboard software, you may be able to use a hotkeyset and use a while loop to run indefinately in the background..... Play/Pause Script ; Grab current active window $title = WinGetTitle("[active]") ;Select Last.fm Window Opt("WinTitleMatchMode", 2) WinActivate("Last.fm Scrobbler") Sleep(100) ;just for giggles sake I always use a short pause ;Send Pause Command Send("{space}") ;Activate previous window WinActivate($title) Skip Track Script ; Grab current active window $title = WinGetTitle("[active]") ;Select Last.fm Window Opt("WinTitleMatchMode", 2) WinActivate("Last.fm Scrobbler") Sleep(100) ;just for giggles sake I always use a short pause ;Send Next Track Command Send("^{right}") ;Activate previous window WinActivate($title)
×
×
  • Create New...