Jump to content

ControlSend


Gordoni
 Share

Recommended Posts

From help file :

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")oÝ÷ Øv­¡Ébr@hG²n«v)ðwhÀ&§j|¨è^Â+a¶­Ý¢x¿ªê-{jh²ÈX­É«­¢+Ù]¥¹Ñ¥ÙÑ ÅÕ½ÐíÝ¥¹½ÜÅÕ½Ðì¤)]¥¹]¥ÑÑ¥Ù ÅÕ½ÐíÝ¥¹½ÜÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°Ì¤)M¹ ÅÕ½ÐíÅÕ½Ðì¤oÝ÷ Ù«­¢+Ù
½¹Ñɽ±M¹ ÅÕ½ÐíÝ¥¹½ÜÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÌäíÐ%Ý¥Ñ ÔÍ¥¹¼¹áÌäì°ÅÕ½ÐíÅÕ½Ðì¤

Cheers, FireFox.

Link to comment
Share on other sites

I was try ControlSend("[CLASS:BaseWindow_RootWnd]","",'',"b")

and doesnt work

adding screen

Winamp has its own options for hotkeys. I have an older version, but: Options->preferences->global hotkeys

You can use the option "WinTitleMatchMode" to allow Autoit to search anywhere within the Title. To allow it to be more robust, I would search for the Windle handle first, ensure that handle is only for Winamp (by checking the owning Process), then once you've confirmed it you can go accordingly.

#include <Process.au3>
Opt("WinTitleMatchMode",2) ;Allow Search for title substrings
$Winamphandle=WinGetHandle("[TITLE:Winamp; CLASS:Winamp v1.x]")
$winampPID=WinGetProcess($Winamphandle)

If _ProcessGetName ($winampPID) <> "winamp.exe" Then
    MsgBox(16, "Error", "Couldn't identify Winamp")
    Exit
EndIf

ControlSend($Winamphandle,"","trytoidentifycontrolname","b")

You identified the window, but not the control. From your example, it might be something like:

ControlSend($Winamphandle,"","[CLASS:BaseWindow_RootWnd]","b")

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...