Jump to content
deviantdigi

Guide: How to add auto run function for G510/compliant keyboards

Recommended Posts

Greetings,

With much help from UPIA over @ the.logitechusers forums. I'm pleased to present you with an option to add a "auto run" function to Arma 2 via a script.

1. Open the Logitech Gaming Software suite and select the giant G. Aka the profiler. You can find the software/drivers here: http://www.logitech....g-keyboard-g510 and download the software/driver package for your specific OS. I'm currently using version 8.30.86.

3. Create or use a pre exsisting profile for Dayz (via the + symbol).

4. Click the profile icon, use the drop down menu to select "scripting"

COi2p.png

5. Overwrite your entire defualt script with:


toggleW = 0
function OnEvent(event, arg, family)
family = family or ""
if family == "kb" and event == "G_PRESSED" and arg == 1 then
if toggleW == 0 then
toggleW = 1
PressKey("w")
else
toggleW = 0
ReleaseKey("w")
end
end
end

http://www.logitechu....html#post62154

6. To use the function: So currently, given the script. When you press G1 the script will depress the W key. When G1 is pressed again, the script will release the W key. You do not need to assign the G key as that is done by the script.

You can use the Test profile feature next to where the scripting option is to make sure its working properly.

jbCg6.png

7. To change the auto run script to another G key. Within scripting, change number 1 in the line "G_PRESSED" and arg == 1 then" to any number between 1-18. (As I've changed it to G2 in the pic = 2). Keep in mind you can still use the macros for that G key but it will still activate the auto run script pressing W.

Have fun :D

  • Like 2

Share this post


Link to post
Share on other sites

This script does the same function as above. But when you activate auto run it changes the color scheme to give a visual status of the auto run state. Red being on, green being off. As well as displaying a LCD text alert.


toggleW = 0
function OnEvent(event, arg, family)
family = family or ""
if family == "kb" and event == "G_PRESSED" and arg == 1 then
if toggleW == 0 then
toggleW = 1
PressKey("w")
OutputLCDMessage("Auto Run Enabled",5000)
SetBacklightColor(255,0,0,"kb")
else
toggleW = 0
ReleaseKey("w")
OutputLCDMessage("Auto Run Disabled",5000)
SetBacklightColor(0,255,0, "kb")
end
end
end

Edited by deviantdigi

Share this post


Link to post
Share on other sites

Why not just double tap the forward key while moving? Much more efficiant, you don't have to move your fingers to a new position or anything.

Share this post


Link to post
Share on other sites

Why not just double tap the forward key while moving? Much more efficiant, you don't have to move your fingers to a new position or anything.

Not sure you're on the same page. This isn't about running or walking.

Its solution to holding down the forward key for long periods of time. Adding, you can add the script to a G key that is accessible by your pinky so you don't have to move your hand postion while playing. I have the run/walk toggle mapped to my left shift key.

Edited by deviantdigi

Share this post


Link to post
Share on other sites

I can autorun by double tapping W and opening the steam overlay. While still holding W then simply release W, close the overlay, and I'm running on my own.

  • Like 1

Share this post


Link to post
Share on other sites

I can auto run by switching between two computers with a KVM switch as I hold my forward button which I rebound to mouse button 5. I release and switch back. Can still free look...strafe...stop (holding back button..mouse button 4) and never lose the auto run till I hit mouse button 5 again. It is kinda handy for debug forest escapes and long trips on foot through the woods and I gottah grab another beer!! :)

Edited by BTT`

Share this post


Link to post
Share on other sites

Hey, that's awesome. have you heard of any LCD apps for Arma II or Dayz in general? I'm not skilled enough to make one myself, I could try but would love to know if there is one out already.

I think it requires the game to allow it right? Sorry, not sure if you know about this but I googled it and found random profile options but nothing on the LCD app.

Share this post


Link to post
Share on other sites

Who is silly enough to use Steam to launch the game? This is awesome, I'll try it out. Thanks OP

would be even better if this was only enabled whilst Arma II: OA is open:P

Edited by DocTolly

Share this post


Link to post
Share on other sites

YAAAAAAAAAAAAWN

Hold run then press your Steam key.

Done.

Solved.

No idea why people do these other things.

Because we don't use Steam?

Edited by teamRAVEGREEN
  • Like 1

Share this post


Link to post
Share on other sites

1. Make a macro, assign W to it.

2. Set the macro on shift (under the section repeatoptions). (roughly translated from dutch)

3. Done.

You can toggle it on/off by pressing the key you bound it to.

Works for me, for some months now I might add.

Edited by chilled

Share this post


Link to post
Share on other sites

Greetings,

With much help from UPIA over @ the.logitechusers forums. I'm pleased to present you with an option to add a "auto run" function to Arma 2 via a script.

1. Open the Logitech Gaming Software suite and select the giant G. Aka the profiler. You can find the software/drivers here: http://www.logitech....g-keyboard-g510 and download the software/driver package for your specific OS. I'm currently using version 8.30.86.

3. Create or use a pre exsisting profile for Dayz (via the + symbol).

4. Click the profile icon, use the drop down menu to select "scripting"

COi2p.png

5. Overwrite your entire defualt script with:

6. To use the function: So currently, given the script. When you press G1 the script will depress the W key. When G1 is pressed again, the script will release the W key. You do not need to assign the G key as that is done by the script.

You can use the Test profile feature next to where the scripting option is to make sure its working properly.

jbCg6.png

7. To change the auto run script to another G key. Within scripting, change number 1 in the line "G_PRESSED" and arg == 1 then" to any number between 1-18. (As I've changed it to G2 in the pic = 2). Keep in mind you can still use the macros for that G key but it will still activate the auto run script pressing W.

Have fun :D

hey,

i have the corsair k90 and was wondering if i enter the same sequence and delay will that autorun for me too?

if not has any1 figured out a k90 auto run yet?

thanks

Edited by drake89

Share this post


Link to post
Share on other sites

I bought a keyboard with macro keys... why wouldent I use why I paid for?

Any help would be great guys.

Thanks!

Share this post


Link to post
Share on other sites

Well,

I have a G110, and I have a more sophisticated way to do it: :D

9b1ac34f.jpg

Edited by Mitor

Share this post


Link to post
Share on other sites

(Can Delete plz)   :P

Edited by Antykain

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×