[Solved] Call a macro just if the window is invisible

Creating a macro - Writing a Script - Using the API

[Solved] Call a macro just if the window is invisible

Postby Tarkovsky » Wed May 30, 2018 9:43 am

Hey guys, I'm trying to write a macro that will run after my LibreOffice document is hidden.
So, I will run this to hide it.
Code: Select all   Expand viewCollapse view
ThisComponent.CurrentController.Frame.ContainerWindow.SetVisible(FALSE)

Then, how Can I use something like the code below?
Code: Select all   Expand viewCollapse view
IF  ThisComponent.CurrentController.Frame.ContainerWindow.Visible = FALSE THEN
    "here I will execute some stuff"
END IF

Cause I'm getting this error:
Inadmissible value or data type.
Data type mismatch.
Last edited by Tarkovsky on Thu Aug 23, 2018 7:18 am, edited 3 times in total.
OpenOffice 4.1.3 on Arch Linux
Tarkovsky
 
Posts: 28
Joined: Fri Jun 30, 2017 9:17 am

Re: Call a macro just if a the window is invisible

Postby JeJe » Wed May 30, 2018 11:44 am

Openoffice 4.1.2
Windows 8
JeJe
Volunteer
 
Posts: 428
Joined: Wed Mar 09, 2016 2:40 pm

Re: Call a macro just if a the window is invisible

Postby Tarkovsky » Wed May 30, 2018 9:48 pm

Awesome, thank you very much, man!
OpenOffice 4.1.3 on Arch Linux
Tarkovsky
 
Posts: 28
Joined: Fri Jun 30, 2017 9:17 am


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 4 guests