Ahk to Cleo

Status
Not open for further replies.
Joined
Feb 10, 2020
Messages
18
Likes
1
Points
3
Location
lebanon
#1
I have a sprintbind using AHK, but I want to make a sprintbind using Capslock but as .cs. I didn't want to post a thread in requests because people are just ''do it yourself''. Can anyone tell me how to change the AHK script to cleo?
 
OP
OP
P
Joined
Feb 10, 2020
Messages
18
Likes
1
Points
3
Location
lebanon
#3
#IfWinActive, GTA:SA:MP
CAPSLOCK::
Loop
{
if not GetKeyState("CAPSLOCK", "P")
break

Sleep 20
Send {space down}
Sleep 20
Send {space up}
}
Return = 1
Return
 

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
2,281
Likes
472
Points
113
Location
Lithuania
Website
ugbase.eu
20
#4
http://ugbase.eu/index.php?threads/snippet-set-virtual-or-game-key.19933/

PHP:
{$CLEO .cs}
 
0000:

wait 8500

while true
wait 0

if
0ADC:   test_cheat "RUN"
then
    if
    [email protected] == false
    then
        [email protected] = true
        0AD1: "Sprint ~g~ON~w~!" 1337
    else
        [email protected] = false
        0AD1: "Sprint ~r~OFF~w~!" 1337
    end
end

if
[email protected] == true
then
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
    WAIT 30
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 0
end

end

:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
[email protected] = 0xB72CC8
[email protected] *= 2
005A: [email protected] += [email protected]  // (int)
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
0AB2: ret 0
 
Last edited:
Status
Not open for further replies.
Top