felixli93 Posted May 5, 2009 Share Posted May 5, 2009 Hi, I'm new here in this forum but actually not new with AutoIt I'm working on a project for an online game called Metin2 what I now want to do is sending keys to the game although it's minimized. So I use of course ControlClick Everything went fine so far with other applications, so I could for example send clicks to my explorer with ControlClick but whenever I want to send some clicks to this game, it doesn't click the coords i told the script, but it clicks just there, where the mouse was last so everything works fine but the coords -.- ControlClick ("METIN2","","","left",1,300,100) This is the code as I use it at the moment I know that I normally must fill in the parameter ControlId, but when I scan the game with the AutoIt3 - Window Info Tool, it just doesn't show me the things usually standing under "Control" so the tool returns just: >>>> Control <<<< Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x000B050E Is there a way to find the other things, the info-tool doesn't show or what can I do to get this working? I would appreciate your help PS: sorry for my (maybe) bad englisch, I'm german Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 (edited) Because this is an "Internet" game. You need to learn about IE.au3 Functions. Start with _IECreate() in the help file. There are great examples at the bottom of the page This is one of the only ways to create actions without the window being active. 8) Edited May 5, 2009 by Valuater Link to comment Share on other sites More sharing options...
felixli93 Posted May 5, 2009 Author Share Posted May 5, 2009 the game I'm talking about is not a browsergame IE.au3 as far as I know is for the Internet-Explorer. So what could the Ineternet-Explorer do about a game with real client? Thanks anyway for your reply Link to comment Share on other sites More sharing options...
oMBRa Posted May 5, 2009 Share Posted May 5, 2009 have you checked if the window's title is right? Link to comment Share on other sites More sharing options...
felixli93 Posted May 5, 2009 Author Share Posted May 5, 2009 have you checked if the window's title is right?yepit clicks into the hidden window, but it doesn't click on the coords i told the script; it just clicks where the mouse had been, when i minimized the window Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 Sorry, with no info and all the "Internet" game players, I thought yours was too ( I don't play those ) MouseCoordinatesMode is an "Option" that can be set for the "Client" window. However there is not enough info to get the controls, etc. 8) Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 (edited) Awe....I may have found an answer for ya!!See this thread, same problem resolved... http://www.autoitscript.com/forum/index.ph...st&p=635988BTW..... Welcome to the Autoit Forums!!8) Edited May 5, 2009 by Valuater Link to comment Share on other sites More sharing options...
felixli93 Posted May 5, 2009 Author Share Posted May 5, 2009 Awe....I may have found an answer for ya!!See this thread, same problem resolved... http://www.autoitscript.com/forum/index.ph...st&p=635988BTW..... Welcome to the Autoit Forums!!8)oh thank you dude!!!!I think it should work (no time to test it now)Thank you a 1000 times!i will post wheather it worked or not! Link to comment Share on other sites More sharing options...
Valuater Posted May 5, 2009 Share Posted May 5, 2009 oh thank you dude!!!!I think it should work (no time to test it now)Thank you a 1000 times!i will post wheather it worked or not!sounds like me when I first got helped by Gary Frost...lol8) Link to comment Share on other sites More sharing options...
felixli93 Posted May 6, 2009 Author Share Posted May 6, 2009 hmm, just tried it out and it doesn't seem to work not even with the Mozilla Firefox Explorer so where is the problem? here my code: _MouseClickPlus ("[CLASS:MozillaUIWindowClass]","left",0, 0,10) the winhandle should be alright, as [CLASS:MozillaUIWindowClass] returns the real handle of mozilla firefox when I try _MouseClickPlus in the game I want to use it for, it has same effect as ControlClick (it clicks, but not the right coords) so where is the problem? Link to comment Share on other sites More sharing options...
felixli93 Posted May 6, 2009 Author Share Posted May 6, 2009 *push* 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