Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SipAndPuff4Butiá
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Santiago Freire Lopez
SipAndPuff4Butiá
Commits
759e9ac2
Commit
759e9ac2
authored
3 years ago
by
Santiago Freire Lopez
Browse files
Options
Downloads
Patches
Plain Diff
renamed guide and added popup titles
parent
d3aea7c5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
guide.jpg
+0
-0
0 additions, 0 deletions
guide.jpg
principal.py
+10
-10
10 additions, 10 deletions
principal.py
with
10 additions
and
10 deletions
gui
a
.jpg
→
gui
de
.jpg
+
0
−
0
View file @
759e9ac2
File moved
This diff is collapsed.
Click to expand it.
principal.py
+
10
−
10
View file @
759e9ac2
...
...
@@ -34,14 +34,14 @@ pyautogui.FAILSAFE = False
#Chequeo inicial
if
robot
.
getButton
(
5
)
==
-
1
:
if
robot
.
getButton
(
4
)
==
-
1
:
sg
.
PopupAutoClose
(
'
Soplido y Aspirado no conectados. Saliendo.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Soplido y Aspirado no conectados. Saliendo.
'
,
keep_on_top
=
True
,
title
=
'
Error
'
)
quit
()
else
:
sg
.
PopupAutoClose
(
'
Soplido no conectado. Saliendo.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Soplido no conectado. Saliendo.
'
,
keep_on_top
=
True
,
title
=
'
Error
'
)
quit
()
elif
robot
.
getButton
(
4
)
==
-
1
:
sg
.
PopupAutoClose
(
'
Aspirado no conectado. Saliendo.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Aspirado no conectado. Saliendo.
'
,
keep_on_top
=
True
,
title
=
'
Error
'
)
###Función para guardar ajustes en settings.json
def
guardarAjustes
(
newSettings
):
...
...
@@ -232,18 +232,18 @@ def keyboard(window,salgo):
#Implementación de Bloq Mayus
elif
resCaracter
==
'
MAYUS
'
:
sg
.
PopupAutoClose
(
'
Bloq Mayus desactivado.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Bloq Mayus desactivado.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
mayus
=
0
resCaracter
=
None
elif
resCaracter
==
'
mayus
'
:
sg
.
PopupAutoClose
(
'
Bloq Mayus activado.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Bloq Mayus activado.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
mayus
=
1
resCaracter
=
None
#Para salir del programa
elif
resCaracter
in
{
'
SALIR
'
,
'
salir
'
}:
sg
.
PopupAutoClose
(
'
Saliendo del programa.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Saliendo del programa.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
quit
()
#Para cancelar, en caso de error al ingresar el código y para no simular ningún caracter, ingresar una secuencia de 7 o más caracteres.
...
...
@@ -252,7 +252,7 @@ def keyboard(window,salgo):
#Cuando se ingresa un EOM, vuelvo al módulo de mouse saliendo del subprograma.
sg
.
PopupAutoClose
(
'
Cambiando a mouse.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Cambiando a mouse.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
#Reseteo el indicador de progreso, para dejarlo en 0, siendo que no se usa en el módulo Mouse.
window
.
Element
(
'
__PROGRESS__
'
).
UpdateBar
(
0
)
...
...
@@ -310,12 +310,12 @@ def mouse(window,salgo):
event
=
''
#Tiene formato JSON
guardarAjustes
(
values
)
sg
.
PopupAutoClose
(
'
Ajustes guardados. Reinicie el programa para que tengan efecto.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Ajustes guardados. Reinicie el programa para que tengan efecto.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
#Cambio al módulo teclado
if
event
==
'
Cambiar a teclado
'
:
event
=
''
sg
.
PopupAutoClose
(
'
Cambiando a teclado.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Cambiando a teclado.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
salgo
=
True
#Abro la guía almacenada en el archivo guide.jpg con el visor de imágenes predeterminado
...
...
@@ -354,7 +354,7 @@ def mouse(window,salgo):
pyautogui
.
click
()
#Para no ingresar caracteres accidentalmente por seguir aspirando
sg
.
PopupAutoClose
(
'
Puede dejar de aspirar.
'
,
keep_on_top
=
True
)
sg
.
PopupAutoClose
(
'
Puede dejar de aspirar.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
#Cambio de módulo
salgo
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment