Jump to content

AHK 2 click Construction and auto Construction


demisev3

Recommended Posts

i was fooling around and come up with this. works pretty well for speeding things up.

for making Mahogany Tables.

;dose not interact with butler

 

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

;AHK 2 Click:

z::
Click Right
sleep (500)
MouseMove, 0, 54, 0, R
sleep (800)
Click
sleep (800)
send {6}
return

x::
Click Right
sleep (500)
MouseMove, 0, 54, 0, R
sleep (500)
Click
sleep (800)
send {1}
MouseMove, 0, -100, 0, R

 

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

;AHK Auto

#MaxThreadsperHotkey 2
z::
toggle := !toggle
loop 
{
  
Click Right
sleep (500)
MouseMove, 0, 54, 0, R
sleep (800)
Click
sleep (800)
send {6}
sleep (1800)
Click Right
sleep (500)
MouseMove, 0, 54, 0, R
sleep (500)
Click
sleep (800)
send {1}
MouseMove, 0, -88, 0, R
break
}
return
 

with the auto it makes and removes and you have to toggle again not fully auto.

tell me what you guys think.

thanks :)

Edited by demisev3
  • Like 3
Link to comment
Share on other sites

  • 4 years later...

Hi Ive make it more advanced and random. Here is my code :)

 

#NoEnv
#If WinActive("RuneLite")

#CommentFlag //  ;  Press Q to start script

Q::
toggle := !toggle
loop 
{
#CommentFlag //  ; Set Offset to X and Y to make it random  
Random, randomX, -20, 20
Random, randomY, 50, 58

Click Right

#CommentFlag //  ; Set random time interval 400ms - 500ms
Random ranSleep, 400, 500
sleep %ranSleep%
MouseMove, %randomX%, %randomY%, 0, R

Random ranSleep, 600, 800
sleep %ranSleep%
Click
Random ranSleep, 600, 800
sleep %ranSleep%
send {6}
Random ranSleep, 1500, 1800
sleep %ranSleep%
Click Right
Random ranSleep, 400, 500
sleep %ranSleep%
MouseMove, %randomX%, %randomY%, 0, R

Random ranSleep, 450, 500
sleep %ranSleep%
Click
Random ranSleep, 600, 800
sleep %ranSleep%
send {1}
MouseMove, 0, -95, 0, R

break
}
return

#CommentFlag //  ;  L is reload script, Esc is exit
L::reload
Esc::exitapp

Edited by Mike AHK
additional info
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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