|
|
#1 |
![]() Join Date: Nov 2010
Reputation: 98
Posts: 872
|
Adding commands to/customizing the "Run" Function
Hey guys,
I'd like to be able to add shortcuts to other programs, like video games, to the run command. So far, I've added a registry key in the App Paths folder for Call of Duty: Modern Warfare (I just titled it "MW" to type faster). I've noticed that for most of the other programs in the App Paths folder, the strings used are "default" and "path". Default is the path of the exe, and path is the containing folder. I've edited my CoD:MW shortcut to use these, as shown here. Problem is, whenever I try and use the "mw" shortcut in Run, I get this error. If I press OK, cod4 tries to start up, only to give an error saying that "No .IWD files were found in /main" (the game couldn't load the texture files). How can I get past these errors? It would be great if someone could teach me about this stuff, it's really cool learning it and it would save my lazy butt some time as well
|
|
|
|
|
|
#2 |
![]() Join Date: Sep 2008
Reputation: 3133
Posts: 13,111
|
You'd rather go through all that BS, for what!?
Just create a "Games" folder on your desktop and put all your game shortcuts in there. How hard is that? |
|
|
|
|
|
#3 | |
![]() Join Date: Nov 2010
Reputation: 98
Posts: 872
|
Quote:
Also I enjoy knowing a lot about how registries and basic features of Windows work. Plus, now that I have this problem, I won't be able to get anything done until I solve it ![]() It's more of just something cool to do rather than an absolute necessity. |
|
|
|
|
|
|
#4 |
![]() Join Date: Oct 2010
Reputation: 565
Posts: 790
|
I'm going to assume you are running this through Steam as well. If so, you may want to check out the Steam browser protocol. As long as your keyboard accepts launching websites, this is far easier. An example command would be: steam://rungameid/440 which fires up TF2.
You can quickly make these shortcuts by right-clicking the game and make desktop shortcut. Viewing the properties will give you the link. |
|
|
|
|
|
#5 |
![]() Join Date: Oct 2010
Reputation: 514
Posts: 1,431
|
Try Linux
|
|
|
|
|
|
#6 | |
![]() Join Date: Nov 2010
Reputation: 98
Posts: 872
|
I did for a while, and I liked it, but using WINE for games just doesn't cut it for me. If most games had native Linux support, I absolutely would, though.
Quote:
|
|
|
|
|
|
|
#7 |
![]() Join Date: Jun 2008
Reputation: 191
Posts: 729
|
|
|
|
|
|
|
#9 |
![]() Join Date: Apr 2009
Reputation: 15
Posts: 117
|
The syntax, the way you have it shown, is probably making Windows think you're using a command-line switch, which is what forward slashes are used for.
What happens if you change the forward slashes (/) to BACKslashes (\) since these are the proper/valid characters used for file and directory path names? I've never messed with these keys in the registry so I'm only guessing, but every other key name for every other program in that area of the registry matches the actual filename exactly, there are no shortened or abbreviated versions of the filenames used as key names. You may want to try naming the registry key the same name as the actual .exe file, just to make sure that's not also adding to the problem. Edit: After testing this a bit on my laptop (sorry, don't have MW installed so I had to use another game) it appears the forward/backslash thing isn't an issue, it reads them both as backslashes essentially. I did have an issue naming the registry key something other than what the actual filename was though, so that may be part of the issue. I used the TrackMania Nations Forever game launcher as my test subject and I noticed that using the reg key to start the launcher gave me a lot of warnings/errors that the shortcut doesn't give me. After clicking OK about 4 times it did eventually start the launcher, but the game wouldn't start from the launcher. Starting it from the shortcut lets me start the game without a problem. There may be other keys needed or other paths to be added to make games work properly... Last edited by HurtSauce: 03-11-2012 at 07:54 PM. |
|
|
|
|
|
#10 |
![]() Join Date: Jul 2006
Reputation: 156
Posts: 341
|
Just pop the Start Menu up and start typing the name of the game... it'll show up at the top of the list...
|
|
|
|
|
|
#11 | |
![]() Join Date: Sep 2008
Reputation: 3133
Posts: 13,111
|
Quote:
Or expand upon the Windows Search index to include other folders. |
|
|
|
|
|
|
#12 | |
![]() Join Date: Nov 2010
Reputation: 98
Posts: 872
|
Quote:
I was just hoping someone here knew the syntax for another string of values to make the .exe load texture files, because with only the default and path strings, it's not working. Saving under 4 seconds when I open up a game doesn't really matter to me. |
|
|
|
|
|
|
#13 | ||
![]() Join Date: Oct 2010
Reputation: 565
Posts: 790
|
Quote:
For parameters I use - personally. Quote:
Last edited by MmmBacon: 03-12-2012 at 04:44 PM. |
||
|
|
|
|
|
#14 | |
![]() Join Date: Nov 2010
Reputation: 98
Posts: 872
|
Quote:
|
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|