Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-06-2004, 07:30 AM   #1
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
move mouse pointer from shell script


I have a shell script which does a few things and after that locks the screen using:
xscreensaver-command -lock
When the script got the right param, it should also be able to show the usual "xscreensaver unlock window" (where you enter your username and password). But this window shows up only if I move the mouse to press a key on the keyboard.

I want to show it automatically without waiting user to press the key or move the mouse.

So I was thinking about moving mouse or pressing the key automaticaly from the shell script. xscreensaver should recognize this and it would show the unlock window.

Any ideas how to do this? Is there a possibility to send "key press" event or to move mouse with an application?

Any ideas?

I would appreciate any help.

Thanks a lot

Old 11-06-2004, 08:31 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
When you want to show the login box just run:
xscreensaver-command -deactivate


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
disconnect USB mouse data from the mouse pointer Yeronimo Programming 0 04-07-2005 03:26 AM
C executable or shell script run in mouse evnt sudhasmyle Programming 0 02-23-2005 06:37 AM
Erratic mouse pointer with wireless USB mouse jomax Fedora 0 01-04-2005 03:38 AM
how to move pointer w/o using mouse in X gongli Linux - Software 1 10-22-2003 07:42 PM
The you have a Mouse Pointer Problem(mouse stick top left)here is the solution. dr4ven Linux - Hardware 0 05-25-2003 05:53 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration