Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to move a message window?
#1
Hi All it's me again...

Trying to figure out how to move a message window.
I tried two ways with no success. 
I thought this would be simple but, guess this type of message window
will require a applying different method.

Also, if there is a way to create the mess box at the mouse location.
So create mess, 1) In specific monitor and 2) at mouse location.

Any help appreciated!

Function Test_Link_Msg_for_Forum
Code:
Copy      Help
/ Test \

sel mes("This is a test message." "Test Message" "O?")
,int w=win("Test Message" "#32770")
,_monitor=2
,MoveWindowToMonitor(w _monitor)
,;mov -1001 315 w
,case 'O'
,out "Ok clicked."
#2
Function Function12
here is an example. you should be able to edit that for what you want.

Code:
Copy      Help
POINT p; xm(p) ;;get mouse position into p.x and p.y

MES m
m.style="YNCn"

m.x=p.x
m.y=p.y
m.timeout=15
m.default='C'
int i=mes("message" "title" m)
#3
Thanks redbull2k this works for me for number 2 below
Any ideas on number 1 in bold??

"mess, 1) In specific monitor and 2) at mouse location."
#4
try this  cant test right now on a laptop.
Code:
Copy      Help
POINT p; xm(p);
MES m
m.x=p.x
m.y=p.y
m.style="OC"
m.timeout=15
m.default='C'
mac "sub.MoveMessage"
sel mes("This is a test message." "Test Message" m)
,case 'O' 
,out "OK"
,case 'C'
,out "Cancel"
,
#sub MoveMessage    
int w=wait(0 WA win("Test Message" "#32770"))
_monitor=2
MoveWindowToMonitor(w _monitor)
#5
Macro Macro3046
Code:
Copy      Help
_monitor=2
mes 1
#6
There we go, excellent!

Works great, thank you guys!!  Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)