CLEO Help How to get mouse coordinates on screen

CLEO related

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
Type ZC to active.
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "ZC"
THEN
    0B12: 30@ = 30@ XOR 1        
    IF 0039:   30@ == TRUE
    THEN 0AD1: show_formatted_text_highpriority "~w~Script ~g~ON" time 1337
    ELSE 0AD1: show_formatted_text_highpriority "~w~Script ~r~OFF" time 137
    END
END

IF 30@ == TRUE
THEN
    0AB1: @GetCursorPosOfFullScreenXY 0 _Returned: 0@ 1@    
    0AC8: 2@ = allocate_memory_size 1024
    0AD3: 2@ = format "X: {FFFFFF}%0.2f {FF0000}Y: {FFFFFF}%0.2f" 0@ 1@
    0AB1: @get_samp_version_id 0 _returned: ID 3@
    0AB1: @Chatmsg 3 SampVersionID 3@ text 2@ color 0xFFFF0000
    0AC9: free_allocated_memory 2@        
END
  
END
0A93: terminate_this_custom_script
 

Attachments

  • Script.cs
    22.7 KB · Views: 19
Top