mIRC Home    About    Download    Register    News    Help

Print Thread
#184509 29/08/07 10:22 PM
Joined: Aug 2007
Posts: 14
_
Pikka bird
OP Offline
Pikka bird
_
Joined: Aug 2007
Posts: 14
Hi all,

For some reason, //echo -a $mouse.x with return a * /echo: insufficient parameters error when the mouse is over a non active dialog, in the channel switch bar or basically on any part of the screen that isnt active in mirc, toolbar etc etc.

Is this a bug?

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
This is *probably* by design-- but you'd expect a response in dialogs

(Disregard previous GetCursorPos() comment)

Last edited by argv0; 29/08/07 11:28 PM.

- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #184515 29/08/07 11:10 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
That's what .dx/dy are for. .x/y are supposed to return the x,y coords relative to window/dialog under the cursor (edit), so it makes sense to return $null when the mouse isn't above a mirc window/dialog.

Well it seems .x/y doesn't work at all outside of events in dialogs, active or not. That is not consistent with the way it works in windows.

Last edited by qwerty; 29/08/07 11:16 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
Hi,

no this is not a bug.

if you do //echo -a 4
you will get the same message.
What you are doing here is telling mirc to use a color, then you miss the rest of the text.

Kind Regards

ote=_cornflake_]Hi all,

For some reason, //echo -a $mouse.x with return a * /echo: insufficient parameters error when the mouse is over a non active dialog, in the channel switch bar or basically on any part of the screen that isnt active in mirc, toolbar etc etc.

Is this a bug? [/quote]

tontito #184613 30/08/07 08:54 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Did you even try that?

//echo -a 4 works perfectly fine. //echo 4 doesn't, but /echo with any switches and then a number does.

tontito #184636 31/08/07 03:35 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Originally Posted By: tontito
What you are doing here is telling mirc to use a color, then you miss the rest of the text.



You have it backwards: the colour is *before* the -switches, never after.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard