CLEO Help Ahk to Cleo

CLEO related
Status
Not open for further replies.

PetroGV

Member
Joined
Feb 10, 2020
Messages
18
Reaction score
1
Location
lebanon
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?
 

PetroGV

Member
Joined
Feb 10, 2020
Messages
18
Reaction score
1
Location
lebanon
#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

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
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
    0@ == false
    then
        0@ = true
        0AD1: "Sprint ~g~ON~w~!" 1337
    else
        0@ = false
        0AD1: "Sprint ~r~OFF~w~!" 1337
    end
end

if
0@ == 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
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 
Last edited:
Status
Not open for further replies.
Top