Quando eu mudo um texto na gui ele não atualiza,eu lembro que tem um comando que força atualizar só n sei qual é.
Por acaso alguém sabe qual é o comando.
Atualizar a GUI Topic is solved
Moderator: Gio
- juanmuscaria
- Posts: 65
- Joined: 29 Oct 2017, 10:53
- Location: Brazil
- Contact:
Re: Atualizar a GUI
Exemplo com edição / edit /text
Code: Select all
Name1=TEST1
Gui,2:Color, ControlColor,Black ;- background from edit
Gui,2:Color, Gray ;- Gui color
GUI,2:Font,s12 cYellow,Lucida Console
Gui,2:Add,Edit , x10 y10 w400 h200 ved1 +hscroll +vscroll -wrap ,
Gui,2:Add,Button , x10 y230 w100 h25 gTxtos, Input
Gui,2:Add,text , x170 y230 w50 ,Count=
Gui,2:Add,text , x240 y230 w50 right cBlack vI
Gui,2:show,,%name1%
return
2Guiclose:
exitapp
txtos:
Gui,2:submit,nohide ;- or GuiControlGet
; GuiControlGet,ed1
i++
ed1 .= "`n--Seu nome: "
GuiControl, Text, ed1, %ed1%
GuiControl, Text, i, %i%
GuiControl, Focus, Ed1
ControlSend,Edit1,^{END},%name1%
return
Re: Atualizar a GUI Topic is solved
Bom dia.
Bom, se você quer alterar um controle do tipo texto, pode fazer conforme o exemplo abaixo. Aperte F2, F3 ou F4 para mudar o texto na tela que se abre:
Bom, se você quer alterar um controle do tipo texto, pode fazer conforme o exemplo abaixo. Aperte F2, F3 ou F4 para mudar o texto na tela que se abre:
Code: Select all
Gui, Font, w700 s12 cFF0000
Gui, add, text, x50 y50 w250, Exemplo de Texto
Gui, show, w300 h200
return
F2::
Gui, Font, c00FF00 ; Esta linha determina uma nova fonte para os controles da Gui (cor, tamanho, estilo negrito, sublinhado, italico, etc).
GuiControl, Font, Static1 ; Esta linha atribui a nova fonte para o controle de texto através do ClassNN dele.
ControlSetText, Static1, Outro texto agora, A ; E esta linha muda o texto em si, ou seja, a mensagem escrita.
Return
F3::
Gui, Font, c0000FF
GuiControl, Font, Static1
ControlSetText, Static1, E agora será um terceiro, A
Return
F4::
Gui, Font, cFF0000
GuiControl, Font, Static1
ControlSetText, Static1, Exemplo de Texto, A
Return
"What is suitable automation? Whatever saves your day for the greater matters."
Barcoder - Create QR Codes and other Barcodes using only Autohotkey !!
Archmage Gray - A fantasy shooter game fully coded in AutoHotkey
Barcoder - Create QR Codes and other Barcodes using only Autohotkey !!
Archmage Gray - A fantasy shooter game fully coded in AutoHotkey
- juanmuscaria
- Posts: 65
- Joined: 29 Oct 2017, 10:53
- Location: Brazil
- Contact:
Re: Atualizar a GUI
Obrigado pela ajuda mas descobri o motivo pelo texto na minha gui não mudar,antes do GuiControl tinha um sleep 300 e simplesmente o GuiControl não era executado com o sleep antes
Return to “Ajuda e Suporte Geral”
Who is online
Users browsing this forum: No registered users and 6 guests