There are multiple Unity games that I play that are only available as a .zip download so I have to run the exe from a folder. None of these have an option to change the resolution of the game. How can I force the exe to run in windowed (1440p)? Because I have a 4k monitor and my pc isn't that great, so games lag if they're not windowed 1440p or lower. Thanks in advance!
You can use the command line arguments: Unity - Manual: Command line arguments
Just create a shortcut, open it's properties and add the command line arguments
-screen-height
-screen-width
with the resolution of your choice.
Related
Running AutoHotKey Version 3.0.06.01 with Win 10 Version 10.0.19043 Build 19043 on a System SKU LENOVO_MT_81CU_BU_idea_FM_YOGA 730-15IKB laptop.
I have read many postings about AHK not performing as expected on Win10 OS. I have followed those instructions: rebooting, uninstall/reinstall, changing UAC settings, using run as admin , checking virus software -- et al.
I am very new and have only attempted very rudimentary scripts: Send Hello World, Msgbox Hello World and the like. Those seem to work fine by simply selecting the indicated hot keys. However,
The problem: when attempting use [Run] EG.
^j:: Run Notepad.exe or ; an executable
^1:: Run C:\HamSphere\UnaMas.xlsm ; a file
I must
1. select the saved file
2. right click and select run script
3. (the hotkeys icon displays in the tray)
4. then select the indicated hot keys
in order for the script to run as expected. I cannot simply select the indicated hotkeys. Compiling the file doesn't help.
Question: is this normal? If so, it seems like it defeats the purpose of hot keys.
TIA
doco
Apparently,
1. right clicking the *.ahk file and selecting the [Run Script] menu item
2. compile the script to an executable then double click that executable
will cause script to be ready and running in the background as evidenced by the green icon in the tray. This then allow use of whatever hotkeys defined in the script, to run.
The scripts will automatically end when windows closes or the user right clicks the associated image and selects [Exit] from the subsequent drop down.
Kind of a toss-up to actually going and getting the exe/file.
You don't need to compile scripts.
There are 3 main options for getting your scripts executed on start.
Startup folder.
Scheduled tasks.
"AutoHotkey.ahk": The program looks for a script file called AutoHotkey.ahk in the following locations, in this order:
The directory which contains the AutoHotkey executable.
The current user's Documents folder.
And if you don't want your file to be called AutoHotkey.ahk you could for example save it somewhere else and call it with Run from AutoHotkey.ahk.
I need to run unity simulation without rendering the graphics at all on linux. Can someone who did it provide steps in detail to do so? I can across a lot of resources online for my problem but none worked for me.
You can use the batchmode and nographics command line arguements to do this:
/opt/Unity/Editor/Unity -batchmode -nographics -logFile
Note that you must replace /opt/Unity/Editor/Unity with the part of the Unity Editor or the build you want to run in a headless mode. If you run into issues, there is more detailed post about the issues and their fixes on this post.
I am using PSTools to run a VR enabled Unity executable from a remote computer. The command looks for the executable directly on the target PC's file system (psexec \remotecomputer -i -s "c:/Users/me/Desktop/Build/TestMall.exe"), where the .exe and the _Data files are stored. It's not copied over the network.
The executable launches ok, except that the VR capabilities are ignored (no tracking and nothing displayed in Oculus Rift). Now, if I run the same .exe directly from the target PC, it works perfectly fine in Rift.
Maybe there are some special arguments that I should consider, when I send the running command remotely?
Anyone had a similar problem? Any help much appreciated.
Try changing the architecture type on build window.
Every time my AHK script runs (the Startup folder constains a symlink that points to the file) Windows asks me what program it should use to open the file. Why does this happen?
It sounds like AutoHotkey isn't properly installed? Is it possible you didn't use an installer and are using a Stand Alone version?
To fix:
Either Uninstall/Reinstall latest version of Autohotkey from ahkscript.org
or
Open up Explorer, Right click a file with .ahk, select Open with option, choose a default program, navigate to Autohotkey.exe and choose that program select "always use.." option. If that doesn't fix your problem I'll try and help further.
Is it possible to have several command windows (consoles) in matlab?
Yes, you can start multiple sessions of MATLAB in different terminals or windows. Remember that you can use the command matlab -nodesktop to have a MATLAB session without the GUI, it's very useful to save space and memory.
Within a single Matlab session, no. But you can run several sessions of Matlab in parallel on the same machine using a single license.
I think you can start up to four individual sessions of MATLAB on a machine. But the behavior of the MATLAB startup program seems to be different depending on the OS and MATLAB versions.
On Windows, you may be able to start another session by just clicking the icon on the Programs Menu.
On Mac OSX, depending on the MATLAB version that you use, you may have to do 'Show Package Content' (right mouse click over the icon in the Applications folder) and directly double-click the executable file called 'matlab' under the /bin directory (or over its alias) to start another session.
On Linux, you can just type 'matlab' on the Console and start another session.