106 lines
1.0 KiB
Markdown
106 lines
1.0 KiB
Markdown
|
+++
|
||
|
title = "Herramientas"
|
||
|
weight = 3
|
||
|
+++
|
||
|
|
||
|
Recuerda, es necesario importar la librería.
|
||
|
|
||
|
```python
|
||
|
import easymacro as app
|
||
|
```
|
||
|
|
||
|
#### Información sobre la PC
|
||
|
|
||
|
### OS
|
||
|
|
||
|
Obtener el sistema operativo.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.OS)
|
||
|
```
|
||
|
|
||
|
|
||
|
### DESKTOP
|
||
|
|
||
|
Obtener el tipo de escritorio, solo en GNU/Linux.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.DESKTOP)
|
||
|
```
|
||
|
|
||
|
|
||
|
### PC
|
||
|
|
||
|
Obtener el nombre de la computadora.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.PC)
|
||
|
```
|
||
|
|
||
|
|
||
|
### USER
|
||
|
|
||
|
Obtener el nombre de usuario.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.USER)
|
||
|
```
|
||
|
|
||
|
|
||
|
### IS_WIN
|
||
|
|
||
|
Saber si estamos en Windows.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.IS_WIN)
|
||
|
```
|
||
|
|
||
|
|
||
|
### IS_MAC
|
||
|
|
||
|
Saber si estamos en OSX.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.IS_MAC)
|
||
|
```
|
||
|
|
||
|
#### Información sobre LibreOffice
|
||
|
|
||
|
### NAME
|
||
|
|
||
|
Nombre de la aplicación.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.NAME)
|
||
|
```
|
||
|
|
||
|
|
||
|
### VERSION
|
||
|
|
||
|
Versión de la aplicación.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.VERSION)
|
||
|
```
|
||
|
|
||
|
|
||
|
### LANG
|
||
|
|
||
|
Lenguaje de la aplicación.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.LANG)
|
||
|
```
|
||
|
|
||
|
|
||
|
### LANGUAGE
|
||
|
|
||
|
Lenguaje con variante.
|
||
|
|
||
|
```python
|
||
|
app.msgbox(app.LANGUAGE)
|
||
|
```
|
||
|
|
||
|
|
||
|
[1]: https://git.cuates.net/elmau/easymacro/issues
|