Skip to content

Instantly share code, notes, and snippets.

@farhaven
Created July 3, 2011 14:39
Show Gist options
  • Save farhaven/1062284 to your computer and use it in GitHub Desktop.
Save farhaven/1062284 to your computer and use it in GitHub Desktop.
print("new window: class=\"" .. (c.class and c.class or "none") .. "\", instance=\"" .. (c.instance and c.instance or "none") .. "\", name=\"" .. (c.name and c.name or "none") .. "\"")
if c.name and c.name:find("OpenOffice.org Impress") then
print("new ooimpress window managed")
-- press F5 to immediately start presentation mode
root.fake_input("key_press", "71")
root.fake_input("key_release", "71")
elseif c.class and c.class:find("OpenOffice") then
print("new oo window managed")
c.ontop = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment