I realized this is more of a windows question than an actual gaming question, even though it relates to that, so I deleted my original post and moved it here..
Due to financial constraints I am currently running the laptop my parents bought me for school back in 2009, which is underpowered by todays standards, as a gaming PC. (i.e. BF3 on low @ 1024x600 with average FPS ranging from 16-28 depending on the map)
As a result, when I play Star Wars: The Old Republic I have to run it at 1366x768. Normally this would cause no issues but there are a couple of things connected to that that are causing problems. There is a bug in the game that causes it to hang for awhile on exit with lower-end systems like mine, so I wrote an exceedingly simple bat file to task kill swtor.exe and set one of the macro keys on my Sidewinder X4 to execute the file. That works fine, but because of the way this particular game handles reduced resolutions, when I kill the exe my screen is stuck at 1366x768 instead of reverting to the full 1920x1080 resolution of my monitor.
What I am wondering is, what would I edit the .bat file to say in order to make it automatically change my screen resolution to 1920x1080 after the exe is killed so that I dont have to manually change it every time I close the game? This is what the file currently has for text..
taskkill /f /IM swtor.exe
----------------------------------------
Edit: I did find a small tool to add to the system32 folder ( http://www.nirsoft.net/utils/nircmd.html ) that will allow me to run the following command to change the resolution. I have tested that this command works after dropping the nircmd file into system32.
nircmd.exe setdisplay 1920 1080 32
How would I word my bat file to make it run both the command to kill the task, as I listed earlier, and the one to change the resolution?
Due to financial constraints I am currently running the laptop my parents bought me for school back in 2009, which is underpowered by todays standards, as a gaming PC. (i.e. BF3 on low @ 1024x600 with average FPS ranging from 16-28 depending on the map)
As a result, when I play Star Wars: The Old Republic I have to run it at 1366x768. Normally this would cause no issues but there are a couple of things connected to that that are causing problems. There is a bug in the game that causes it to hang for awhile on exit with lower-end systems like mine, so I wrote an exceedingly simple bat file to task kill swtor.exe and set one of the macro keys on my Sidewinder X4 to execute the file. That works fine, but because of the way this particular game handles reduced resolutions, when I kill the exe my screen is stuck at 1366x768 instead of reverting to the full 1920x1080 resolution of my monitor.
What I am wondering is, what would I edit the .bat file to say in order to make it automatically change my screen resolution to 1920x1080 after the exe is killed so that I dont have to manually change it every time I close the game? This is what the file currently has for text..
taskkill /f /IM swtor.exe
----------------------------------------
Edit: I did find a small tool to add to the system32 folder ( http://www.nirsoft.net/utils/nircmd.html ) that will allow me to run the following command to change the resolution. I have tested that this command works after dropping the nircmd file into system32.
nircmd.exe setdisplay 1920 1080 32
How would I word my bat file to make it run both the command to kill the task, as I listed earlier, and the one to change the resolution?