I Need a Macro that will generate the esc key to exit from full screen mode.
Has anyone been able to find such a command?
[Solved] Need Macro that will generate the esc key to exit
[Solved] Need Macro that will generate the esc key to exit
Last edited by alf50 on Sun Dec 11, 2016 7:38 am, edited 1 time in total.
OpenOffice 4.1.14 on Mac Catalina(10.15.7), RasPi4B (TwisterOS-8/2023update) & MS Wnds10
Re: Need Macro that will generate the esc key to exit from f
Macros do not send any keys. Try this:
Code: Select all
sub recorded_FullScreen
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FullScreen"
args1(0).Value = true
dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args1())
rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "FullScreen"
args2(0).Value = false
dispatcher.executeDispatch(document, ".uno:FullScreen", "", 0, args2())
end sub
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Need Macro that will generate the esc key to exit from f
You may find the links below useful; they provide access to various Windows control functions within OpenOffice
http://www.openoffice.org/api/docs/comm ... indow.html
https://wiki.openoffice.org/wiki/Docume ... Interfaces
http://www.openoffice.org/api/docs/comm ... indow.html
https://wiki.openoffice.org/wiki/Docume ... Interfaces
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS