If you intend to use xinput then you will need to take a minimum of 2 readings for the mouse......
......which will give the results:
And the second take:
You will then need to compare the two strings for a difference and VOILA you have detected the mouse movement.
As OSX 10.14.1 does NOT have xinput I have once again rebooted to Linux Mint to help.
It is all up to you now to create your bash script to do the task you want.
These 2 Users Gave Thanks to wisecracker For This Post:
Hi All !
I hope you can help about this.Anyone know if AIX can monitor (process) keystrokes or mouse moves even when the application is not the active window ?
Thank You. (0 Replies)
Hi
I'm wondering how I can find all the files which were installed on certain date?
For example: I'm looking for alle the files which were installed on the 11.09.06 on the system.
Does somebody know how to do this?
Thanks
Reto (2 Replies)
I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script.
To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script.
Is there... (2 Replies)
Hello,
I have a problem with multiscreen configuration. My solaris 8 is configured to work with two monitors. Physically they cannot be interchanged. My question is how to configure openwin in order to have mouse pointer to move right to left from screen to screen because now it is preconfigured... (4 Replies)
Dear all,
Please help me clarify why i cannot run command in /sbin directory (ex: /sbin/fdisk -l )!
I've checked permission on files which belong /sbin directory with execute permission. However, i still cannot run with normal user.
Sorry for my English.
thanks all, (5 Replies)
i have this line of code on a korn shell script to detect the presence of script run:
ISRUNNING=`ps -eaf -o args | grep -i sfs_load_file.ksh | grep -v grep | wc -l`
sometimes this returns either 1, 2, or 3. when it returns 2 or 3 that tells us that there are more than 1 script of... (8 Replies)
I would like a script that would run pm-suspend if there has been no keyboard or mouse input for a specified time.
------ Post updated at 11:17 AM ------
Never mind. I found a setting in power management that does what I need. (0 Replies)
Hello,
I am running under ubuntu 14.04
Very long time ago, I set a script (ban.sh) to block ip addresses abusing my system which was not active.
I have not touched the server over six months or more.
Today, after restart the system, ban.sh started running all of a sudden and keep submitting... (4 Replies)
Discussion started by: baris35
4 Replies
LEARN ABOUT SUSE
glutmousefunc
glutMouseFunc(3GLUT) GLUT glutMouseFunc(3GLUT)NAME
glutMouseFunc - sets the mouse callback for the current window.
SYNTAX
void glutMouseFunc(void (*func)(int button, int state,
int x, int y));
ARGUMENTS
func The new mouse callback function.
DESCRIPTION
glutMouseFunc sets the mouse callback for the current window. When a user presses and releases mouse buttons in the window, each press and
each release generates a mouse callback. The button parameter is one of GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, or GLUT_RIGHT_BUTTON. For
systems with only two mouse buttons, it may not be possible to generate GLUT_MIDDLE_BUTTON callback. For systems with a single mouse but-
ton, it may be possible to generate only a GLUT_LEFT_BUTTON callback. The state parameter is either GLUT_UP or GLUT_DOWN indicating whether
the callback was due to a release or press respectively. The x and y callback parameters indicate the window relative coordinates when the
mouse button state changed. If a GLUT_DOWN callback for a specific button is triggered, the program can assume a GLUT_UP callback for the
same button will be generated (assuming the window still has a mouse callback registered) when the mouse button is released even if the
mouse has moved outside the window.
If a menu is attached to a button for a window, mouse callbacks will not be generated for that button.
During a mouse callback, glutGetModifiers may be called to determine the state of modifier keys when the mouse event generating the call-
back occurred.
Passing NULL to glutMouseFunc disables the generation of mouse callbacks.
SEE ALSO
glutKeyboardFunc, glutMotionFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutGetModifiers
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutMouseFunc(3GLUT)