by garry » 17 Sep 2020, 07:22
J'ai essayé ça
Code: Select all
;- Besoin d'explication pour un petit script
;- https://www.autohotkey.com/boards/viewtopic.php?f=55&t=81108
#SingleInstance, Force
Global T1,T2
Gui, Font, cWhite
Gui, Add, Text, x10 y10 cYellow, Cochez les cases puis appuyez sur Alt pour lancer le script.
Gui, Font, s15
Gui, Add, CheckBox, x100 y100 cGreen vT1, Avancer
Gui, Add, CheckBox, x100 y130 cGreen vT2, Miner
Gui, Font, s20
Gui, Add, Text, x200 y50 cRed, AutoMine
Gui, +AlwaysOnTop
Gui, Color, Black
Gui, Show, x600 y100 w500 h300, MCScript
return
;---------------------
GuiClose:
ExitApp
;---------------------
LAlt::
Gui,1: submit, nohide
;msgbox, 262208,TEST ,%T1%`n%T2%,1
KeyDown := !KeyDown ; toggle
If KeyDown
{
if (t1 = 1)
msgbox, 262208,TEST,AVANCE,1
if (t2 = 1)
msgbox, 262208,TEST,MINER,1
if (t1=1 and t2=1)
msgbox, 262208,TEST,AVANCE et MINER,1
if (t1=0 and T2=0)
msgbox, 262208,TEST ,ELSE,1
}
return
;===============================
J'ai essayé ça
[code];- Besoin d'explication pour un petit script
;- https://www.autohotkey.com/boards/viewtopic.php?f=55&t=81108
#SingleInstance, Force
Global T1,T2
Gui, Font, cWhite
Gui, Add, Text, x10 y10 cYellow, Cochez les cases puis appuyez sur Alt pour lancer le script.
Gui, Font, s15
Gui, Add, CheckBox, x100 y100 cGreen vT1, Avancer
Gui, Add, CheckBox, x100 y130 cGreen vT2, Miner
Gui, Font, s20
Gui, Add, Text, x200 y50 cRed, AutoMine
Gui, +AlwaysOnTop
Gui, Color, Black
Gui, Show, x600 y100 w500 h300, MCScript
return
;---------------------
GuiClose:
ExitApp
;---------------------
LAlt::
Gui,1: submit, nohide
;msgbox, 262208,TEST ,%T1%`n%T2%,1
KeyDown := !KeyDown ; toggle
If KeyDown
{
if (t1 = 1)
msgbox, 262208,TEST,AVANCE,1
if (t2 = 1)
msgbox, 262208,TEST,MINER,1
if (t1=1 and t2=1)
msgbox, 262208,TEST,AVANCE et MINER,1
if (t1=0 and T2=0)
msgbox, 262208,TEST ,ELSE,1
}
return
;===============================
[/code]