What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » High priority window!

High priority window!
Author: Message:
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. High priority window!
Hello again,this time 1 have a really easy couple of question!:)
First of all..1 made a script which makes appear a window when user logs in,but this window is supparsed by the other msn windows,how could 1 make it stay always in the center of the screen?
04-26-2007 09:22 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: High priority window!
You can make the window stay on top of other windows by specifying the TopMost attribute in the window's XML.
Example:
code:
<Window Id="...">
  <Attributes>
    <TopMost>true</TopMost>
  </Attributes>
  ...
</Window>

And by default it should appear in the center of the screen but to make it not movable you can disable the LockOnClick attribute.

code:
<Window Id="...">
  <Attributes>
    <TopMost>true</TopMost>
    <LockOnClick>false</LockOnClick>
  </Attributes>
</Window>

Can't test this at the moment but it should work...
04-26-2007 09:53 PM
Profile PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: High priority window!
Thx much!Just another thing...in xml how can I increase the size and the colour of the text?
04-27-2007 09:40 AM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: High priority window!
quote:
Originally posted by Light86
Thx much!Just another thing...in xml how can I increase the size and the colour of the text?
Scripting Documentation - Interface Windows Schema Documentation
04-27-2007 10:02 AM
Profile PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: RE: High priority window!
quote:
Originally posted by Volv
quote:
Originally posted by Light86
Thx much!Just another thing...in xml how can I increase the size and the colour of the text?
Scripting Documentation - Interface Windows Schema Documentation


Can't understand anythyng^o)
04-27-2007 10:37 AM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: High priority window!
Use a RichStaticControl for colored text. Plus! formatting codes can be used for color and other effects.
For font size-
code:
<Control xsi:type="RichStaticControl" Id="Txt">
  <Position .... />
  <Font>
    <Size>12</Size>
  </Font>
  <Caption>[c=blue]This will be blue colored[/c]</Caption>
  </Control>

04-27-2007 01:31 PM
Profile E-Mail PM Web Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: High priority window!
Thanks very much!:D
04-27-2007 02:26 PM
Profile E-Mail PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: High priority window!
How would i make a window like
code:
var result = Interop.Call("User32.dll", "MessageBoxW", 0, "Your account has been disabled. Do you want more infomation?", "Error!", 16+4);

always stay in the centre and on top of the screen until a button is pressed.

This post was edited on 04-27-2007 at 06:03 PM by Jimbo.
04-27-2007 06:00 PM
Profile E-Mail PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: High priority window!
You can probably do in this ugly way:
code:
var result = Interop.Call("User32.dll", "MessageBoxW", 0, "Your account has been disabled. Do you want more infomation?", "Error!", 16+4);
// Get window handle to MessageBox
var hMessageBox = Interop.Call("User32.dll", "GetForegroundWindow");
// Apply TopMost
Interop.Call("User32.dll", "SetWindowPos", Handle, -1, 0, 0, 0, 0,19);

4 8 15 16 23 42
04-27-2007 07:06 PM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: High priority window!
Or you could do it the proper way by passing the MB_TOPMOST flag to the MessageBox call.
* Eljay slaps vikke :P

code:
var result = Interop.Call("User32.dll", "MessageBoxW", 0, "Your account has been disabled. Do you want more infomation?", "Error!", 16|4|0x40000);
04-27-2007 07:14 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On