Log in

View Full Version : Newbie question



MatthiasGu
06-29-2011, 11:31 AM
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
06-29-2011, 11:45 AM
In Scar this would move the mouse and click in one procedure, I guess you found a small bug in simba ;p.

MatthiasGu
06-29-2011, 12:05 PM
Cool! Yet how do i press that enter? I seem to be stuck on that :P

Sex
06-29-2011, 12:49 PM
Cool! Yet how do i press that enter? I seem to be stuck on that :P
PressKey(VK_RETURN);

MatthiasGu
06-29-2011, 01:42 PM
Ahhh I always forget that enter = return! Thank you :)