CLEO Help Cursor

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
Possible set cursor position and then send auto press  left mouse? 
or 
How to do auto press "Spawn" button when password is already entered?

@springfield
@0x32789
Any else...
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
Parazitas said:
Possible set cursor position and then send auto press  left mouse? 
or 
How to do auto press "Spawn" button when password is already entered?

@springfield
@0x32789
Any else...


or 

[shcode=cpp]0BC9: samp send_dialog_response dialog -1 button 1@ listitem -1 input -1[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
supahdupahnubah said:
Might be this - https://blast.hk/wiki/opcodes:0b32

I get kick...

doroftel said:
Parazitas said:
Possible set cursor position and then send auto press  left mouse?  
or  
How to do auto press "Spawn" button when password is already entered?

@springfield
@0x32789
Any else...


or 

[shcode=cpp]
0BC9: samp send_dialog_response dialog -1 button 1@ listitem -1 input -1
[/shcode]
not working..
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
javascript:Thread.clearMultiQuoted();
Parazitas said:
supahdupahnubah said:
Might be this - https://blast.hk/wiki/opcodes:0b32

I get kick...

doroftel said:
Parazitas said:
Possible set cursor position and then send auto press  left mouse?  
or  
How to do auto press "Spawn" button when password is already entered?

@springfield
@0x32789
Any else...


or 

[shcode=cpp]
0BC9: samp send_dialog_response dialog -1 button 1@ listitem -1 input -1
[/shcode]
not working..

sv ip?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
doroftel said:
javascript:Thread.clearMultiQuoted();
Parazitas said:
supahdupahnubah said:
Might be this - https://blast.hk/wiki/opcodes:0b32

I get kick...

doroftel said:
Parazitas said:
Possible set cursor position and then send auto press  left mouse?  
or  
How to do auto press "Spawn" button when password is already entered?

@springfield
@0x32789
Any else...


or 

[shcode=cpp]
0BC9: samp send_dialog_response dialog -1 button 1@ listitem -1 input -1
[/shcode]
not working..

sv ip?

samp.libertycity.lt
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
@Parazitas,

[shcode=cpp]
call @SetCursorPos params 2 5@ 6@

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0
[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
doroftel said:
@Parazitas,

[shcode=cpp]
call @SetCursorPos params 2 5@ 6@

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0
[/shcode]

Thanks, maybe you know pos?
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
Parazitas said:
doroftel said:
@Parazitas,

[shcode=cpp]
call @SetCursorPos params 2 5@ 6@

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0
[/shcode]

Thanks, maybe you know pos?

 c mon what are you talking about

[shcode=cpp]
0B5E: get_cursor_pos 1@ 2@
printf "%0.1f %0.1f" 2000 1@ 2@
[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
doroftel said:
Parazitas said:
doroftel said:
@Parazitas,

[shcode=cpp]
call @SetCursorPos params 2 5@ 6@

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0
[/shcode]

Thanks, maybe you know pos?

 c mon what are you talking about

[shcode=cpp]
0B5E: get_cursor_pos 1@ 2@
printf "%0.1f %0.1f" 2000 1@ 2@
[/shcode]
Shit.. , i forgot about this opcode..
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
@doroftel

Don't press spawn , just set cursor to pos ...

[shcode=cpp]
{$CLEO .cs}
0000:

repeat
wait 0
until 0AFA:

10@ = 790
11@ = 690

while true
wait 0

if and
8B61:  samp is_local_player_spawned
0B4C: samp is_dialog_active -1
then
   repeat
   wait 0
   until 0B4C: samp is_dialog_active -1
       0B4B: samp set_current_dialog_editbox_text "Password"
       0B47: samp close_current_dialog_with_button 1
       call @SetCursorPos params 2 10@ 11@
       wait 1000
       0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x01 {Left Mouse}
   repeat
   wait 0
   until 0B61:  samp is_local_player_spawned
end

end

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0

/// Snippet
: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 0x02 0 0@
  end
end
0AB2: ret 0
[/shcode]
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
Parazitas said:
@doroftel

Don't press spawn , just set cursor to pos ...

[shcode=cpp]
{$CLEO .cs}
0000:

repeat
wait 0
until 0AFA:

10@ = 790
11@ = 690

while true
wait 0

if and
8B61:  samp is_local_player_spawned
0B4C: samp is_dialog_active -1
then
   repeat
   wait 0
   until 0B4C: samp is_dialog_active -1
       0B4B: samp set_current_dialog_editbox_text "Password"
       0B47: samp close_current_dialog_with_button 1
       call @SetCursorPos params 2 10@ 11@
       wait 1000
       0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x01 {Left Mouse}
   repeat
   wait 0
   until 0B61:  samp is_local_player_spawned
end

end

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0

/// Snippet
: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 0x02 0 0@
  end
end
0AB2: ret 0
[/shcode]


[shcode=cpp]
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x22

:FAKE_KEYPRESS
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0
[/shcode]
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
doroftel said:
Parazitas said:
@doroftel

Don't press spawn , just set cursor to pos ...

[shcode=cpp]
{$CLEO .cs}
0000:

repeat
wait 0
until 0AFA:

10@ = 790
11@ = 690

while true
wait 0

if and
8B61:  samp is_local_player_spawned
0B4C: samp is_dialog_active -1
then
   repeat
   wait 0
   until 0B4C: samp is_dialog_active -1
       0B4B: samp set_current_dialog_editbox_text "Password"
       0B47: samp close_current_dialog_with_button 1
       call @SetCursorPos params 2 10@ 11@
       wait 1000
       0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x01 {Left Mouse}
   repeat
   wait 0
   until 0B61:  samp is_local_player_spawned
end

end

:SetCursorPos
0AA2: 2@ = load_library "user32.dll" // IF and SET
0AA4: 3@ = get_proc_address "SetCursorPos" library 2@ // IF and SET
0AA5: call 3@ num_params 2 pop 0 1@ 0@  
ret 0

/// Snippet
: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 0x02 0 0@
  end
end
0AB2: ret 0
[/shcode]


[shcode=cpp]
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x22

:FAKE_KEYPRESS
1@ = 0xB73458
005A: 1@ += 0@  // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0
[/shcode]

Still same .. , not working...
 
Status
Not open for further replies.
Top