Please or Register to create posts and topics.

two commands at once?

Page 1 of 2Next

I know it sounds insane but-Who have some experience with linux i explain it for him:
when you type
command1 & command2
It do command1 and after it command2.
I have two commands but i want to bind them.And i dont want to press button A and after it B.I want to press A and execute two commands at once.Thank you.

Portal Magazine WIP.
The device has been modified,so you has been PWNED!

"<command 1> ; wait ; <command 2>"

I think

yeah thanks but command ; command works too :) hey and i want to bind
sv_cheats 1 when its set to 0 and sv_cheats 0 when its set to 1.How?Thanks!

Portal Magazine WIP.
The device has been modified,so you has been PWNED!
Bosf wrote:
yeah thanks but command ; command works too :) hey and i want to bind
sv_cheats 1 when its set to 0 and sv_cheats 0 when its set to 1.How?Thanks!

i don't know if this works exactly the same, but its how i did it in quake and so far pretty much all the aliasing and binding has been the same for me

alias chON "sv_cheats 1;wait;bind k chOFF"
alias chOFF "sv_cheats 0;wait; bind k chON"
bind k chON

and just change "k" with whatever key you want to use it as

do NOT click this

thanks for alias command.it works bit before i set it-MADNESS!
i use it for turn off hud too.

] alias "hudOFF" "cl_drawhud 0 ; crosshair 0 ; impulse 200 ;bind "tab" "hudON" "
] alias "hudON" "cl_drawhud 1 ; crosshair 1 ; impulse 200 ; bind "tab" "hudOFF" "
] bind "tab" "hudOFF"

LOL

I never want to do it again. :) where its saved?

Portal Magazine WIP.
The device has been modified,so you has been PWNED!
Bosf wrote:
thanks for alias command.it works bit before i set it-MADNESS!
i use it for turn off hud too.

] alias "hudOFF" "cl_drawhud 0;crosshair 0;impulse 200;bind "tab" "hudON" "
] alias "hudON" "cl_drawhud 1;crosshair 1;impulse 200;bind "tab" "hudOFF" "
] bind "tab" "hudOFF"

LOL

I never want to do it again. :) where its saved?

ok in your
C:Program FilessteamSteamAppsSTEAMIDportalportalcfg
directory make a new text file and name it whatever example hudcon.cfg and make sure it saves as a simple ascii-text file. in that file put your commands; example:

Code: Select all
alias hudOFF "cl_drawhud 0;crosshair 0;impulse 200;bind tab hudON"
alias hudON  "cl_drawhud 1;crosshair 1;impulse 200;bind tab hudOFF"
bind tab hudOFF

then save it
then in the game. type

Code: Select all
exec hudcon

and it should help you autotype also

do NOT click this

hey but when i ran portal once that alias was not found.Unkown command hudOFF.Waht should i do now?

Portal Magazine WIP.
The device has been modified,so you has been PWNED!
Bosf wrote:
hey but when i ran portal once that alias was not found.Unkown command hudOFF.Waht should i do now?

follow my instructions.. make a config file in your /portal/cfg directory name it whatever you want (suggest hudcon.cfg) and put all your aliases and binding in there and then when you get in the game just run the config file (use: "exec hudcon") and then everything should be aliased and bound.

do NOT click this

i dont want to type it again anda again...When you type
bind key command
After you launch portal once again its not bound.
when you type
bind "key" "command"
It will be bind all the time.
when i type
alias key command
after i launch portal once again its- not aliased.
when i type
alias "key" "command"
after i launch portal once again its- not aliased???Can some comand fix it at all?

Portal Magazine WIP.
The device has been modified,so you has been PWNED!
Bosf wrote:
i dont want to type it again anda again...When you type
bind key command
After you launch portal once again its not bound.
when you type
bind "key" "command"
It will be bind all the time.
when i type
alias key command
after i launch portal once again its- not aliased.
when i type
alias "key" "command"
after i launch portal once again its- not aliased???Can some comand fix it at all?

ok i already told you. and for the 3rd time. goto your portal/portal/cfg directory (should be something like this)
C:Program FilessteamSteamAppsSTEAMIDportalportalcfg
and in that directory make a new text file and name it whatever (example; hudcon.cfg) and make sure it saves as a simple ascii-text file. in that file put your commands; example:

Code: Select all
alias hudOFF "cl_drawhud 0;crosshair 0;impulse 200;bind tab hudON"
alias hudON  "cl_drawhud 1;crosshair 1;impulse 200;bind tab hudOFF"
bind tab hudOFF

then save it
then in the game. type

Code: Select all
exec hudcon

and it should help you autotype also

do NOT click this
Page 1 of 2Next