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

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Tarkovsky
Posts: 29
Joined: Fri Jun 30, 2017 9:17 am

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

Post by Tarkovsky »

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

ThisComponent.CurrentController.Frame.ContainerWindow.SetVisible(FALSE)
Then, how Can I use something like the code below?

Code: Select all

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
JeJe
Volunteer
Posts: 2763
Joined: Wed Mar 09, 2016 2:40 pm

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

Post by JeJe »

Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Tarkovsky
Posts: 29
Joined: Fri Jun 30, 2017 9:17 am

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

Post by Tarkovsky »

Awesome, thank you very much, man!
OpenOffice 4.1.3 on Arch Linux
Post Reply