CLEO HELP Sendkey mouse1 and enter in a loop

Joined
Apr 13, 2017
Messages
4
Likes
0
Points
1
1
#1
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

Well-Known Member
Joined
Mar 4, 2013
Messages
522
Likes
19
Points
68
#2
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
 
OP
OP
M
Joined
Apr 13, 2017
Messages
4
Likes
0
Points
1
1
#4
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: [email protected] = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: [email protected] = get_proc_address "GetModuleHandleA" library [email protected] // IF and SET
else_jump @Noname_334
0AA7: call_function [email protected] num_params 1 pop 0 "samp.dll" [email protected] 
if
  [email protected] > 0
else_jump @Noname_334
0085: [email protected] = [email protected] // (int)
[email protected] += 2203832

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

:Noname_273
if and
  [email protected] == 0
0AB0:   key_pressed 35
else_jump @Noname_327
0A8C: write_memory [email protected] 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: [email protected] = [email protected] // (int)
[email protected] += 2203916
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 1
0085: [email protected] = [email protected] // (int)
[email protected] += 638256
0AA6: call_method [email protected] struct [email protected] num_params 3 pop 0 0 0 0 
return
 
Last edited:

0x32789

Well-Known Member
Joined
May 26, 2014
Messages
829
Likes
27
Points
78
Location
LongForgotten <-> 0x32789
#5
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: [email protected] = load_library "kernel32.dll" // IF and SET
else_jump @Noname_334
if
0AA4: [email protected] = get_proc_address "GetModuleHandleA" library [email protected] // IF and SET
else_jump @Noname_334
0AA7: call_function [email protected] num_params 1 pop 0 "samp.dll" [email protected] 
if
  [email protected] > 0
else_jump @Noname_334
0085: [email protected] = [email protected] // (int)
[email protected] += 2203832

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

:Noname_273
if and
  [email protected] == 0
0AB0:   key_pressed 35
else_jump @Noname_327
0A8C: write_memory [email protected] 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: [email protected] = [email protected] // (int)
[email protected] += 2203916
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 1
0085: [email protected] = [email protected] // (int)
[email protected] += 638256
0AA6: call_method [email protected] struct [email protected] 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..
 
Top