[solved] Underscore becomes dash in console
Posted: 21 Oct 2018, 11:06
Hey,pepes
OK.... been working quite a while on this and thought I should ask for some help. I have no problem writing a script to open console and send commands and close console when done, but whenever and underscore "_" is written in script, it becomes a dash "-" in the console:
sv_everything_1
becomes
sv-everything-1
Current solution: Write script without "_" and add 5 second pause. Ample time to hold LShift and key and type "_" before it continues
---------------------------------------------
$F1::
{
Send, ``
Sleep, 100
Send, s
Sleep, 100
Send, v
Sleep, 5000 ;pause here to hold LShift and type "_" prior to script continuing
Send, e
Sleep, 100
Send, v
Sleep, 100
Send, e
Sleep, 100
Send, r
Sleep, 100
Send, y
Sleep, 100
Send, t
Sleep, 100
Send, h
Sleep, 100
Send, i
Sleep, 100
Send, n
Sleep, 100
Send, g
Sleep, 2000 ;pause here to type "_" (shorter pause, because my fingers are already on the necessary keys)
Send, 1
Send, {enter}
sleep, 100
Send, ``
}
---------------------------------------------
The above is works perfectly..... but is awkward during gameplay. Research has suggested "?" or "/" in place of underscore, but no go
Thanks for any help, Eric
PS. The Game is Painkiller: Recurring Evil and this code command gives all kinds of really crazy weapons to kill the badies
PPS. I just remembered... I have another game in which this type of script DOES allow the "_" character.... so this issue is game specific,
but maybe somebody knows a trick <--- so jelly of beard
OK.... been working quite a while on this and thought I should ask for some help. I have no problem writing a script to open console and send commands and close console when done, but whenever and underscore "_" is written in script, it becomes a dash "-" in the console:
sv_everything_1
becomes
sv-everything-1
Current solution: Write script without "_" and add 5 second pause. Ample time to hold LShift and key and type "_" before it continues
---------------------------------------------
$F1::
{
Send, ``
Sleep, 100
Send, s
Sleep, 100
Send, v
Sleep, 5000 ;pause here to hold LShift and type "_" prior to script continuing
Send, e
Sleep, 100
Send, v
Sleep, 100
Send, e
Sleep, 100
Send, r
Sleep, 100
Send, y
Sleep, 100
Send, t
Sleep, 100
Send, h
Sleep, 100
Send, i
Sleep, 100
Send, n
Sleep, 100
Send, g
Sleep, 2000 ;pause here to type "_" (shorter pause, because my fingers are already on the necessary keys)
Send, 1
Send, {enter}
sleep, 100
Send, ``
}
---------------------------------------------
The above is works perfectly..... but is awkward during gameplay. Research has suggested "?" or "/" in place of underscore, but no go
Thanks for any help, Eric
PS. The Game is Painkiller: Recurring Evil and this code command gives all kinds of really crazy weapons to kill the badies
PPS. I just remembered... I have another game in which this type of script DOES allow the "_" character.... so this issue is game specific,
but maybe somebody knows a trick <--- so jelly of beard