AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reset variables gui

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mitre



Joined: 25 Mar 2008
Posts: 3

PostPosted: Sat Jun 21, 2008 5:14 pm    Post subject: Reset variables gui Reply with quote

I want to reset variables gui after the first call to bring them to zero in the second call. But do not change. Sad
I would not use the gui destroy to consume fewer resources.

Code:

;
Gui, Add, DateTime, x36 y40 w100 h20 vFecha
Gui, Add, CheckBox, x36 y80 w100 h30 vLuz, Luz
Gui, Add, CheckBox, x36 y105 w100 h30 vGas, Gas
Gui, Add, CheckBox, x36 y130 w100 h30 vCable, Cable
;
Gui, Add, CheckBox, x256 y80 w100 h30 vtck, ticket
Gui, Add, CheckBox, x256 y105 w100 h30 vrcb, recibo
Gui, Add, CheckBox, x256 y130 w100 h30 vfct, factura
;
Gui, Add, Button, default xm, Enviar

^!m::

Luz =
Gas =
cable =
tck =
rcb =
fct =

Gui, Show,
Return
GuiClose:
ExitApp

ButtonEnviar:
Gui, Submit
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 722
Location: Florida

PostPosted: Sat Jun 21, 2008 6:01 pm    Post subject: Reply with quote

Replace:
Code:
Luz =
Gas =
cable =
tck =
rcb =
fct =
With:
Code:
GuiControl,,Luz,0
GuiControl,,Gas,0
GuiControl,,cable,0
GuiControl,,tck,0
GuiControl,,rcb,0
GuiControl,,fct,0

_________________
[Join IRC!]
Back to top
View user's profile Send private message
mitre



Joined: 25 Mar 2008
Posts: 3

PostPosted: Sat Jun 21, 2008 6:31 pm    Post subject: Reply with quote

Gracias
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group