Mouse messages
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 142
- Joined: Thu Feb 21, 2013 8:47 am
Mouse messages
Hi,
is there a way to watch only mouse messages? Down, up, leave, enter, etc.. handler or not.
Best regards,
Marc
is there a way to watch only mouse messages? Down, up, leave, enter, etc.. handler or not.
Best regards,
Marc
Re: Mouse messages
MarcVanCauwenberghe wrote:Hi,
is there a way to watch only mouse messages? Down, up, leave, enter, etc.. handler or not.
Best regards,
Marc



Sorry, no idea what you are after!

-
- VIP Livecode Opensource Backer
- Posts: 142
- Joined: Thu Feb 21, 2013 8:47 am
Re: Mouse messages
Oops, didn't know my english was that bad
I want to watch the messages as they are being send.
I opened the Message Watcher but there are soooo many messages I want to filter them to only show me some.
More precisely only those related to the mouse. MouseUp, mouseDown, ....
I enabled / disabled several checkboxes but was unable to get the result.
My question: is it possible to do this with the Message Watcher? If not is there another way?
Best regards,
marc

I want to watch the messages as they are being send.
I opened the Message Watcher but there are soooo many messages I want to filter them to only show me some.
More precisely only those related to the mouse. MouseUp, mouseDown, ....
I enabled / disabled several checkboxes but was unable to get the result.
My question: is it possible to do this with the Message Watcher? If not is there another way?
Best regards,
marc
Re: Mouse messages
Dag Marc,
your english is probably better than my dutch, I was just no getting what exactly you wanted
OK, I never used the Message watcher for exactly that reason you were experiencing: infomation overload!
I would create a frontsript that catches all the mouse events you want ot "spot".
Create a button with all the mouse scripts you want to watch and "insert" it into front.
Someting like this:
Best
Klaus
your english is probably better than my dutch, I was just no getting what exactly you wanted

OK, I never used the Message watcher for exactly that reason you were experiencing: infomation overload!
I would create a frontsript that catches all the mouse events you want ot "spot".
Create a button with all the mouse scripts you want to watch and "insert" it into front.
Someting like this:
Code: Select all
on mouseup
put "Mouseup" && the milliseconds & CR after fld "my personal message watcher"
## Or whatever you like...
pass mouseup
end mouseup
on mouseleave
put "mouseleave" && the milliseconds & CR after fld "my personal message watcher"
pass mouseleave
end mouseup
## Etc. for all other mouse stuff...
Klaus
Re: Mouse messages
Hi Marc,
I think you are asking about the mouseLoc?
But it doesn't give up, down, right , left you have to code that yourself.
Simon
Edit: or what Klaus says.
I think you are asking about the mouseLoc?
But it doesn't give up, down, right , left you have to code that yourself.
Simon
Edit: or what Klaus says.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 142
- Joined: Thu Feb 21, 2013 8:47 am
Re: Mouse messages
Hi Simon. I am looking for messages actually, thanks anyway.
@klaus: also thanks. I thought as much. I think the message watcher could do with an option 'only allow' i will put in a enhancement request.
I will try it your way.
I'm still learning what messages are being send or not being send at any time.
Actually I want the name of the group the mouse is over at the moment the mouse is released when the mouse first clicked on another group.
If you now understand what I mean you get some bonus points
Mouseup will not do as that is never send. Mouserelease will get you the group of the first click... Mousewithin maybe?
Best regards,
Marc
@klaus: also thanks. I thought as much. I think the message watcher could do with an option 'only allow' i will put in a enhancement request.
I will try it your way.
I'm still learning what messages are being send or not being send at any time.
Actually I want the name of the group the mouse is over at the moment the mouse is released when the mouse first clicked on another group.
If you now understand what I mean you get some bonus points

Mouseup will not do as that is never send. Mouserelease will get you the group of the first click... Mousewithin maybe?
Best regards,
Marc
Re: Mouse messages
Marc.
This is a terrific idea. The message watcher is great at filtering OUT messages, but terrible at ALLOWING only certain ones. Please do put this into the "feature request" section.
Craig Newman
This is a terrific idea. The message watcher is great at filtering OUT messages, but terrible at ALLOWING only certain ones. Please do put this into the "feature request" section.
Craig Newman
Re: Mouse messages
..........
Last edited by [-hh] on Wed Aug 13, 2014 12:28 pm, edited 1 time in total.
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 142
- Joined: Thu Feb 21, 2013 8:47 am
Re: Mouse messages
That stack is great, thanks
Looks very close to what I need.
Best regards,
Marc
Looks very close to what I need.
Best regards,
Marc