SRL Archive - OSR Help

another nooby question =p


ogustuce

2012-05-05 23:17:06

ik that to modify bottom tabs like set friend chat to 'off' is SetChat('off',2) but what do i write to click on it? i tried (true,2) doesnt work =p

Gucci

2012-05-05 23:50:33

Well if that function moves the mouse over the friend's chat then you could use Mouse or ClickMouse2. But just guessing the function should just turn it off as it seems that's what the function's for

Le Jingle

2012-05-06 00:03:26

I think these should work, might have to rename the click type.
Hope this helps.
// Left Click the 'All' Tab
MouseBox(7, 484, 55, 495, mouse_left);

// Left Click the 'Game' Tab
MouseBox(67, 484, 110, 495, mouse_left);

// Left Click the 'Public' Tab
MouseBox(127, 484, 165, 495, mouse_left);

// Left Click the 'Private' Tab
MouseBox(187, 484, 220, 495, mouse_left);

// Left Click the 'Friends' Tab
MouseBox(247, 484, 275, 495, mouse_left);

// Left Click the 'Clan' Tab
MouseBox(307, 484, 330, 495, mouse_left);

// Left Click the 'Trade' Tab
MouseBox(367, 484, 385, 495, mouse_left);

// Left Click the 'Assist' Tab
MouseBox(427, 484, 440, 495, mouse_left);

John

2012-05-06 05:47:18

From: Le Jingle
I think these should work, might have to rename the click type.
Hope this helps.
// Left Click the 'All' Tab
MouseBox(7, 484, 55, 495, mouse_left);

// Left Click the 'Game' Tab
MouseBox(67, 484, 110, 495, mouse_left);

// Left Click the 'Public' Tab
MouseBox(127, 484, 165, 495, mouse_left);

// Left Click the 'Private' Tab
MouseBox(187, 484, 220, 495, mouse_left);

// Left Click the 'Friends' Tab
MouseBox(247, 484, 275, 495, mouse_left);

// Left Click the 'Clan' Tab
MouseBox(307, 484, 330, 495, mouse_left);

// Left Click the 'Trade' Tab
MouseBox(367, 484, 385, 495, mouse_left);

// Left Click the 'Assist' Tab
MouseBox(427, 484, 440, 495, mouse_left);


Would
ChooseOption('WhatYouWntToChooseHere');
Be needed? Or would that not work?

nickrules

2012-05-06 10:13:40

If you read through the function, you would find this little section, which is what handles your input

case Lowercase(State) of
'on', 'all': Color := 65280;
'off': Color := 255;
'hide': Color := 16776960;
'friends', 'filter': Color := 65535;
else
srl_Warn('SetChat', state + ' does not exist.', warn_AllVersions);
end;

Basically, it means you can use 'on', 'off', 'all', 'hide', or 'friends'.


Alternatively, you can use mouse + chooseoption

ogustuce

2012-05-06 23:48:47

i dont want to change the option, i just want to left click on the tab