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?
{$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