Jump to content

New to AHK


serg Rambo

Recommended Posts

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
    

 

Link to comment
Share on other sites

  • 2 weeks later...

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...