well, the VIRTUAL KEY CODE for this button is :
Code:
VK_NEXT (0x22)
PAGE DOWN key
so, what we're gonna do is try to implent the virtual key into scar.
well, the msdn uses windows api, and HEX, so what i did was used the delphi virtual key codes:
http://delphi.about.com/od/objectpascalide/l/blvkc.htm
and wel, 0x22 = 22 lol.
so the scar codes look like this :
and scar read's the VK strings so :
Code:
program downpage;
var
i:integer;
const
howlong = 10000; // time in mili seconds so 1 second is 1000;
begin
activateclient;
i := 0;
repeat
if (i < howlong) then
begin
KeyDown(VK_NEXT); // VK_NEXT is the downpage button.
wait(1000);
i := i + 1;
end;
until(i = howlong)
end.
would work

~Eduard
wanna learn more? check out my thread