Gordoni Posted December 31, 2008 Share Posted December 31, 2008 From help file : ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") I wanna to click B on keyboard in window Can any one help me with that? Gordoni Link to comment Share on other sites More sharing options...
mwpeck Posted December 31, 2008 Share Posted December 31, 2008 ControlSend("Window Name Here", "", "", "b")That will simply push "b" in whatever window name you use. Link to comment Share on other sites More sharing options...
FireFox Posted December 31, 2008 Share Posted December 31, 2008 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 More sharing options...
Gordoni Posted December 31, 2008 Author Share Posted December 31, 2008 what if window changing name ( winamp ) Example name of song - Winamp I wanna make hotkeyset for that and when winamp is minimalized i can play / stop etc Link to comment Share on other sites More sharing options...
FireFox Posted December 31, 2008 Share Posted December 31, 2008 what if window changing name ( winamp ) Example name of song - Winamp I wanna make hotkeyset for that and when winamp is minimalized i can play / stop etc use class of window "[CLASS:your class]" Cheers, FireFox. Link to comment Share on other sites More sharing options...
Gordoni Posted December 31, 2008 Author Share Posted December 31, 2008 I was try ControlSend("[CLASS:BaseWindow_RootWnd]","",'',"b") and doesnt work adding screen Link to comment Share on other sites More sharing options...
TurionAltec Posted January 1, 2009 Share Posted January 1, 2009 I was try ControlSend("[CLASS:BaseWindow_RootWnd]","",'',"b") and doesnt work adding screenWinamp 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now