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

Notices


Reply
  Search this Thread
Old 11-06-2004, 08:30 AM   #1
malo_umoran
Member
 
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


Hi,

I have a shell script which does a few things and after that locks the screen using:
Code:
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

M.
 
Old 11-06-2004, 09:31 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


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 04:26 AM
C executable or shell script run in mouse evnt sudhasmyle Programming 0 02-23-2005 07:37 AM
Erratic mouse pointer with wireless USB mouse jomax Fedora 0 01-04-2005 04:38 AM
how to move pointer w/o using mouse in X gongli Linux - Software 1 10-22-2003 08:42 PM
The you have a Mouse Pointer Problem(mouse stick top left)here is the solution. dr4ven Linux - Hardware 0 05-25-2003 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:41 AM.

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