Jump to content
Sign in to follow this  

How to get control of buttons in foreign windows...

Recommended Posts



I would like to write a little prog that controls Winamp's Streamripper plugin, because it has no hotkey function. I have already written a version, which does that by clicking onto the buttons in streamripper by using the mouseclick() function. The problem is, if Winamp has been minimized, its window cannot be restored by an AutoIt-command, to do the click, no matter what kind of command that is. I've tried everything. It doesn't resize its main window, neither streamripper. Only the playlist window.

Now I'd like to write a new version, which clicks on the "record" button of streamripper by using the ControlClick() function, while streamripper has been minimized. Will this work?

I don't have the control handle informations for the start/stop buttons of streamripper, so I also need a tool or command to read them out.

That's the code of the old version:

$PosOld = MouseGetPos ()
WinActivate ("Winamp")
WinSetState("Winamp", "", @SW_RESTORE)
WinWaitActive ("Streamripper")
$Offset = WinGetCaretPos ()
$Pos = MouseGetPos ()
MouseClick("Left", 35+$Offset[0], 135+$Offset[1], 1, 0)
MouseMove($PosOld[0], $PosOld[1], 0)

Plz, help.


Edited by Zoli19721

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