[Gambas-user] Clean new console by code

Gianluigi bagonergi at ...626...
Sat Jun 25 14:52:53 CEST 2016


Hi Vuott,
thank you for the answer.
It deletes only on the second click and the window does not appear that
remains behind the IDE.
Changing your code as follows, it deletes immediately, but the window
remains behind the IDE.

Public Sub Button1_Click()
' We hide the Form to assign the focus to the console:
  Me.Visible = False
  Desktop.SendKeys("{[Control_L]l}")
  Wait 0.1
  Me.Visible = True
End

Regards
Gianluigi

2016-06-25 2:04 GMT+02:00 Ru Vuott <vuott at ...325...>:

> I suggest:
>
>
> Public Sub Form_Open()
>
>   Print "testo qualsiasi"
>
> End
>
>
> Public Sub Button1_Click()
>
> ' We hide the Form to assign the focus to the console:
>   Me.Hide
>
> End
>
>
> Public Sub Form_Hide()
>
>   Wait 0.1
>
>   Desktop.SendKeys("{[Control_L]l}")
>
>   Me.Raise
>
> End
>
>
>
>
> --------------------------------------------
> Ven 24/6/16, Lewis Balentine <lewis at ...3412...> ha scritto:
>
>  Oggetto: Re: [Gambas-user] Clean new console by code
>  A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
>  Data: Venerdì 24 giugno 2016, 22:37
>
>  Desktop.SendKeys("clear/n")
>
>  On 06/24/2016 02:30 PM, Gianluigi wrote:
>  > How can I clean console by code in rev. 7804?
>  > Print Chr$(12); - Write Chr(12) -
>  Desktop.SendKeys("{[Control_L]l}") do not
>  > work.
>  >
>  > Regards
>  > Gianluigi
>  >
>
>  ------------------------------------------------------------------------------
>  > Attend Shape: An AT&T Tech Expo July 15-16. Meet us
>  at AT&T Park in San
>  > Francisco, CA to explore cutting-edge tech and listen
>  to tech luminaries
>  > present their vision of the future. This family event
>  has something for
>  > everyone, including kids. Get more information and
>  register today.
>  > http://sdm.link/attshape
>  > _______________________________________________
>  > Gambas-user mailing list
>  > Gambas-user at lists.sourceforge.net
>  > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
>  ------------------------------------------------------------------------------
>  Attend Shape: An AT&T Tech Expo July 15-16. Meet us at
>  AT&T Park in San
>  Francisco, CA to explore cutting-edge tech and listen to
>  tech luminaries
>  present their vision of the future. This family event has
>  something for
>  everyone, including kids. Get more information and register
>  today.
>  http://sdm.link/attshape
>  _______________________________________________
>  Gambas-user mailing list
>  Gambas-user at lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list