Jump to content

New to AHK


Recommended Posts

Posted

So I was interested in AHK-scripts and started with watching a tutorial on YT about it. Made my own gmaul to whack script, any thoughts or improvements are welcome.

Quote

gmaul() {

MouseGetPos, xpos, ypos ; Get mouse position
;Random Variable Declarations

    random, x1, 573, 593
    random, y1, 424, 446

    random, x2, 529, 559
    random, y2, 198, 226
    
    random, x3, 573, 713
    random, y3, 440, 456
    
    random, x4, 259, 320
    random, y4, 139, 228

    random, x5, 631, 658
    random, y5, 200, 226
    
    random, x6, 611, 639
    random, y6, 425, 449
    
mousemove, x1, y1, 0
click

mousemove, x2, y2, 0
click

mousemove, x3, y3, 0
click, 2

mousemove, xpos, ypos, 0
    
}


Whackwep() {

MouseGetPos, xpos, ypos ; Get mouse position
;Random Variable Declarations

    random, x4, 259, 320
    random, y4, 139, 228

    random, x5, 631, 658
    random, y5, 200, 226
    
    random, x6, 611, 639
    random, y6, 425, 449
    
mousemove, x5, y5,0
click

mousemove, x6, y6, 0
click

mousemove, xpos, ypos, 0
}

1::gmaul()
2::Whackwep()
3::reload
4::exitapp
    

 

  • 2 weeks later...

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
  • Recently Browsing   0 members

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