SRL Archive - RS has been updated.

Anyone having this issue after EOC?


krasniy

2012-11-25 08:46:52

When a script (updated) is using the action bar key to make an action or spell occur INSTEAD of doing that it actually TYPES the darn command (say 1 for action bar spot 1) INTO the darn chat box…. doesnt ALWAYS happen, but it happens QUITE ALOT (85%+)

Is there something to turn OFF the ability to type into the chatbox or any other way around that?

Is there a way to make this NOT happen???

riwu

2012-11-25 09:00:04

You shouldn't be using TypeSend to send a key. As the name suggests, it should be, and has always been used for typing messages (eg. in auto responders), hence to fix scripts that uses it (before EOC), it has to be implemented to type enter when necessary.

There will be specific SRL functions soon to press action bar keys.
It will probably just be: SendKeys(), with a couple of checks to ensure action bar is active etc.

Prometheus

2012-11-25 13:09:57

Make sure that the chatbox says to "Press Enter to Chat" and the ability bar menu thing not minimized

King

2012-11-25 13:13:05

As riwu stated, use SendKey(). It's what I've been doing so far and it works, only problem is my color checking for the action bar is only half done :P

Solar

2012-11-25 16:08:14

One way of solving the problem might be to check for the text in the chatbox where you type to make sure it says Press Enter…, and then if it doesn't just press esc before pressing 1.

euphemism

2012-11-25 16:16:14

From: SRLKing
As riwu stated, use SendKey(). It's what I've been doing so far and it works, only problem is my color checking for the action bar is only half done :P


Checking to see if the action bar is open? SRL now has an 'IsActionBarOpen' function, and an accompanying 'ToggleActionBar' function.

Le Jingle

2012-11-25 16:30:31

From: euphemism
Checking to see if the action bar is open? SRL now has an 'IsActionBarOpen' function, and an accompanying 'ToggleActionBar' function.


Should not 'isActionBarOpen,' be 'ActionBarOpen?'

Gametab.simba is currently the way you stated, however it errors upon script compiles and there is indeed a function, ActionBarOpen.
http://villavu.com/forum/showpost.php?p=1132391&postcount=151

euphemism

2012-11-25 16:45:35

From: Le Jingle
Should not 'isActionBarOpen,' be 'ActionBarOpen?'

Gametab.simba is currently the way you stated, however it errors upon script compiles and there is indeed a function, ActionBarOpen.
http://villavu.com/forum/showpost.php?p=1132391&postcount=151


Check gametab.simba at https://github.com/SRL/SRL-5/ as it got pretty messed up with the last few commits. Dgby714 just merged my fixes so it should compile once the updater pushes the new version.

King

2012-11-30 23:49:20

From: euphemism
Checking to see if the action bar is open? SRL now has an 'IsActionBarOpen' function, and an accompanying 'ToggleActionBar' function.


I didnt know :P

Sirenia

2012-12-01 05:11:13

copy TypeSendEx from the include and name it something like TypeSendEEx or something like that. After just remove the part that opens the bar :)

t4q

2012-12-02 15:50:55

I use typebyte(VK_1)