There is currently a faction war going on! View Stats
Doodly
Enforcer
User avatar
Posts: 1200
Game name: Doodly_Jooba

How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 1:24 pm

I've wanted to do this for a while now, and I finally got around to it.
My goal was to create a simple script that launches both my client and my keybinder with only one icon, thus reducing the need for me to open a folder or to click two icons. Usability > Effort

If you have any questions, feel free to ask here or in PM.

Showcase:
Image
This is the only SA-MP related icon I have on my desktop, yet by clicking it, both my client and keybinder will open.



How to:
  1. Move your SA-MP shortcut and your Keybinder to where you want them to be (preferrably not on the desktop)
  2. Open Notepad (or notepad++)
  3. Copy the below script into it
  4. Copy the path to your SA-MP shortcut/exe by holding SHIFT and then Right Mouse Button on it, select 'copy as path' or the likes.
  5. Paste this path (with quotation marks) after the first start ""
  6. Copy the path to your Keybinder shortcut/exe by holding SHIFT and then Right Mouse Button on it, select 'copy as path' or the likes.
  7. Paste this path (with quotation marks) after the second start "". This one has the command /min to start your keybinder minimized.
  8. Save the file somewhere as xxx.vbs
Your code should look similar to this:
Spoiler

Code: Select all

@echo off
echo Booting San Andreas Multiplayer
start "" "C:\Users\Bram-DESKTOP\Documents\San Andreas Multiplayer\samp.exe - Snelkoppeling.lnk"
echo Booting Ultimate San Andreas Keybinder
start /min "" "C:\Users\Bram-DESKTOP\Documents\San Andreas Multiplayer\Ultimate SAMP KeyBinder.exe"
exit
The echos are there so you get some nice text in the command window that pops up. You could add a 'ping 127.0.0.1 > NUL' before the exit line if you want the command window to stay open a bit longer.

Pro tip:
I saved the VBS file in my documents and made a shortcut to it on my desktop, this way I could put a custom .ico, where I put the original San Andreas Logo.



Clean code:

Code: Select all

@echo off
echo Booting San Andreas Multiplayer
start "" SAMP_PATH
echo Booting Ultimate San Andreas Keybinder
start /min "" KEYBINDER_PATH
PING 127.0.0.1 > NUL
exit
End result:
Spoiler
Image

frozen
Retired Admin
User avatar
Posts: 5269
Game name: Enzo_DiPietro

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 1:28 pm

is it really needed XD
nice tho
Image

Spec
Enforcer
User avatar
Posts: 978
Game name: Harvey_Specter, Michael_Versace, Niko_Smirnov

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 1:30 pm

Nice one. Now instead of two clicks I can play with one.. hehe
Image

Bojan_Smith
Enforcer
User avatar
Posts: 1103
Game name: Albert_Castle

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 1:32 pm

Can you teach us how to make Egg in a bottle?
lol these are sick stuff.
Image

Best Report in 2017 viewtopic.php?f=184&t=156257

Kai
Trial Administrator
User avatar
Posts: 2649
Game name: Arnold_Martinez, Arnold_DeLeon

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 1:42 pm

Bojan_Smith wrote:Can you teach us how to make Egg in a bottle?
lol these are sick stuff.
.........?
Image
Spoiler
Image

Doodly
Enforcer
User avatar
Posts: 1200
Game name: Doodly_Jooba

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 2:58 pm

Kai wrote:
Bojan_Smith wrote:Can you teach us how to make Egg in a bottle?
lol these are sick stuff.
.........?
Yeah you boil an egg then peel it, put a match in a bottle and the peeled egg on top. The vacuum created by the match will suck it in... How is this relevant again? xd

-Hopsin-
Enforcer
Posts: 949
Game name: Connor_Underwood, Alexander_Rossi, Rick_Dawson

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 4:01 pm

Hackerman doodly 1337

Image

Darkel
Caporegime
User avatar
Posts: 6343
Game name: Darkel_Rosenberg, Alvie_Sinclair, Amelia_Sinclair

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 4:17 pm

Good effort.
Image
Spoiler
Everything in the world is either Tits or isn't Tits.

I believed in angels when i saw her Tits.

I scream you scream, we all scream for Tits cream!

Calm your tits, soothe your boobs, de-stress your breasts, give that chest a rest and hakuna your tatas!

Nipple nipple little star, can I fuck you in my car?
Up above your boobies so high, always milky never dry!
Let me press it, don't feel shy!
Open your panty, let me try?!

Bojan_Smith
Enforcer
User avatar
Posts: 1103
Game name: Albert_Castle

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 5:30 pm

BramofDoom wrote:
Kai wrote:
Bojan_Smith wrote:Can you teach us how to make Egg in a bottle?
lol these are sick stuff.
.........?
Yeah you boil an egg then peel it, put a match in a bottle and the peeled egg on top. The vacuum created by the match will suck it in... How is this relevant again? xd


OK THANK YOU XD
Image

Best Report in 2017 viewtopic.php?f=184&t=156257

Neo
Outsider
Posts: 118
Game name: Neo_Morgan

Re: How to launch both SA-MP and your Keybinder in one click

July 18th, 2017, 6:51 pm

What are you, God of laziness?

Return to “Outdated Guides”