[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] repositioning of cursor on start up
From:       buntoobhat () gmail ! com (Buntoo Bhat)
Date:       2021-02-15 16:10:03
Message-ID: CAK27g4N48OqyLFvRrkWtco4vYkKL6wYdiwujUs+hQw+zCqwREQ () mail ! gmail ! com
[Download RAW message or body]

And i have finally suceeded in automating the cursor the comand was alright
it was just the position in the autostart file that was wrong
Thank u all for bearing me

On Fri, 12 Feb 2021, 11:45 am Buntoo Bhat, <buntoobhat at gmail.com> wrote:

> After every reboot delay time 120 secs is what i need but i  tried delay
> in the terminal which works fine but it does not work with autostart then i
> tried crontab which also dsnt work on display but in logs it shows the bash
> script worked ok
> And if i execute the bash script in terminal it also works but why dsnt it
> work on autostart and cron i also tried the script in rc.local but same
> result nothing happens
> 
> On Fri, 12 Feb 2021, 7:48 am Anthony Thyssen, <anthony.thyssen at gmail.com>
> wrote:
> 
> > Harry S. Thompson...
> > 
> > Thanks for the heads up on pyautogui.  Nice how it works for Linux,
> > MacOSX and Windows.
> > Though as a python API, rather than a command it is not directly usable
> > from autostart or openbox (menus, keys, etc).
> > 
> > 
> > As for the syntax...  If you do need to specify DISPLAY...
> > 
> > *DISPLAY=":0.0" xdotool mousemove 15805  370*
> > 
> > Directly defines DISPLAY as an environment variable JUST for the xdotool
> > command.  This is with BASH which all linux systems use as the shell.
> > 
> > However as mentioned it should not be needed.
> > 
> > As for why it does not work... something else may be moving the mouse,
> > perhaps the kiosk application itself?
> > 
> > If so, delaying the time when the mouse move happens run would probably
> > help...
> > xdotool has sleep built into it, so background it will let it work when
> > the sleep expires.
> > 
> > *xdotool sleep 30 mousemove 15805  370 &*
> > 
> > Which brings us to a different question...  DO you want to do this on
> > startup?
> > 
> > Wouldn't it be better as part of the 'reset sequence' the kiosk software
> > would be doing when it resets it's display for the next user?
> > 
> > Basically you may want to think about **when* *you want the cursor
> > positioned.
> > 
> > 
> > 
> > 
> > 
> > 
> > *  Anthony Thyssen ( System Programmer )
> > <Anthony.Thyssen at gmail.com
> > <Anthony.Thyssen at gmail.com>> \
> > ┌────────────────────────── \
> > ─────────────────────────────────────────────────┐ \
> > │ Computers are dumb... Unless otherwise stated!   -- Anthony Thyssen
> > │ └───────────────────────── \
> > ───────────────────────────────────────────────────┘
> >  Anthony's Castle is his Home                  https://antofthy.gitlab.io/
> > <https://antofthy.gitlab.io/>*
> > 
> > On Fri, Feb 12, 2021 at 6:50 AM Henry S. Thompson <ht at inf.ed.ac.uk>
> > wrote:
> > 
> > > D.T. writes:
> > > 
> > > > So you are saying this EXACT command works as desired from the
> > > > terminal:
> > > > 
> > > > > export DISPLAY=:0.0 && xdotool move mouse 15805  370
> > > > 
> > > > ???
> > > 
> > > Jumping in here with a brief heads-up:  there are some signs that
> > > xdotool is not being actively maintained:  I hit a segfault problem
> > > recently for which no workaround was available, and switched very
> > > happily to pyautogui [1].
> > > 
> > > If xdotool works for your needs, of course, carry on.
> > > 
> > > ht
> > > 
> > > [1] https://pypi.org/project/PyAutoGUI/
> > > --
> > > Henry S. Thompson, School of Informatics, University of Edinburgh
> > > 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131
> > > 650-4440
> > > Fax: (44) 131 650-4587, e-mail: ht at inf.ed.ac.uk
> > > URL: http://www.ltg.ed.ac.uk/~ht/
> > > [mail from me _always_ has a .sig like this -- mail without it is
> > > forged spam]
> > > 
> > > The University of Edinburgh is a charitable body, registered in
> > > Scotland, with registration number SC005336.
> > > 
> > > _______________________________________________
> > > openbox mailing list
> > > openbox at icculus.org
> > > http://icculus.org/mailman/listinfo/openbox
> > > 
> > _______________________________________________
> > openbox mailing list
> > openbox at icculus.org
> > http://icculus.org/mailman/listinfo/openbox
> > 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20210215/df704778/attachment.htm>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic