Jump to content
Sign in to follow this  
Shadeslayer Eragorn

Script For A Video Game (not Farming Or Botting)

Recommended Posts

Hi i was wondering if someone can help me in creating a script for a video game. I'm just a total scripting noob...but i just need some help in a mouse script.... that sort of does this behavior. Ok so the game is open, and the behavior of the script i am trying to create...is:

double click one item (x 488 , y 431)

wait one minute

double click second item (x 523 y 428)

wait one minute

repeat the process


Thats it!

again i am a total scripting noob. I have looked at other scripts... and kind of have some idea.

like for mouse clicks "MouseClick ( "left", 488, 431, ?, ? )"

but other then that i am lost.... :)

I'm still going through more help forms, but any help would be much appreciated.

Edited by Shadeslayer Eragorn

Share this post

Link to post
Share on other sites

i'm sure this is what you want I know it!

while 1
MouseClick('left',488,431,2,10); double click one item (x 488 , y 431)
sleep(60000);wait one minute
MouseClick('left',523,428,2,10);double click second item (x 523 y 428)
sleep(60000);wait one minute
WEnd;repeat the process


Perform a mouse click operation.

MouseClick ( "button" [, x, y [, clicks [, speed ]]] )



button The button to click: "left", "right", "middle", "main", "menu", "primary", "secondary". 
x, y [optional] The x/y coordinates to move the mouse to. If no x and y coords are given, the current position is used. 
clicks [optional] The number of times to click the mouse. Default is 1. 
speed [optional] the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. 


Return Value

Success: Returns 1. 
Failure: Returns 0, the button is not in the list. 



If the button is an empty string, the left button will be clicked.

If the user has swapped the left and right mouse buttons in the control panel, then the behaviour of the buttons is different. "Left" and "right" always click those buttons, whether the buttons are swapped or not. The "primary" or "main" button will be the main click, whether or not the buttons are swapped. The "secondary" or "menu" buttons will usually bring up the context menu, whether the buttons are swapped or not.

Button Normal Swapped 
"" Left Left 
"left" Left Left 
"middle" Middle Middle 
"right" Right Right 
"primary" Left Right 
"main" Left Right 
"secondary" Right Left 
"menu" Right Left 



MouseClickDrag, MouseGetPos, MouseMove, MouseCoordMode (Option) 


; Double click at the current mouse pos

; Double click at 0,500
MouseClick("left", 0, 500, 2)

; SAFER VERSION of Double click at 0,500

Dim $primary
Dim $secondary
;Determine if user has swapped right and left mouse buttons
$k = RegRead("HKEY_CURRENT_USER\Control Panel\Mouse", "SwapMouseButtons")

; It's okay to NOT check the success of the RegRead operation
If $k = 1 Then
    $primary = "right"
    $secondary = "left"
Else;normal (also case if could not read registry key)
    $primary = "left"
    $secondary = "right"
MouseClick($primary, 0, 500, 2)

Share this post

Link to post
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
Sign in to follow this  

  • Create New...