CLEO Help Sendkey mouse1 and enter in a loop

CLEO related
Status
Not open for further replies.

mihailescudenis

New member
Joined
Apr 13, 2017
Messages
4
Reaction score
0
I need a cleo script to send enter and left mouse click each 00:04:09 first send enter than wait let s say 2 seconds and then send left mouse click key. I tried something but it failed because of my lack of arrangement of the code.
Also a script if I loose the trailer from the truck to auto press left click if it s possible
 
Last edited:

Hidend

Expert
Joined
Mar 4, 2013
Messages
625
Reaction score
39
You can probably do what you want to do without depending on left clicking every X minutes or wait X seconds, explain what do you want to do exactly
 

mihailescudenis

New member
Joined
Apr 13, 2017
Messages
4
Reaction score
0
Ok so, I need to enter a biz for the fish job and press yes to sell the fish that’s why I need the key enter to be pressed every 4 minutes. Is it possible to show the dialogue with the “Do you want to sell the fish” from outside the biz?
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
wait 0
if
0AA2: 1@ = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 1@ // IF and SET
else_jump @Noname_334
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@ 
if
  0@ > 0
else_jump @Noname_334
0085: 2@ = 0@ // (int)
2@ += 2203832

:Noname_132
wait 0
if or
0AB0:   key_pressed 36
0AB0:   key_pressed 35
else_jump @Noname_132
0A8D: 5@ = read_memory 2@ size 4 virtual_protect 1
if
  5@ > 10000
else_jump @Noname_132
0085: 30@ = 5@ // (int)
30@ += 40
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
if and
  31@ == 1
0AB0:   key_pressed 36
else_jump @Noname_273
0A8C: write_memory 30@ size 4 value 0 virtual_protect 1
gosub @Noname_336
0AD1: show_formatted_text_highpriority "Dialog Hided" time 2000 

:Noname_273
if and
  31@ == 0
0AB0:   key_pressed 35
else_jump @Noname_327
0A8C: write_memory 30@ size 4 value 1 virtual_protect 1
0AD1: show_formatted_text_highpriority "Dialog Showed" time 2000 

:Noname_327
jump @Noname_132

:Noname_334
0A93: end_custom_thread

:Noname_336
0085: 30@ = 0@ // (int)
30@ += 2203916
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
0085: 30@ = 0@ // (int)
30@ += 638256
0AA6: call_method 30@ struct 31@ num_params 3 pop 0 0 0 0 
return
 
Last edited:

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
Ok so, I need to enter a biz for the fish job and press yes to sell the fish that’s why I need the key enter to be pressed every 4 minutes. Is it possible to show the dialogue with the “Do you want to sell the fish” from outside the biz?
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
wait 0
if
0AA2: 1@ = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: 30@ = get_proc_address "GetModuleHandleA" library 1@ // IF and SET
else_jump @Noname_334
0AA7: call_function 30@ num_params 1 pop 0 "samp.dll" 0@ 
if
  0@ > 0
else_jump @Noname_334
0085: 2@ = 0@ // (int)
2@ += 2203832

:Noname_132
wait 0
if or
0AB0:   key_pressed 36
0AB0:   key_pressed 35
else_jump @Noname_132
0A8D: 5@ = read_memory 2@ size 4 virtual_protect 1
if
  5@ > 10000
else_jump @Noname_132
0085: 30@ = 5@ // (int)
30@ += 40
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
if and
  31@ == 1
0AB0:   key_pressed 36
else_jump @Noname_273
0A8C: write_memory 30@ size 4 value 0 virtual_protect 1
gosub @Noname_336
0AD1: show_formatted_text_highpriority "Dialog Hided" time 2000 

:Noname_273
if and
  31@ == 0
0AB0:   key_pressed 35
else_jump @Noname_327
0A8C: write_memory 30@ size 4 value 1 virtual_protect 1
0AD1: show_formatted_text_highpriority "Dialog Showed" time 2000 

:Noname_327
jump @Noname_132

:Noname_334
0A93: end_custom_thread

:Noname_336
0085: 30@ = 0@ // (int)
30@ += 2203916
0A8D: 31@ = read_memory 30@ size 4 virtual_protect 1
0085: 30@ = 0@ // (int)
30@ += 638256
0AA6: call_method 30@ struct 31@ num_params 3 pop 0 0 0 0 
return

do you know the dialog id?
well if the server is using easyDialogs, it wont work then because dialog was never shown to you.
to see if it uses easyDialogs just check if all dialog id's are same e.g. buy dialog, help dialog etc..
 
Status
Not open for further replies.
Top