Is it possible to get the output of RunConsoleCommand? RunConsoleCommand itself has no return value (according to the Wiki), so is there an alternative?
Where do you plan to use this?
[QUOTE=Dinnanid;45318229]Where do you plan to use this?[/QUOTE]
I'd like to be able to get the filename of the latest screenshot taken using the "jpeg" command. I know I could just look for the filename with the highest number / newest date, but I'd prefer to do it in a cleaner way by parsing the jpeg command's output.
[QUOTE=jackwilsdon;45318332]I'd like to be able to get the filename of the latest screenshot taken using the "jpeg" command. I know I could just look for the filename with the highest number / newest date, but I'd prefer to do it in a cleaner way by parsing the jpeg command's output.[/QUOTE]
I don't know of anyway to do it with RunConsoleCommand. Are you going to use this to display it or what?
Edit: It takes an optional argument for file name: [URL="http://www.gamerconfig.eu/command/garrys-mod/jpeg/"]jpeg[/URL] // Take a jpeg screenshot: jpeg <filename> <quality 1-100>.
[QUOTE=Dinnanid;45318370]I don't know of anyway to do it with RunConsoleCommand. Are you going to use this to display it or what?[/QUOTE]
This will be for private use, I am trying something out.
[editline]7th July 2014[/editline]
I will most likely be uploading it to a remote server somewhere.
[QUOTE=jackwilsdon;45318383]This will be for private use, I am trying something out.
[editline]7th July 2014[/editline]
I will most likely be uploading it to a remote server somewhere.[/QUOTE]
[url]http://wiki.garrysmod.com/page/render/Capture[/url] Might also work but you would have to rename it to .jpeg when you get it there.
[QUOTE=Dinnanid;45318406][url]http://wiki.garrysmod.com/page/render/Capture[/url] Might also work but you would have to rename it to .jpeg when you get it there.[/QUOTE]
I've tried that before, but seeing as that provides raw pixels, each being 3 bytes. On larger screens, with no compression, this is MASSIVE, and is not a real format.
[QUOTE=jackwilsdon;45318444]I've tried that before, but seeing as that provides raw pixels, each being 3 bytes. On larger screens, with no compression, this is MASSIVE, and is not a real format.[/QUOTE]
Then I would suggest running the command with the name argument.
[CODE]local namevar = "example.jpeg"
RunConsoleCommand("jpeg",namevar)[/CODE]
EDIT: namevar will need to change each time
i really hope you're not going to take pictures of players screens and upload it somewhere
[QUOTE=john552;45319408]i really hope you're not going to take pictures of players screens and upload it somewhere[/QUOTE]
-snip-
nvm *facepalm*
[QUOTE=john552;45319408]i really hope you're not going to take pictures of players screens and upload it somewhere[/QUOTE]Well it would only capture the in-game stuff, which I'm almost 99% isn't a problem. It's not like you have private information there.
The user would be pressing a button first, I'm not just going to spy on whatever they're doing (at like 0.1 fps too)
Sorry, you need to Log In to post a reply to this thread.