Guest BL@(K-R34P3R Posted October 1, 2004 Share Posted October 1, 2004 Knowledge, I don't understand that while loop, does the "While 1" mean that it only runs the sleep once? Link to comment Share on other sites More sharing options...
KnowledgeSponge Posted October 1, 2004 Share Posted October 1, 2004 Knowledge, I don't understand that while loop, does the "While 1" mean that it only runs the sleep once?<{POST_SNAPBACK}>While 1WEndRuns infinite loop Link to comment Share on other sites More sharing options...
JSThePatriot Posted October 1, 2004 Share Posted October 1, 2004 He is wanting the mouse to click and drag something while at the same time making more clicks atleast that is what I got in reply to my post... I am not sure this is possible. Maybe if he could explain a bit more of what he is trying to do. @Merlin... Please explain what it is you are trying to do. I may be able to come up with another solution. There is a saying here in the states that goes something like this "There is more than one way to skin a cat" meaning there are many ways to go about getting one objective done. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Merlin Posted October 1, 2004 Author Share Posted October 1, 2004 (edited) i want to move the mouse downwards for a specific amount of time/pixel/speed AND AT THE SAME TIME it makes it way, it should make a specific amount of clicksi dont mean:1. move - click - move - click - move - click----------------------------2. moooooooooooovvvvvveeeeeeeeeeeeeeat th same time: . .cliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiickdown-clickup (Mouseclickdrag)----------------------------I WANT:- click - click - click - click - click - click - click <-a few clicks (need to be able to set how many clicks and how long they will be hold down) and at the same time:mooooooooooooooovvvvvveeeeeeeeeee <-ONE LONG MOVE as long as it clicks(i must be able to configure the speed and how many pixel with that speed should be moved)@patriot i dont mean :mooooooooooooooovvvvvveeeeeeeeeee -one long move . .cliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiickdown-clickup -drag (dont need THIS one!)- click - click - click - click - click - click - click -a few clicks Edited October 1, 2004 by Merlin *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Merlin Posted October 1, 2004 Author Share Posted October 1, 2004 hmm if i plug in a second usb mouse both moves one cursor... what do u wanna say pls? not possible? hmm maybe i need another programminglanguage? which would be best (i ´know this sounds noobish - but i wanna learn !) so which works like i want? c++`? there must be a solution... *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
scriptkitty Posted October 1, 2004 Share Posted October 1, 2004 I tried it out in a paint program, and it works fine. Script 1 hotkeyset("{pause}","stop") winactivate("Adobe") sleep(2000) $x=0 While $x<3000 $x=$x+1 mouseclick("left") sleep(500) Wend Func stop() exit EndFunc script 2 hotkeyset("!x","Stop") sleep(4000) While 1 MouseMove(200,200,50) sleep(2000) MouseMove(100,200,50) sleep(2000) MouseMove(100,100,50) Wend Func stop() exit EndFunc basically it makes a nice dotted triangle on the paper. You could call out the second script from the first one, I just used a few seconds delay for testing. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Merlin Posted October 2, 2004 Author Share Posted October 2, 2004 (edited) Larry I tried it ... maybe i can tune it to fit my needs ... it doesnt do "really make ONE long move... but with short sleeps maybe ittl work ... ill try the other solutions as well and post here!but isnt this:Just figure it out into syntax as ...$x = 100 $y = 100 MouseClick("left") $y = $y + 25 Sleep(50) MouseMove($x, $y, 0) MouseClick("left") $y = $y + 25 Sleep(50) MouseMove($x, $y, 0) MouseClick("left") $y = $y + 25 Sleep(50) MouseMove($x, $y, 0) MouseClick("left")Lar.<{POST_SNAPBACK}>same as this`!?:$pos = MouseGetPos() MouseClick("left") Sleep(50) MouseMove($pos[0], $pos[1]+25, 0) MouseClick("left") Sleep(50) MouseMove($pos[0], $pos[1]+25, 0) MouseClick("left") Sleep(50) MouseMove($pos[0], $pos[1]+25, 0) MouseClick("left")???Also how to get mousecoordinates from a 3d window=?!...maybe i should try c++ i guess that has more possibilities to hook systemfunctions?! and i guess it is possible to handle more then one function at the same time?! Edited October 2, 2004 by Merlin *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* 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