Posts: 62
Threads: 22
Joined: Jul 2017
10-29-2020, 01:03 PM
(This post was last modified: 10-29-2020, 01:17 PM by ScottF.)
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
/ 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."
Posts: 229
Threads: 22
Joined: Sep 2007
Function
Function12
here is an example. you should be able to edit that for what you want.
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)
Posts: 62
Threads: 22
Joined: Jul 2017
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."
Posts: 1,338
Threads: 61
Joined: Jul 2006
try this cant test right now on a laptop.
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)
Posts: 12,092
Threads: 142
Joined: Dec 2002
Posts: 62
Threads: 22
Joined: Jul 2017
There we go, excellent!
Works great, thank you guys!!