quote:
Originally posted by phalanxii
1. How do you centre the time in the window?
Change the LblTime control's code in Windows.xml to:
code:
<Control xsi:type="RichStaticControl" Id="LblTime">
<Position Top="2" Width="30" Left="2"/>
<Attributes><Align>Center</Align></Attributes>
</Control>
Only problem is that this will only look good when the timer's width is the default width (57 pixels).
quote:
Originally posted by phalanxii
2. When a chat window is opened, the focus is on the clock window. Is it possible to refocus it onto the chat window?
Sure, add this to the function AddButton at the showed position:
code:
if (dbg) Debug.Trace("Added to Array")
OnEvent_Timer("UpdateTimer")
ChildWnd.Visible = true
focusWnd(ChatWnd.Handle)
} else {
and this to the end of the script file:
code:
function focusWnd(Wnd) {
Interop.Call('User32','BringWindowToTop', Wnd)
Interop.Call('User32','ShowWindow', Wnd, 1)
}