CLEO Help Fraps recording

CLEO related

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
Is it possible to start fraps recording via cleo? , or with the help of some other program but to run it cleo.

I tried with key_pressed but it doesn't work.

0AB0: key_pressed 57 ( key 9 )
 

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
Not work.

Fraps config: https://ibb.co/8KXkWRM

Code:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
    if
    0AD4: $NOT_USED = scan_string 0@ format "{FFFFFF}[ID: %i] Test." 4@ // chat                                      .                   
     then
        wait 1000 // 1 sekunda
        0AF9: samp say_msg "/me test %i id" 4@ // command
        wait 2000 // 5 sekundi
        0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
        wait 30000 // 30sec
        0AB1: @Set_Virtual_Key 2 KeyOffSet 0x20 state 255
        wait 2000 // 2 sekunda
        0AF9: samp say_msg "/me test off" // command
    end
end
  END
 
  :Set_Virtual_Key
// 0AB1: @Set_Game_key 2 KeyOffSet 0x57 State 255
2@ = 0xB731A8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
Thanks, I was able to activate the fraps, but how do I set to click only once and not hold down the button, because it runs Backmarch instead of recording

Code:
 then
        wait 1000 // 1 sekunda
        0AF9: samp say_msg "/me test %i id" 4@ // command
        wait 2000 // 5 sekundi
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 30000 // 30sec
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 2000 // 2 sekunda
        0AF9: samp say_msg "/me test off" // command
    end
end
  END
 
:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
       wait 1@
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,112
Solutions
5
Reaction score
878
Location
Lithuania
Thanks, I was able to activate the fraps, but how do I set to click only once and not hold down the button, because it runs Backmarch instead of recording

Code:
 then
        wait 1000 // 1 sekunda
        0AF9: samp say_msg "/me test %i id" 4@ // command
        wait 2000 // 5 sekundi
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 30000 // 30sec
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 2000 // 2 sekunda
        0AF9: samp say_msg "/me test off" // command
    end
end
  END

:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
       wait 1@
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0

PHP:
:FAKE_KEYPRESS
// 0AB1: @FAKE_KEYPRESS 1 KeyOffSet 0x39
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,112
Solutions
5
Reaction score
878
Location
Lithuania
PHP:
:SEND_FAKE_KEYPRESS
// 0AB1: @FAKE_KEYPRESS 1 KeyOffSet 0x39
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
   end
end
0AB2: ret 0

PHP:
:STOP_SEND_FAKE_KEYPRESS
// 0AB1: @FAKE_KEYPRESS 1 KeyOffSet 0x39
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0
 

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
Not Work, start recoriding, not stop recording.

Code:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
    if
    0AD4: $NOT_USED = scan_string 0@ format "{FFFFFF}[ID: %i] Test." 4@ // chat        .                   
     then
        wait 1000 // 1 sekunda
        0AF9: samp say_msg "/me test %i id" 4@ // command
        wait 2000 // 5 sekundi
        0AB1: @SEND_FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 30000 // 30sec
        0AB1: @STOP_SEND_FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 2000 // 2 sekunda
        0AF9: samp say_msg "/me s off" // command
    end
end
  END
 
:SEND_FAKE_KEYPRESS
// 0AB1: @FAKE_KEYPRESS 1 KeyOffSet 0x39
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
   end
end
0AB2: ret 0
:STOP_SEND_FAKE_KEYPRESS
// 0AB1: @FAKE_KEYPRESS 1 KeyOffSet 0x39
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0

Start recording, not stop recording.

Code:
{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@
    if
    0AD4: $NOT_USED = scan_string 0@ format "{FFFFFF}[ID: %i] Test." 4@ // chat        .                   
 then
        wait 1000 // 1 sekunda
        0AF9: samp say_msg "/me test %i id" 4@ // command
        wait 2000 // 5 sekundi
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 30000 // 30sec
        0AB1: @FAKE_KEYPRESS 2 KeyOffSet 0x39 state 1
        wait 2000 // 2 sekunda
        0AF9: samp say_msg "/me test off" // command
    end
end
  END

:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
   if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
   then
       0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
       wait 1@
       0AA5: call 2@ num_params 4 pop 0 0 0x39 0 0@
   end
end
0AB2: ret 0

Use bandicam recording software.
 
Top