NextEpisode1 Posted March 19, 2010 Share Posted March 19, 2010 First of all hello. I'l get directly to the subject. I need to send clicks on a certain button in a minimized window. I tried doing that using the ControlClick() function, BUT: it seems that this particular window has it's class hidden (AutoIt info when i comes to control tab goes blank, no class, no instance, coords etc etc) The window described is YourFreedom aplication , by the way same thing with winamp. Is there other way to figure out a class name, or maybe another method to use? Thanks. Link to comment Share on other sites More sharing options...
BrettF Posted March 19, 2010 Share Posted March 19, 2010 Welcome to the forums NextEpisode1. Have you tried searching for your issue? It is a common question and problem encountered. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
NextEpisode1 Posted March 19, 2010 Author Share Posted March 19, 2010 I did , google knows everything, but it's not as common as you think, (lost 4 hours googling lol)still no topic found. thx for feedback Link to comment Share on other sites More sharing options...
NextEpisode1 Posted March 19, 2010 Author Share Posted March 19, 2010 BTW. To be more explicit here is my AutoitInfo. I got everything i need except class and instance. >>>> Window <<<< Title: Your Freedom Class: SunAwtFrame Position: 510, 9 Size: 646, 508 Style: 0x16CA0000 ExStyle: 0x00000100 Handle: 0x00030734 >>>> Control <<<< Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x0002026A >>>> Mouse <<<< Position: 621, 283 Cursor ID: 2 Color: 0xEEEEEE >>>> StatusBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< Link to comment Share on other sites More sharing options...
l3ill Posted March 19, 2010 Share Posted March 19, 2010 You may have to go maximize it first and then send your clicks...WinActivate. My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
NextEpisode1 Posted March 19, 2010 Author Share Posted March 19, 2010 the script that does that is already done but it's damn annoying , Link to comment Share on other sites More sharing options...
l3ill Posted March 19, 2010 Share Posted March 19, 2010 Have you had a look at WinGetHandle yet? My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
NextEpisode1 Posted March 19, 2010 Author Share Posted March 19, 2010 Have you had a look at WinGetHandle yet?hmm...noob question now, how can the handle help me rung clicks while minimised?i got only 1 YF window active,always in the same place ,same dimensions, but winactivate + mouseclick is not what i'm trying to accomplish. and thanks for your time,i appreciate. Link to comment Share on other sites More sharing options...
l3ill Posted March 19, 2010 Share Posted March 19, 2010 (edited) No Worries, I'm a noob too... may look something like this: ; Change into the WinTitleMatchMode that supports classnames and handles AutoItSetOption("WinTitleMatchMode", 1) ; Get the handle of your window that contains (see below) $handle = WinGetHandle("SunAwtFrame", "some text in this window") If @error Then MsgBox(4096, "Error", "Could not find the correct window") Else ; Send commands directly to any given control ControlClick($handle, "", "some control ID", "") EndIf I'm still plain' with it though Edited March 19, 2010 by billo My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
l3ill Posted March 19, 2010 Share Posted March 19, 2010 I got it working...takes some playing around though.be sure to have a look at Control Command (help file) and click on Controls next to ControlIDgood luck ! My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
BrettF Posted March 19, 2010 Share Posted March 19, 2010 I did , google knows everything, but it's not as common as you think, (lost 4 hours googling lol)still no topic found.thx for feedbackAfter being here for 4 years I can say that the problem with automating windows without control Ids etc is very common. A quick forum search sent me to 3 topics (on the first page) that had useful information. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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