Darkalpha Posted October 1, 2009 Share Posted October 1, 2009 Alright Im looking to do something simple, click and drag a item from one window to another from over and over again. Ive toyed with Autoit before but that was through editing a pre-existing autoit script. So now that I have to start from scratch I have no clue how to work this wonderfully complex program. I know how to figure out coordinates to designate point A to point B just lack the programing knowledge to get this done. Can I get some help or at the very least a n00b friendly guide? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 1, 2009 Share Posted October 1, 2009 Have a look at this function, MouseClickDrag, I believe it will be the 'backbone' in your script. - 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...
Darkalpha Posted October 1, 2009 Author Share Posted October 1, 2009 Have a look at this function, MouseClickDrag, I believe it will be the 'backbone' in your script.Alright this is what I got so far.While 1;infinite loop; Left click drag from 881, 709 to 1136, 707MouseClickDrag("left", 881, 709, 1136, 707)sleep(1200)wendHow do I make it loop infinitely every few seconds? Im not sure how fast 1200 is but it seems fast enough. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted October 1, 2009 Share Posted October 1, 2009 1000 = 1 sec, so 1200 would be just under a second and a half - 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...
Darkalpha Posted October 1, 2009 Author Share Posted October 1, 2009 1000 = 1 sec, so 1200 would be just under a second and a halfalright but how should I set it to auto loop? Link to comment Share on other sites More sharing options...
BitByteBit Posted October 1, 2009 Share Posted October 1, 2009 Opt("MouseCoordMode", 1) HotKeySet("^!u", "DoIt") ; HotKey is Ctrl + Alt + U HotKeySet("^{F2}", "Wait"); HotKey is Ctrl + F2 Func Wait() while 1 Sleep(100) WEnd EndFunc While 1 Sleep(100) WEnd Func DoIt() While 1 ; Left click drag from 881, 709 to 1136, 707 MouseClickDrag("left", 881, 709, 1136, 707) sleep(1200) WEnd EndFunc Hope this helps. Link to comment Share on other sites More sharing options...
Darkalpha Posted October 1, 2009 Author Share Posted October 1, 2009 alright but how should I set it to auto loop?Awesome gonna test this immediatly, Many thanks to both of you =D 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