<div dir="auto">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<div dir="auto">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</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 12 Feb 2021, 7:48 am Anthony Thyssen, <<a href="mailto:anthony.thyssen@gmail.com">anthony.thyssen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Harry S. Thompson...<br><br>Thanks for the heads up on pyautogui.  Nice how it works for Linux, MacOSX and Windows.<br>Though as a python API, rather than a command it is not directly usable from autostart or openbox (menus, keys, etc).<br><br><br>As for the syntax...  If you do need to specify DISPLAY...<br><br><font face="monospace"><b>DISPLAY=":0.0" xdotool mousemove 15805  370</b></font><br><br>Directly defines DISPLAY as an environment variable JUST for the xdotool command.  This is with BASH which all linux systems use as the shell.<br><br>However as mentioned it should not be needed.<br><br>As for why it does not work... something else may be moving the mouse, perhaps the kiosk application itself?<br><br>If so, delaying the time when the mouse move happens run would probably help... <br>xdotool has sleep built into it, so background it will let it work when the sleep expires.<br><br><font face="monospace"><b>xdotool sleep 30 mousemove 15805  370 &</b></font><br><br>Which brings us to a different question...  DO you want to do this on startup? <br><br>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?<br><br>Basically you may want to think about <b>*when* </b>you want the cursor positioned.<br><br> <font face="monospace"><b>  Anthony Thyssen ( System Programmer )         <<a href="mailto:Anthony.Thyssen@gmail.com" target="_blank" rel="noreferrer">Anthony.Thyssen@gmail.com</a>><br> ┌────────────────────────────────────────────────────────────────────────────┐<br> │    Computers are dumb... Unless otherwise stated!   -- Anthony Thyssen     │<br> └────────────────────────────────────────────────────────────────────────────┘<br>   Anthony's Castle is his Home                  <a href="https://antofthy.gitlab.io/" target="_blank" rel="noreferrer">https://antofthy.gitlab.io/</a><br></b></font><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 12, 2021 at 6:50 AM Henry S. Thompson <<a href="mailto:ht@inf.ed.ac.uk" target="_blank" rel="noreferrer">ht@inf.ed.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">D.T. writes:<br>
<br>
> So you are saying this EXACT command works as desired from the<br>
> terminal:<br>
><br>
>> export DISPLAY=:0.0 && xdotool move mouse 15805  370<br>
><br>
> ???<br>
<br>
Jumping in here with a brief heads-up:  there are some signs that<br>
xdotool is not being actively maintained:  I hit a segfault problem<br>
recently for which no workaround was available, and switched very<br>
happily to pyautogui [1].<br>
<br>
If xdotool works for your needs, of course, carry on.<br>
<br>
ht<br>
<br>
[1] <a href="https://pypi.org/project/PyAutoGUI/" rel="noreferrer noreferrer" target="_blank">https://pypi.org/project/PyAutoGUI/</a><br>
-- <br>
       Henry S. Thompson, School of Informatics, University of Edinburgh<br>
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440<br>
                Fax: (44) 131 650-4587, e-mail: <a href="mailto:ht@inf.ed.ac.uk" target="_blank" rel="noreferrer">ht@inf.ed.ac.uk</a><br>
                       URL: <a href="http://www.ltg.ed.ac.uk/~ht/" rel="noreferrer noreferrer" target="_blank">http://www.ltg.ed.ac.uk/~ht/</a><br>
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]<br>
<br>
The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank" rel="noreferrer">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</blockquote></div>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank" rel="noreferrer">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</blockquote></div>