Jump to content

[Script] Making Screenshots


Zorkaz

Recommended Posts

Looks like he forgot to put in the arguments

 

var[] arguments = new var[1]
arguments[0] = "Screenshot" ; the console command to send
UI.Invoke(ConsoleMenu, "root1.AnimHolder_mc.Menu_mc.executeCommand")

 

This should have at least a better chance of working:

 

UI.Invoke(ConsoleMenu, "root1.AnimHolder_mc.Menu_mc.executeCommand", arguments)

 

Other than that, SUP_F4SE has CaptureScreenshot() and ConsoleUtil has ExecuteCommand("Screenshot") if you don't mind using F4SE plugins.

Link to comment
Share on other sites

It basically says nothing but their functions are also included in creationkit.com. Which only helps *a little* because that wiki is half-stubs. To be clear you will need the plugins mentioned on top of F4SE. I highly recommend SUP_F4SE, ConsoleUtil is only good for some console commands.

If you manage to get a Scaleform Invoke script working I'd love to see it because that stuff is basically a mystery as far as online info goes.

Link to comment
Share on other sites

Dude... I actually got it working. Pure guesswork. Only F4SE needed for this, no ConsoleUtil or SUP.

 

(The top stuff isn't actually necessary, the lines from "Var[]" to and including the Invoke are the meat of it.)

 

Thanks for the link.

Function TestScreenshot()
If (UI.IsMenuOpen("Console"))
UI.CloseMenu("Console")
EndIf
While (UI.IsMenuOpen("Console"))
Utility.WaitMenuMode(0.1)
EndWhile
var[] arguments = new var[1]
arguments[0] = "Screenshot"
UI.Invoke("Console", "root1.AnimHolder_mc.Menu_mc.BGSCodeObj.executeCommand", arguments)
UI.OpenMenu("Console")
EndFunction
Link to comment
Share on other sites

Sorry to ask again but do you know how to add the function to close the UI? "TM" in the console.

 

There's a lack of documentation on the wiki and I do not quite understand the part with the akArgs

 

 

Edit: No need for F4SE, there's an ingame version

 

Game.SetCharGenHUDMode(1)

;Hud is off

 

Game.SetCharGenHUDMode(0)

;Hud is on

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...