Is there a way to take an ingame high res screenshot in UE4? - screenshot

So I am developing a VR app in Unreal and I'd like to give the user the ability to take a screenshot in game through the click of a button.
I am currently taking a screenshot through a console command but, it doesn't allow me to change the file location of where it goes. I don't think it will be intuitive enough to users to look into the AppData folder.
Is there a way to change this file location?
Does anyone know of any other ways to take a screenshot in game in Unreal Engine and save it to a folder or something similar?
Is there a function library or anything I can utilize?

Check this thread out:
Unreal Engine 4 In-game Screenshot
You should continue to use the console command; it's the easiest way to do this in my opinion. In C++, you can expose your screenshot default folder with ProjectSavedDir(). That being said, you can get references of your screenshots and move them to another FPath location. For a bit of a better translation, take a look at these macros: https://docs.unrealengine.com/en-US/API/Runtime/Core/Misc/FPaths/index.html

I found a really easy way to change where the screenshot gets saved at. I was really surprised how easy it was actually. Essentially, all you have to do is add an argument to the console command.
HighResShot 1920x1080 filename="D:/Screenshots/screenshot.png"
However, you need to ensure that the file name is unique, otherwise it will just overwrite the screenshot every time.
I ended up just grabbing Time Now and appending the date inside of the screenshot name. So that it ended up looking something like this:
HighResShot 1920x1080 filename="D:/Screenshots/screenshot_2020-6-5-8-40-01.png"

Related

Why i cannot save the test plan in jmeter?

regarding test plan not saving .
I right clicked at test plan->choose save selection as ..->any window/popup box should open but getting no response..
I am using "jdk-16.0.1_windows-x64_bin".and
"apache-jmeter-5.4.1"
As indicated in this screenshoti clicked but get nothing
Just simply change to the e.g. System look and view instead of Dark.
If you pay attention to upper right corner of your JMeter GUI you will see that there are 32 errors, most probably one of them can explain what's going on if you look into jmeter.log file
Most probably you're suffering from JMeter Bug 65300 so the options are in:
Downgrade to Java 8
Try out Nightly Build of JMeter
Try switching to another Look and Feel

LabVIEW - can you use a numeric control as an indicator

I've written LabView code for a locking system.
The lock has a motion timer that relies on input from a numeric control. I've added a script file reader that needs to be able to change that timer value. Using a selector, I can switch between values, but I'd like it to update the value in the control, rather than override it, so that I can see it on the screen.
How can this be accomplished?
This is currently how I switch between the scripted version and the direct numeric input from the control:
So how can I get the script value to update the control box or is that not possible...?
Do you mean something like this? I created a little vi to demonstrate how the control is updated.
In most cases "property nodes" are the way to go. Every control has a lot of different options to chose from and usually if you look through the properties you will find what you're looking for :)
A little hint:
If you want to add "code" to your question so that other users can test it, you can create a .png file. To do this, you need to select the parts of the vi that you want to share, and click on "Edit > Create VI Snippet from Selection". Then you save that generated .png and upload it here as a picture. Then others can drag&drop it into their block diagram.
Important: Check the .png before uploading and make sure that you're not accidentally posting sensitive data of your company.

Stop execution in smalltalk

I´d like to know how can I stop execution in smalltalk. I entered an infinite loop and don´t want to loose the code that´s written. I tried using pause button but doesn´t seem to be right.
Normally, even if you are unable to stop execution, you should be able to get the code changes you made back from the .changes file. If you can restart the image, there is a 'recover lost changes' menu entry. Always first make a backup copy of the changes and image files before trying this. (In Pharo/Squeak. Other smalltalk have similar possibilities)
it depends on the dialect and possibly keyboard settings.
try CMD-. or CTRL-., which works in most dialects.

Dynamic suggestions for text ctrl in wxPython?

Is there any way to mimic the dynamic suggestions behavior as per the search field on Google? As in, I type something in a text ctrl, and a list of suggestions pops up below for the user to chose from? If wxPython doesn't have such a feature, perhaps some other Python gui has it?
EDIT: For use on a Mac. That excludes this example, although it seems to be exactly what I am looking for.
Im not sure it theres a way to automatically do this but I think it could be easily achieved by binding to EVT_TEXT.
This is a recipe from the wxpython wiki for a TextCtrlAutoComplete control
Have you tried AutocompleteTextCtrl?
You could quickly download and test it as it comes with a nice test module to run straight away.

Automated testing of rendering in browsers

Can Selenium or any other automated tool check for the proper positioning of elements on a web page?
For example, when you look at OnStartups.com in IE 6, the main content that is supposed to be to the right of the menu is below it instead and you have to scroll down to read it. Can you query and get the coordinates of the div as they are actually displayed, and can you get the coordinates of the viewport to verify that the top left corner is actually within the viewable area?
I think comparing screenshots is the best thing you can do and I'm afraid there aren't robust tools for that, yet.
If I were you, I would create a script that navigates through every page of the site capturing a picture on each and then I would open a folder with all the results and it would probably take less than a minutes to check 20 or 30 of them. Sounds really dumb, but sometimes the easier alternative ends up being the best...
I'm afraid the best you could do is select a standard browser and than compare screenshots of other browser with the reference one.
I can't remember the specific one but some tool like Araxis merge was able to compare screenshots in a pretty intelligent way.
Selenium has assertions to check an element's position and size:
assertElementHeight(locator,pattern)
assertElementWidth(locator,pattern)
assertElementPositionLeft(locator,pattern)
assertElementPositionTop(locator,pattern)
A simple test to check the rendering in the OPs example could be to write
assertElementPositionTop(//*[#id='main_content'],0)
thus checking whether #main_content is rendered at the top or somewhere else.