Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
70 user(s) are online (50 user(s) are browsing Forums)

Members: 0
Guests: 70

more...

Support us!

Headlines

 
  Register To Post  

status of the left button and right mouse with a script arexx?
Just popping in
Just popping in


See User information
Hello,

do you know the status of the left button and right mouse with a script arexx?

thank you

Go to top
Re: status of the left button and right mouse with a script arexx?
Home away from home
Home away from home


See User information
@sinisrus

What application are you writing a script for?

A generic ARexx script will have no way to know anything about mouse events.

But some appliactions have calback mechanisms to send such infor to their scripts

Examples include many gfx apps SketchBlock, ImageFX, PPaint etc. The exact technique varoes from application to application , so there is little point in answering till we know what your are scripting.




Go to top
Re: status of the left button and right mouse with a script arexx?
Just popping in
Just popping in


See User information
For rxmui soft using microbe3d.library

Ils it possible ?

Go to top
Re: status of the left button and right mouse with a script arexx?
Home away from home
Home away from home


See User information
@sinisrus

It might be I'm not familar with that software.

Edit the original post title to add microbe3D in the title, that way the author has more chnace to see it and help you.


Go to top
Re: status of the left button and right mouse with a script arexx?
Just popping in
Just popping in


See User information
made in this is not specific to the library microbe3D

for example if I want to recovered the status of the mouse buttons from the workbench is that possible with arexx script?

Go to top
Re: status of the left button and right mouse with a script arexx?
Home away from home
Home away from home


See User information
@sinisrus

I don't think so, not without some 'helper commodity', to detect such and send your script messages.


Go to top
Re: status of the left button and right mouse with a script arexx?
Just popping in
Just popping in


See User information
yet it is possible to have the x, y mouse to see script below:
this is not possible with the same technique?

/*********************************************************************/
Get_MouseX: procedure

intui = showlist(l, "intuition.library",, a)
call forbid()
screen = next(intui, 56) /* IntuitionBase->ActiveScreen */
mousex = c2d(import(offset(screen, 18), 2)) /* Screen->MouseX */
call permit();

RETURN mousex
/*********************************************************************/

Go to top
Re: status of the left button and right mouse with a script arexx?
Home away from home
Home away from home


See User information
@sinisrus

Err, poking round in IntuitionBase is a bad idea in a C program (with the exception of the first few entries) and should only be done by Locking Intuition base, not calling Forbid() Permit() how can you even call those from meaningfully from Rexx? When it relies on message passing to find commands?

But even if you insist it's okay, you can't get the qualifiers that way as they are passed with the events, you need a window to recieve the events or some commodity.

Surely if you are using rxmui that must provide access to window events etc?

Otherwise it's time to start programming in C.


Go to top
Re: status of the left button and right mouse with a script arexx?
Just popping in
Just popping in


See User information
@broadblues

Yes it is time spent in another language
Hollywood seems more suited to my needs me

thank you for your help

Go to top
Re: status of the left button and right mouse with a script arexx?
Home away from home
Home away from home


See User information
@sinisrus

You need to get the messages from UserPort of the window, but you can't use WaitPort(), becouse the window might not be yours, if your reading from ActiveWindow, and if it's not your you might steal the message from, other programs, it's not a good idea at all.

What you're trying to do it, is like trying to unlock a door using an ice-cream.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project