polgarine Posted May 24, 2010 Share Posted May 24, 2010 Hi, New to this forum and to AutoIt, I have a question. Might be a noob question, but I'm a noob. Not to programming but to AutoIt. So here is my script:Dim $winHandle $winHandle = WinActivate("Untitled","") ConsoleWrite("handle : " & $winHandle) Sleep(700) MouseMove (1031, 802, 5) ConsoleWrite("mouse moved") Sleep(700) MouseClick("left", 802, 5) ConsoleWrite("mouse clicked") This just activates a window, moves the mouse to a given coordinate and clicks with the left button of the mouse. This code works when acivating a Notepad window. But I want to use it on another application I bought. It does activate the window but the mouse does not move or click. Do you see any reason why I get this behavior? Thanks, Polgarine Link to comment Share on other sites More sharing options...
omikron48 Posted May 24, 2010 Share Posted May 24, 2010 What application are we talking about exactly? Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 24, 2010 Share Posted May 24, 2010 A game...? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
polgarine Posted May 24, 2010 Author Share Posted May 24, 2010 A game...? No, not at all. It's an application that helps manage Twitter accounts.Do you see any reason why it would not behave as a Notepad? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 24, 2010 Share Posted May 24, 2010 It's possible this application blocks automatic inputs. If this is the case, I don't know what solutions there are. But try ControlClick, it may work for you. You can use the AutoIt Window Info Tool (AU3Info) to get additional info ControlClick needs. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
JohnOne Posted May 24, 2010 Share Posted May 24, 2010 It's an application that helps manage Twitter accounts.Mind helping me out and telling me this app? I could do with something like that. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
polgarine Posted May 24, 2010 Author Share Posted May 24, 2010 Mind helping me out and telling me this app? I could do with something like that.It is called Tweet Attacks. It is a GUI developed in C# I think.Does this help? Link to comment Share on other sites More sharing options...
polgarine Posted May 24, 2010 Author Share Posted May 24, 2010 It's possible this application blocks automatic inputs. If this is the case, I don't know what solutions there are. But try ControlClick, it may work for you. You can use the AutoIt Window Info Tool (AU3Info) to get additional info ControlClick needs.ControlClick is not going to work. This application has an Internet Explorer embedded in a custom control. And what I want to do is click on a link in this browser. So I really need to be able to simulate what I would do with my mouse when I click on the link. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 24, 2010 Share Posted May 24, 2010 Hmm. Maybe you can get something out of IE Management? - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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