with this method you l reach the middle of the box
[shcode=cpp]
Dialog.AddCheckBox(dialog_id 0@, checkbox_id 0, checkbox_caption "", XY: 200, 5, SIZE: 25, 25)
while true
wait 0
if Dialog.IsVisible(0@)
then
if Dialog.CheckBoxIsChecked(0@, 0)
then
0B5E: get_cursor_pos 3@ 4@
//////////////////////////////////////
{checkbox_x_pos = checkbox_x_pos + 10}
{checkbox_y_pos = checkbox_y_pos + 25}
//////////////////////////////////////
3@ -= 210
4@ -= 30
//////////////////////////////////////
{3@ = 3@ - checkbox_x_pos}
{4@ = 4@ - checkbox_y_pos}
Dialog.GetRECT(0@, -1, -1, 1@, 2@)
Dialog.SetRECT(0@, 3@, 4@, 1@, 2@)
{now move mouse where you want to, just press click 1 to save curent pos}
end
end
end
[/shcode]
[shcode=cpp]
Dialog.AddCheckBox(dialog_id 0@, checkbox_id 0, checkbox_caption "", XY: 200, 5, SIZE: 25, 25)
while true
wait 0
if Dialog.IsVisible(0@)
then
if Dialog.CheckBoxIsChecked(0@, 0)
then
0B5E: get_cursor_pos 3@ 4@
//////////////////////////////////////
{checkbox_x_pos = checkbox_x_pos + 10}
{checkbox_y_pos = checkbox_y_pos + 25}
//////////////////////////////////////
3@ -= 210
4@ -= 30
//////////////////////////////////////
{3@ = 3@ - checkbox_x_pos}
{4@ = 4@ - checkbox_y_pos}
Dialog.GetRECT(0@, -1, -1, 1@, 2@)
Dialog.SetRECT(0@, 3@, 4@, 1@, 2@)
{now move mouse where you want to, just press click 1 to save curent pos}
end
end
end
[/shcode]