Steamをインストール
ログイン
|
言語
简体中文(簡体字中国語)
繁體中文(繁体字中国語)
한국어 (韓国語)
ไทย (タイ語)
български (ブルガリア語)
Čeština(チェコ語)
Dansk (デンマーク語)
Deutsch (ドイツ語)
English (英語)
Español - España (スペイン語 - スペイン)
Español - Latinoamérica (スペイン語 - ラテンアメリカ)
Ελληνικά (ギリシャ語)
Français (フランス語)
Italiano (イタリア語)
Bahasa Indonesia(インドネシア語)
Magyar(ハンガリー語)
Nederlands (オランダ語)
Norsk (ノルウェー語)
Polski (ポーランド語)
Português(ポルトガル語-ポルトガル)
Português - Brasil (ポルトガル語 - ブラジル)
Română(ルーマニア語)
Русский (ロシア語)
Suomi (フィンランド語)
Svenska (スウェーデン語)
Türkçe (トルコ語)
Tiếng Việt (ベトナム語)
Українська (ウクライナ語)
翻訳の問題を報告
Armed with the information that he had found a way to automatically hold W down, I provided him with the missing piece, the shift aspect.
I wasn't aware that Right Shift would toggle run. It's good to know, and it is relevant to this thread. Thank you.
No probs ;)
oooohhh, I hadn't put those two together. that actually make perfect sense.
you've earned an honorable mention in the edit!
If not then I might take a look at the script, but the one I posted was working in ARK if I remember correctly.
Here is my working script
Enjoy
w and lshift +w.
Replace arg==4/5 with mouse key. see bottom log in Script editor.
unassign key if needed
This will map it to G1 on the game board
autorunGKey = 1
toggleRun = true
function OnEvent(event,arg,family)
if event == "G_PRESSED" and arg == autorunGKey then
toggleRun = not toggleRun
if toggleRun then
PressKey("lshift")
PressKey("w")
else
ReleaseKey("w")
ReleaseKey("lshift")
end
end
end
function OnEvent(event, arg)
if (event=="G_PRESSED" and arg==17) then
if (toggle==null) then
PressKey(0x11, 0x2A);
toggle=1;
elseif (toggle==1) then
ReleaseKey(0x11, 0x2A);
toggle=nil;
end
end
end
Works grate thanks.
After trying to understand the "G-seriesLuaAPI.pdf"
The problem I'm having is my "M key's" (On a G13) are set up to do different things and this script takes over all "G17" key when in M2 and M3. I just want this working when I'm in M1 mode. I don't code and have some exp with target by thrustmaster.
I'm trying stuff like...
if {current_mkey = 1} then
if (current_mkey = GetMKeyState“lhc”) 1 then
With added "end" commands
Hope somone can help.
This works great for me, DayZ Autowalk. Thanks everone.
Given the get m state function exists it seems it's the first.
You said you changed what your M keys do. Did you perhaps change them to do something other than swap modes?
Also, the value of the m key when in mode one could easily be zero.