Leonick Posted July 10, 2009 Share Posted July 10, 2009 Hey everyone. Since i know, there is no way to use the mouse on windows, you cant see, or even work/browse, while your mouse is doing other things,..cause windows supports only 1 mouse. But wouldn't it be possible to watch a movie, while the mouse operates in your browser? Maybe theres an chance to realize it with some kind of 2nd desktop.(Virtual) So your Autoit windows and the mouse are operating on the 2nd desktop while you have fullscreen to watch a movie. I mean if you had a 2nd monitor it would work of course, but there must be a way to do it virtual ...what do oyu think? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 10, 2009 Share Posted July 10, 2009 Function ControlClick - 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...
Leonick Posted July 10, 2009 Author Share Posted July 10, 2009 Function ControlClickSo its even possible to move the mouse on a non activ window???I thought the answer was NO as i read here before. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 10, 2009 Share Posted July 10, 2009 (edited) It's like clicking (or sending mouse clicks) without actually using the mouse. Use the AutoIt Windows Info tool to find the particulars of the control you want to 'click.' Edited July 10, 2009 by snowmaker - 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...
darkmaster071 Posted July 10, 2009 Share Posted July 10, 2009 (edited) Control functions do the job, but i always make SURE theres no other way to do it before i use them. Its not reliable and its weird lol. If you are operating in a browser you should use _ie functions _IEGetObjById, _IEAction( , "click")...... Edited July 10, 2009 by darkmaster071 Link to comment Share on other sites More sharing options...
bo8ster Posted July 10, 2009 Share Posted July 10, 2009 Also look at MouseCoordMode (Option). You will want 0 (default) or 2 set. You don't have to have the handle to a control, just a window will do. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
Leonick Posted July 10, 2009 Author Share Posted July 10, 2009 wooow....works really great. so what are the weird problems darkmaster71 is talking about? i dont wanna use IE. Link to comment Share on other sites More sharing options...
Leonick Posted July 12, 2009 Author Share Posted July 12, 2009 Bump Dark was speaking about the wierd problems, that could occur with using controlsend isntead of mouseclick,...and i really would like to know, what this problems could be. Since i dont wanna spent days in changing my huge script from mousemove/click to controlsend,..only to realise afterwards, that it was a mistake. thx Leonick Link to comment Share on other sites More sharing options...
Leonick Posted July 12, 2009 Author Share Posted July 12, 2009 Bump Dark was speaking about the wierd problems, that could occur with using controlsend isntead of mouseclick,...and i really would like to know, what this problems could be. Since i dont wanna spent days in changing my huge script from mousemove/click to controlsend,..only to realise afterwards, that it was a mistake. thx Leonick Link to comment Share on other sites More sharing options...
bo8ster Posted July 13, 2009 Share Posted July 13, 2009 BumpDark was speaking about the wierd problems, that could occur with using controlsend isntead of mouseclick,...and i really would like to know, what this problems could be.Since i dont wanna spent days in changing my huge script from mousemove/click to controlsend,..only to realise afterwards, that it was a mistake.thx LeonickFirstly _IE is great, there is also a new FF Library. Search for it or it might be in the Beta.Control Commands are really good but you have to make sure you have the correct control and get the control in a good way. Read the help file, the order given there is the best.Capture/Replay techniques I do not recommend because if the interface is changed you are stuffed. If the GUI is static and its for regression testing thats great but and different rez, if buttons more, tab order is out or other thinks like that and you will be maintaining that script a lot. Just have big think about what you want to get out of it first.If it is working for you thats great, I wouldn't change unless you have to but do try and understand the benefit of the Control functions. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] 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