1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/bash
- # Coding: utf-8
- # Editor: www.geany.org
- # Created 2022-08-10
- #_sudo_apt_install_ xdotool
- #_sudo_dpkg_i_
- # resolution 1152x864
- # zoom 110%
- source $HOME/.SCR/lib.sh
- read login < "$HOME/.ssh/login_router"
- read parol < "$HOME/.ssh/parol_router"
- firefox_id="$(xdotool search --name "Mozilla Firefox")"
- if [ -n "$firefox_id" ]
- then
- xdotool windowactivate "$firefox_id"
- fi
- fun_press_key Escape 1
- firefox-esr http://192.168.100.1/ &
- sleep 7
- fun_press_key Escape 1
- xdotool type --delay 250 "$login" # login
- sleep 1
- fun_press_key Tab 1
- xdotool type --delay 250 "$parol" # pass
- sleep 1
- fun_press_button 747 372 1 3 # pess button login
- fun_press_key Escape 1
- fun_press_button 539 150 1 1 # wlan
- fun_press_button 539 150 1 3 # wlan
- fun_press_key Escape 1
- fun_press_button 391 385 1 4 # on/off wi-fi
- fun_press_key Escape 1
|