Jump to content

pidgin song setter


Seagul
 Share

Recommended Posts

How Do I monitor when title of window changes heres what I have so far trying make a pidgin song changer

Global $title

WinGetTitle("[CLASS:{97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}]", "") ; Gets Song Title

ControlSetText("Buddy List", "", "gdkWindowChild5", "") ; Clears Box

ControlSend("Buddy List", "", "gdkWindowChild5", $title) ; Sets Song Title

Link to comment
Share on other sites

Try this code on for size. Modify it to suit your needs. =P

$Handle=WinGetHandle("Untitled - Notepad")
$OldTitle=WinGetTitle($Handle)
While 1
    Sleep(100)
    $NewTitle=WinGetTitle($Handle)
    If $NewTitle <> $OldTItle Then
        $OldTitle=$NewTitle
        MsgBox(0,"Title Changed","It is now:"& $NewTitle)
    EndIf
WEnd

-Mike

Edited by P5ych0Gigabyte
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
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...