Some questions about skins... in Developer Help
|
|
1. How do I center the main window on a screen, and how would I lock other windows on a certain spot on the screen?
2.Would it be possible to, for example, press a button, and that uses a macro that automatically clicks the input window? And if so, how might I do that?
3. Would it be possible to have it so that, when you click the input window, You can change what type of input you are putting in. Example of what I am saying would be... You are writing in the input window, and then you press alt or some other key, and it would change the input from your view, to the world?
4. I think this is the last question, Would it be possible to make a proc run, while a person is typing in the input window?
Like, they start typing there message, and a proc runs. They stop typing, the proc stops, something along those lines?
Thank you for reading these questions, and for any help you can give
|
I don't believe at present you can center a window on the screen, since we don't have anything to grab either screen size or the exterior size of the window. (The window.size parameter deals with interior size.) You would need both pieces of info to center a window on screen.
It is also not possible to keep a window locked in a certain position; I'm not even sure Windows would make that entirely feasible, since I can't really think of any particular programs that lock their window in one place. It would be possible to add a parameter to disable the ability to drag a window around by its content area, and so if that was in use you could in theory remove the window title and border and have an unmovable window. I'm not sure I see that as being very desirable, but it's something we could consider.
If you mean automatically acting as if Enter was typed, then no. This could conceivably represent a security hole, since it could be used to force commands to run that the user did not intend.
If you mean you want to move the keyboard focus to the input control, then yes. You can use the focus parameter for that.
If I interpret this right you're basically asking about a way of dynamically changing what objects a verb has access to. Since the objects accepted by a verb are defined by the verb itself, this is not possible. This would be more along the lines of a language feature than a skin feature.
As far as skins go though, you could have a specific command setup for an input window that changed by using a macro or button. So for example if you had an input control dedicated to chat, you could hit a button and change its command from "say" to "teamsay" to talk to your teammates only.
At some point down the road we may implement an on-change parameter for input controls. This has not been done yet for one reason. Because the server can presently only process one command per tick, on-change would basically overrule any other input from the user. In the future this may come up again for consideration.
Lummox JR