Jump to content
Sign in to follow this  
BrikBoder

Converting an AHK to an AutoIt script

Recommended Posts

I have a old Ahk recoil script and would like to run it in AutoIt could anyone help me convert it? 

#NoEnv
SendMode Input
 
~Q::Suspend
~End::ExitApp
 
LCtrl & ~LButton::
Loop
    If GetKeyState("LButton", "LCtrl") {
        Sleep, 1
        moveAmount := (moveAmount = 2) ? 3 : 0
         mouseXY(moveAmount,4)
        
    }
    else
    break
    
Return
 
 
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}

Share this post


Link to post
Share on other sites

I have a old Ahk recoil script and would like to run it in AutoIt could anyone help me convert it? 

#NoEnv
SendMode Input
 
~Q::Suspend
~End::ExitApp
 
LCtrl & ~LButton::
Loop
    If GetKeyState("LButton", "LCtrl") {
        Sleep, 1
        moveAmount := (moveAmount = 2) ? 3 : 0
         mouseXY(moveAmount,4)
        
    }
    else
    break
    
Return
 
 
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}

Share this post


Link to post
Share on other sites
3 hours ago, BrikBoder said:

 

I have a old Ahk recoil script

 

Sound like game automation, so please read our forum rules before continuing asking questions in our forums.
I've merged the double post and like to comment that this is a help forum, not an please make a script for me forum. :)

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...