Zorkaz Posted August 26, 2022 Share Posted August 26, 2022 Has someone found a way with or without F4SE to make screenshots via script? Edit: I see I already asked this question. But the answer doesn't workhttps://forums.nexusmods.com/index.php?/topic/8520258-script-make-a-screenshot/ Link to comment Share on other sites More sharing options...
RaidersClamoring Posted August 26, 2022 Share Posted August 26, 2022 Looks like he forgot to put in the arguments var[] arguments = new var[1] arguments[0] = "Screenshot" ; the console command to sendUI.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 More sharing options...
Zorkaz Posted August 26, 2022 Author Share Posted August 26, 2022 I do mind using F4SE, because their website has 0 info but I guess I'm gonna have to try anyway ;)Thanks for answering I hope I can put this to good use Link to comment Share on other sites More sharing options...
RaidersClamoring Posted August 26, 2022 Share Posted August 26, 2022 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 More sharing options...
Zorkaz Posted August 26, 2022 Author Share Posted August 26, 2022 Btw here is the new version of the CK wiki. The old one you couldn't get new access anymore.https://ck.uesp.net/wiki/Main_Page Link to comment Share on other sites More sharing options...
RaidersClamoring Posted August 26, 2022 Share Posted August 26, 2022 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 More sharing options...
Zorkaz Posted August 26, 2022 Author Share Posted August 26, 2022 Neat. I actually want to make a mod about Wildlife Photography and back then I made "Cursed Camera Weapon". Hope I can put this to use Link to comment Share on other sites More sharing options...
Zorkaz Posted August 27, 2022 Author Share Posted August 27, 2022 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 More sharing options...
RaidersClamoring Posted August 27, 2022 Share Posted August 27, 2022 To add the "TM" command you would simply change arguments[0] to "TM; Screenshot" or (this is my assumption) you can create separate array items for each command arguments[0] = "TM"arguments[1] = "Screenshot"In which order they will fire I do not know. Thus "TM; Screenshot" is where I'd start. Link to comment Share on other sites More sharing options...
RaidersClamoring Posted August 29, 2022 Share Posted August 29, 2022 A heads up about the above comment -- it won't work. The " ; " won't parse as it normally would in the console when doing it this way. An array with several commands also won't work. You will have to loop it with consecutive Invokes and redefine arguments[0] each time. Link to comment Share on other sites More sharing options...
Recommended Posts