Cloudsx Posted November 5, 2007 Posted November 5, 2007 (edited) Oke i try to make an little tasker its simple. my problem is the mouseclick thing i can type simple Mouseclick("left",x,y,clicks) my problem is that i just wanne move with the mouse my self to one place and then that it goes clicking like i wanne put my mouse in the X button of my firefox to shut it down but that it not move so that i dont have to put an number down on the x or the y my little script show here. hotkeyset("{ESC}", "Terminate") TraySetToolTip("Plaats de muiswijzer in 5 seconden op de plek waar het moet zijn") sleep(5000) Mouseclick("left",x,y,100000000000,10) Func Terminate() Exit 0 EndFunc or do i have to write on the x and the y an number ? p.s. its for darkthrone to recruit players xD Edited November 5, 2007 by Cloudsx
Sardith Posted November 5, 2007 Posted November 5, 2007 hotkeyset("{ESC}", "Terminate") TraySetToolTip("Plaats de muiswijzer in 5 seconden op de plek waar het moet zijn") sleep(5000) $pos = MouseGetPos() Mouseclick("left", $pos[0], $pos[1], 2, 10) Func Terminate() Exit EndFunc You have 5 seconds to place the mouse where you want, then just leave it there. Then it will click, exit the script. Thats what it's setup to do. Not sure if thats what you want, you didn't say other wise. That code above works, give that a try. Little change. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
Cloudsx Posted November 5, 2007 Author Posted November 5, 2007 realy thanks i got 1 more question how can i let him do the same thing not that i want to copy and past but just something like goto or gosub in VB do i need to use Return or something ?
Sardith Posted November 5, 2007 Posted November 5, 2007 Not exactly sure on what your asking. I don't know much about VB so.. Do you want to use a hotkey to start that function? Not sure if thats what your asking. I mean goto in VB meaning you want to go to another block of code.. what do you want to do in this block of code? Sort of need more specifics. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
Cloudsx Posted November 5, 2007 Author Posted November 5, 2007 i want that he do the click action time over time but not that i want this in the script Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) Mousemove("left",x,y,1,1) but that it repeat with 1 sins
Sardith Posted November 5, 2007 Posted November 5, 2007 Well you need mouse coordinates. $pos = MouseGetPos() That will retrieve the current mouse coordinates. The x would equal $pos[0] Y would equal $pos[1] Not sure what your really after. You can't use mouse move without X,Y coordinates to move the mouse to. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
Cloudsx Posted November 6, 2007 Author Posted November 6, 2007 Sorry i write it wrong. it has to be mouseclick instead of mousemove xD its just repeat after 1 sins
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