Skip to main content

ydotool testing

  download from release

mv ydotool-release-ubuntu-latest ~/.bin/ydotool

mv  ydotoold-release-ubuntu-latest ~/.bin/ydotoold


sudo ydotoold -p /run/user/1000/.ydotool_socket -o 1000:1000


ydotool mousemove -x -100 -y 100
ydotool mousemove --absolute -x 100 -y 100
for screen resolution 1920x1080 x=0-1919 y=0-1079
ydotool mousemove --absolute -x 0 -y 0    ##moves to top left
ydotool mousemove --absolute -x 960 -y 0 ##moves to top right
ydotool mousemove --absolute -x 0 -y 540 ## moves bottom left 
 ydotool mousemove --absolute -x 960 -y 540 ## moves bottom left 
right click 
ydotool click 0xC1 
left click   
ydotool click 0xC0 
repeating left click  
ydotool click --repeat 5 --next-delay 25 0xC0 
delay is in ms  
ydotool click --repeat 50000 --next-delay 1000 0xC0 
ydotool mousemove --absolute -x 398 -y 981  click 0xC0
get mouse position with 
bindsym $mod+z exec notify-send "$(slurp -p)" 
the position used by ydotool is half of given by slurp for some reasons
for i in {0..100}                                                    
ydotool mousemove --absolute -x 210 -y 502                           
ydotool click 0xC0
ydotool mousemove --absolute -x 403 -y 502
ydotool click 0xC0
ydotool mousemove --absolute -x 613 -y 502
ydotool click 0xC0
ydotool mousemove --absolute -x 815 -y 502
ydotool click 0xC0
sleep 10
for i in {0..960}                                                    
ydotool mousemove --absolute -x $i -y 0
sleep 0.01
echo $i
for i in {0..540}
ydotool mousemove --absolute -x 0 -y $i
sleep 0.01
echo $i
clicking uniformly spaced buttons 
for i in {62..919..61}
ydotool mousemove --absolute -x $i -y 524
ydotool click 0xC0
sudo ydotoold -p /run/user/1000/.ydotool_socket -o 1000:1000
Usage: ydotool <cmd> <args>
Available commands:
Use environment variable YDOTOOL_SOCKET to specify daemon socket.
ydotool click
Usage: click [OPTION]... [BUTTONS]...
Click mouse buttons.

-r, --repeat=N Repeat entire sequence N times
-D, --next-delay=N Delay N milliseconds between input events (up/down, a complete click means doubled time)
-h, --help Display this help and exit

How to specify buttons:
Now all mouse buttons are represented using hexadecimal numeric values, with an optional
bit mask to specify if mouse up/down needs to be omitted.
0x00 - LEFT
0x01 - RIGHT
0x02 - MIDDLE
0x03 - SIDE
0x04 - EXTR
0x05 - FORWARD
0x06 - BACK
0x07 - TASK
0x40 - Mouse down
0x80 - Mouse up
0x00: chooses left button, but does nothing (you can use this to implement extra sleeps)
0xC0: left button click (down then up)
0x41: right button down
0x82: middle button up
The '0x' prefix can be omitted if you want. 



Popular posts from this blog

sxhkd volume andbrightness config for dwm on void

xbps-install  sxhkd ------------ mkdir .config/sxhkd cd .config/sxhkd nano/vim sxhkdrc -------------------------------- XF86AudioRaiseVolume         amixer -c 1 -- sset Master 2db+ XF86AudioLowerVolume         amixer -c 1 -- sset Master 2db- XF86AudioMute         amixer -c 1 -- sset Master toggle alt + shift + Escape         pkill -USR1 -x sxhkd XF86MonBrightnessUp          xbacklight -inc 20 XF86MonBrightnessDown          xbacklight -dec 20 ------------------------------------------------------------- amixer -c card_no -- sset Interface volume run alsamixer to find card no and interface names xbps-install -S git git clone xbps-install -S base-devel libX11-devel libXft-devel libXinerama-devel  vim # FREETYPEINC = ${X11INC}/freetype2 #comment for non-bsd make clean install   cp config.def.h config.h vim config.h xbps-install -S font-symbola #for emoji on statusbar support     void audio config xbps-i

Hidden Wiki

Welcome to The Hidden Wiki New hidden wiki url 2015 http://zqktlwi4fecvo6ri.onion Add it to bookmarks and spread it!!! Editor's picks Bored? Pick a random page from the article index and replace one of these slots with it. The Matrix - Very nice to read. How to Exit the Matrix - Learn how to Protect yourself and your rights, online and off. Verifying PGP signatures - A short and simple how-to guide. In Praise Of Hawala - Anonymous informal value transfer system. Volunteer Here are five different things that you can help us out with. Plunder other hidden service lists for links and place them here! File the SnapBBSIndex links wherever they go. Set external links to HTTPS where available, good certificate, and same content. Care to start recording onionland's history? Check out Onionland's Museum Perform Dead Services Duties. Introduction Points - Clearnet search engine for Tor Hidden Services (allows you

download office 2021 and activate

get office from here open powershell as admin (win+x and a ) type cmd  goto insall dir 1.         cd /d %ProgramFiles(x86)%\Microsoft Office\Office16 2.           cd /d %ProgramFiles%\Microsoft Office\Office16 try 1 or 2 depending on installation  install volume license  for /f %x in ('dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" activate using kms cscript ospp.vbs /setprt:1688 cscript ospp.vbs /unpkey:6F7TH >nul cscript ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH cscript ospp.vbs / cscript ospp.vbs /act Automatic script (windefender may block it) ------------------------------------------------------------------------------------------------------------------- @echo off title Activate Microsoft Office 2021 (ALL versions) for FREE - =====================================================================================&