Aplicación desarrollada en GO para mover el mouse cada 60 segundos y evitar el bloqueo de la PC en Windows
Find a file
2024-05-24 14:57:28 -03:00
.forgejo/workflows 22/05 2024-05-22 14:45:06 -03:00
.github/workflows v1.0.1 2024-05-23 11:16:19 -03:00
assets chore: Update README.md with application description and download instructions 2024-05-24 12:05:40 -03:00
icon chore: Update README.md with application description and download instructions 2024-05-24 12:05:40 -03:00
move Initial release 2024-05-22 10:41:14 -03:00
winres Initial release 2024-05-22 10:41:14 -03:00
.gitignore 22/05 2024-05-22 14:45:06 -03:00
go.mod 22/05 2024-05-22 14:45:06 -03:00
go.sum 22/05 2024-05-22 14:45:06 -03:00
LICENSE v1.0.0 2024-05-23 10:22:38 -03:00
main.go Initial release 2024-05-22 10:41:14 -03:00
README.es.md chore: Update README.md with application description and download instructions 2024-05-24 14:57:28 -03:00
README.md chore: Update README.md with application description and download instructions 2024-05-24 14:57:28 -03:00
rsrc_windows_386.syso Initial release 2024-05-22 10:41:14 -03:00
rsrc_windows_amd64.syso Initial release 2024-05-22 10:41:14 -03:00

Wake Up!

es en

CI status Wake Up! is a desktop application that prevents your PC from locking. It moves the mouse pointer at regular intervals to prevent screen lock and state changes due to inactivity in apps like MS Teams. It does not require installation and once started, it resides in the system tray.

CI status

Download

You can download the application from the releases section of this repository.

Application Details

This application combines the native Windows library with Robotgo to move the mouse pointer and prevent PC lock. The application was designed for corporate environments where the user cannot change the power settings of the PC. Both libraries were used to move the pointer due to a bug in Robotgo where it does not correctly move the pointer on systems with multiple screens. The native library alone was not used as it does not prevent screen lock. To place the app in the system tray, systray was used. 2goarray was used to encode the icon into a Go byte slice, and go-winres was used for the executable icon.

Compilation Instructions

Prerequisites

To compile the application, you will need to have Go installed on your operating system. If you haven't installed Go yet, you can download it from the official Go website. Additionally, we will be using go-winres, so we need to install it.

```shell
go install github.com/tc-hib/go-winres@latest
go-winres make
```

Customization

In the ./winres directory, you will find the app's icon configuration file and the required images. If you want to change the application's icon, replace them with your own while maintaining the sizes. Then, before compiling the application, you need to execute

```shell
go-winres make
```

To change the taskbar icon, go to the ./icon folder and replace iconwin.ico with the desired icon. Then drag and drop it onto make_icon.bat. The script was obtained from the example in systray.

Compilation

```shell
go build -ldflags -H=windowsgui -o executable_name.exe
```

Acknowledgements

We would like to thank the following projects for their contribution to this application:

  • Robotgo: A library that allows interaction with the graphical user interface on Windows, macOS, and Linux systems. We use Robotgo to move the mouse pointer and prevent PC lock.

  • systray: A library that facilitates the creation of applications with a system tray on Windows, macOS, and Linux. We use systray to place the application in the system tray.

  • 2goarray: A tool that converts PNG image files into a Go byte slice. We use 2goarray to encode the application's icon into a byte slice.

  • go-winres: A tool that allows adding resources to Windows executables, such as icons and metadata. We use go-winres to add the icon to the application's executable.