Jump to content

Recommended Posts

Posted

Can anyone help me with this? I've tried editing a bunch of stuff, but I keep coming up with this error.

Here's the code. Btw, it's a code for a game.

CODE
#NoEnv

#SingleInstance force

#InstallKeybdHook

#Persistent

Suspend, Off

HotKey ~LButton, AutoCl, On UseErrorLevel ;LBUTTON HOTKEY

HotKey ~^LButton, AutoCl, On UseErrorLevel ;CTRL + LBUTTON HOTKEY

Overall_Speed = 50

$*~Pause::

Suspend, Toggle

SoundBeep, 500, 200

RETURN

$Scrolllock::ExitApp

AutoCl:

WinGet , szProcessName, ProcessName, A

If szProcessName = BF2142.exe

{

Loop

{

if (GetKeyState("LButton", "P") = 0)

{

Break

}

Else

{

Sleep %Overall_Speed%

RControl(0,1)

}

}

}

RETURN

RControl(X,Y)

{

}

DllCall("mouse_event", uint, 1, int, X, int, Y, uint, 0, int, 0)

Posted (edited)

Can anyone help me with this? I've tried editing a bunch of stuff, but I keep coming up with this error.

Here's the code. Btw, it's a code for a game.

CODE
#NoEnv

#SingleInstance force

#InstallKeybdHook

#Persistent

Suspend, Off

HotKey ~LButton, AutoCl, On UseErrorLevel ;LBUTTON HOTKEY

HotKey ~^LButton, AutoCl, On UseErrorLevel ;CTRL + LBUTTON HOTKEY

Overall_Speed = 50

$*~Pause::

Suspend, Toggle

SoundBeep, 500, 200

RETURN

$Scrolllock::ExitApp

AutoCl:

WinGet , szProcessName, ProcessName, A

If szProcessName = BF2142.exe

{

Loop

{

if (GetKeyState("LButton", "P") = 0)

{

Break

}

Else

{

Sleep %Overall_Speed%

RControl(0,1)

}

}

}

RETURN

RControl(X,Y)

{

}

DllCall("mouse_event", uint, 1, int, X, int, Y, uint, 0, int, 0)

This isn't a gamers forum... Plus this isn't even Autoit....

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

zero57 :):lmao::think::shhh:

!!!!!!!!!! :> !!!!!!!!!!! ;) ;)

Edited by zero57

[font="Arial Black"][u]zero57[/u][/font]

Posted

If you could translate it into AutoIt code, and I don't see why you couldn't, then it would work with AutoIt. Alternatively, you can try and get one of the AutoIt forum members to do it for you.

@zero57, drugs are bad man.

indeed. put mouse over this text for secret message.

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
×
×
  • Create New...