SRL Archive - Help

Newbie question


MatthiasGu

2011-06-29 07:31:41

Hello, I've just started using Simba, and writing a script to open my Internet Explorer.

So anyway, the line looks like this:

program new;
begin
MoveMouse(213,881);
ClickMouse(213,881,1);
end.

Everything is working fine, but I have noticed that I've given the coordinates twice, so I figured I can just delete the MoveMouse since I told him where to click, but when I deleted the MoveMouse line, the program now does nothing.
If I delete the coordinates on ClickMouse, the program wont compile, but if I put ANY coordinates in the command, it still clicks on the (213,881). So my question is, why are those coordinates near ClickMouse necessary? :redface:

Also, how can you make him press Enter? vk_enter doesn't seem to work, but vk_f vk_up, and stuff like that do.

masterBB

2011-06-29 07:45:09

In Scar this would move the mouse and click in one procedure, I guess you found a small bug in simba ;p.

MatthiasGu

2011-06-29 08:05:36

Cool! Yet how do i press that enter? I seem to be stuck on that :P

Sex

2011-06-29 08:49:05

From: MatthiasGu
Cool! Yet how do i press that enter? I seem to be stuck on that :P

PressKey(VK_RETURN);

MatthiasGu

2011-06-29 09:42:12

Ahhh I always forget that enter = return! Thank you :)