Help Key presser in cleo.

ZyZ.MaxiM

Active member
Joined
Nov 14, 2022
Messages
95
Solutions
2
Reaction score
4
Hi there, Parazitas made a cleo for me that presses the set key in game without the need of a macro.
The spacebar is set to be spammed at 1MS delay, i set it that way.
here is the code:
{$CLEO .cs}

0000:

REPEAT
IF 8256: player $PLAYER_CHAR defined
THEN 0A93: end_custom_thread
END
WAIT 1500
UNTIL 0256: player $PLAYER_CHAR defined

WHILE TRUE
WAIT 0

IF 0ADC: test_cheat "="
THEN
IF 1@ == FALSE
THEN
0AD1: "SPACE/ALT Key sending Started!" 1337
1@ = TRUE
ELSE
0AD1: "SPACE/ALT Key sending Stopped!" 1337
1@ = FALSE
end

end

IF 1@ == TRUE
THEN
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
WAIT 1
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
But im having issues implementing the "LALT" key to be pressed one time at the delay on 10 seconds, any help is accepted! <3
 

Ice555

Active member
Joined
Mar 11, 2021
Messages
49
Solutions
3
Reaction score
7
Location
Lithuania
wtf bro, just use timer. IF you want to press ALT after activated instantly, just change 32@ to 10000 after activation.
 

Attachments

  • script.cs
    18.4 KB · Views: 5

ZyZ.MaxiM

Active member
Joined
Nov 14, 2022
Messages
95
Solutions
2
Reaction score
4
made a mistake on 34 line btw, change state to 0

IF 1@ == TRUE
THEN
if 32@ > 0
then
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255
wait 1
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255
32@ = 0
end
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
WAIT 1
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 0
end

end
 

Ice555

Active member
Joined
Mar 11, 2021
Messages
49
Solutions
3
Reaction score
7
Location
Lithuania
IF 1@ == TRUE
THEN
if 32@ > 0
then
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255
wait 1
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255
32@ = 0
end
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
WAIT 1
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 0
end

end
 

Attachments

  • script.cs
    18.4 KB · Views: 2
Top