Jump to content

HowTo two funcions() at the same time?


Merlin
 Share

Recommended Posts

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

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 clicks

i dont mean:

1. move - click - move - click - move - click

----------------------------

2. moooooooooooovvvvvveeeeeeeeeeeeee

at 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 by Merlin
Link to comment
Share on other sites

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

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 by Merlin
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...