Sign in to follow this  
Followers 0
Seagul

pidgin song setter

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

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