BrikBoder

Converting an AHK to an AutoIt script

3 posts in this topic

#1 ·  Posted

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



#2 ·  Posted

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 ·  Posted

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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.