You are viewing our Forum Archives. To view or take place in current topics click here.
[HELP PLEASE] Visual basic uses needed
Posted:

[HELP PLEASE] Visual basic uses neededPosted:

SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
i have made a cod4 pc server launcher pics here :
[ Register or Signin to view external links. ]


but i need to know the code to connect cod4.exe to a specific server anyone know it?

System.Diagnostics.Process.Start("C:\Program Files\Activsion\Call of Duty 4 - Modern Warfare\iw3mp.exe")
i have the basic code to open cod4 (has you can see above) when i press one of the buttons but like i said i want to connect it straight to a server any help will be fantastic!
#2. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.
#3. Posted:
SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.


OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)
#4. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
SpyderGaming22 wrote
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.


OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)

You know how to run a shortcut, right?
You can use ShellExecuteand the shortcut's extention is .lnk.
EDIT: You can use System.Diagnostics, too. The ShellExecute is what I always used for shortcuts, lol.


Last edited by TGK ; edited 1 time in total
#5. Posted:
SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
0x539 wrote
SpyderGaming22 wrote
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.


OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)

You know how to run a shortcut, right?
You can use ShellExecute and the shortcut's extention is .lnk.


what? so use the same code to launch the shortcut but instead of .exe? use .ink?
#6. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
SpyderGaming22 wrote
0x539 wrote
SpyderGaming22 wrote
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.


OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)

You know how to run a shortcut, right?
You can use ShellExecute and the shortcut's extention is .lnk.


what? so use the same code to launch the shortcut but instead of .exe? use .ink?

It should be like this: System.Diagnostics.Process.Start("C:\shortcutpathhere\CoD4MP.lnk")
#7. Posted:
SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
0x539 wrote
SpyderGaming22 wrote
0x539 wrote
SpyderGaming22 wrote
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."

You could get it to run that and it should work.


OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)

You know how to run a shortcut, right?
You can use ShellExecute and the shortcut's extention is .lnk.


what? so use the same code to launch the shortcut but instead of .exe? use .ink?

It should be like this: System.Diagnostics.Process.Start("C:\shortcutpathhere\CoD4MP.lnk")


The system cannot find the file specified < keep getting that error
#8. Posted:
SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
This is the code aswell not working

System.Diagnostics.Process.Start("C:\Users\MYNAME-PC\Desktop\iw3mp - Shortcut.lnk")
#9. Posted:
TGK
  • TTG Senior
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
Status: Offline
Joined: Oct 03, 201311Year Member
Posts: 1,409
Reputation Power: 64
SpyderGaming22 wrote
0x539 wrote
SpyderGaming22 wrote
0x539 wrote
SpyderGaming22 wrote
0x539 wrote I found this online.
"you could also create shortcuts for the servers, make a copy of you cod4 mp icon, right click and then go to properties. Add +connect 8.12.17.210:28960 after the last " for server 4.1. Make sure to put a space after the last quotation mark before the plus sign. Just change the ip for any other servers you want, and rename the icon. When you click on the icon you will connect directly to that server."
OMFG I LOVE YOU! ( NO HOMO!!!!!!!!!!!!!!!!!!!!!!!!)

You know how to run a shortcut, right?
You can use ShellExecute and the shortcut's extention is .lnk.


what? so use the same code to launch the shortcut but instead of .exe? use .ink?

It should be like this: System.Diagnostics.Process.Start("C:\shortcutpathhere\CoD4MP.lnk")


The system cannot find the file specified < keep getting that error

You could get it to run that and it should work.

Be sure you have the right path and the shortcut spelled correctly. I got that error after editing the shortcut's name, but after I deleted it and made a new one, it worked fine.
Remember, it's LNK not INK.
#10. Posted:
SpyderGaming22
  • New Member
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Oct 19, 201311Year Member
Posts: 7
Reputation Power: 0
STill not working! pff help please keeps saying cannot find file error.. **** hell
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.