CLEO Help [HELP] Possible or not ? [SOLVED]

CLEO related
Status
Not open for further replies.

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Hi!,

I just wanna ask if it's possible to make a cleo script in "Sanny Builder" that makes a button press another button ?, like let's say if I press "Q" then the script would make that I press "W"... :me_gusta:
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Re: [HELP] Possible or not ?

Can I make macro (If i press spacebar once script makes that i press space bar 3x time) from what you guys give me?, I'm asking because I don't wanna start (I'm beginner at scripting) and after 2 days when I ask for some help you guys gonna say that's it's impossible ?...
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Re: [HELP] Possible or not ?

If you press spacebar it will press it 3 times more, that is what you want? I will try to do that.

Here i try to do something but not working for me, made by springfield, compile this:

Code:
{$CLEO}
03A4: "UGBASE.EU"
0000:

while true
wait 0
if 00E1: 0 16
then
    repeat 
    wait 0
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255 // i just add this
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
    until 80E1: 0 16
end
end
 
:FAKE_KEYPRESS
2@ = 0xB73458 
005A: 2@ += 0@ 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Re: [HELP] Possible or not ?

pepeelpubero link said:
If you press spacebar it will press it 3 times more, that is what you want? I will try to do that.

Here i try to do something but not working for me, made by springfield, compile this:

Code:
{$CLEO}
03A4: "UGBASE.EU"
0000:

while true
wait 0
if 00E1: 0 16
then
    repeat 
    wait 0
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255 // i just add this
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
    until 80E1: 0 16
end
end
 
:FAKE_KEYPRESS
2@ = 0xB73458 
005A: 2@ += 0@ 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0



Yes that what I want :me_gusta:...  :no: But there's a small problem. Script work inside cars too. Spacebar in every car is break so script makes that when you drive you pressing a spacebar which makes a car go so slow because you're actually breaking every second :watchout:. I don't know how to fix it (I'm noob, I just started to script), anyone can help me ? :forever_hurra:
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Re: [HELP] Possible or not ?

Mr.Christmas link said:
Yes that what I want :me_gusta:...  :no: But there's a small problem. Script work inside cars too. Spacebar in every car is break so script makes that when you drive you pressing a spacebar which makes a car go so slow because you're actually breaking every second :watchout:. I don't know how to fix it (I'm noob, I just started to script), anyone can help me ? :forever_hurra:

Try with this:

Code:
{$CLEO}
03A4: "UGBASE.EU"
0000:                                                              

while true
wait 0
Player.Defined($PLAYER_ACTOR)
if and 
00E1: 0 16
not Actor.Driving($PLAYER_ACTOR)
then
    repeat 
    wait 0
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255 // i just add this
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
    until 80E1: 0 16
end
end
 
:FAKE_KEYPRESS
2@ = 0xB73458 
005A: 2@ += 0@ 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Re: [HELP] Possible or not ?

pepeelpubero link said:
Try with this:

Code:
{$CLEO}
03A4: "UGBASE.EU"
0000:                                                              

while true
wait 0
Player.Defined($PLAYER_ACTOR)
if and 
00E1: 0 16
not Actor.Driving($PLAYER_ACTOR)
then
    repeat 
    wait 0
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 255 // i just add this
    0AB1: @FAKE_KEYPRESS 2 _OFFSET_KEY_ 0x20 val 0
    until 80E1: 0 16
end
end
 
:FAKE_KEYPRESS
2@ = 0xB73458 
005A: 2@ += 0@ 
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0


Thanks bro!, now I'm gonna work on on/off :)
 
Status
Not open for further replies.
Top