This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"path" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# xinput --list to identify the different input devices availiable to you. | |
# xinput query-state [device] where the device is a keyboard. Returns all the keys' states. | |
# xdotool mousedown 1 automates holding down the left mouse click. | |
# xdotool mouseup 1 automates releasing the left mouse click. | |
# This program begins by checking if the keyboard button is pressed at the time of its execution. | |
# If the keyboard button is in the DOWN position, then "press down" the mouse left click. | |
# wait for a bit (but not too long!), and then check the keyboard position again. |
NewerOlder