- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Using scripts to run G-buttons, files (preferabl y batch) or shortcuts.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-05-2012 05:44 PM
Let me explain in detail, I currently have G-16 bound to a .mp3 file through the built-in shortcut system and I have my G-13 bound to printing GOTTA GO FAST in several rows on the LCD. Now since I'm too lazy too press two buttons at the same time, I wondered how to make it work with just one button.
First I tried to use dofile and/or require, but I couldn't get that to work (mainly due too not quite understanding the syntax and not knowing the active directory) and I think I saw someone somewhere that you couldn't run batch files that way due to some problem.
Then I tried to emulate the G-16 button with a scancode, couldn't find it in the V3.04 LUA reference nor on google. So then I tried to find a scan-key-finder, and I found one that was legit due to it being 16-bit and you having to run it through dos-box and all, V G S it said when I pressed G18 after seeing that G13 did nothing. So I guess all I got was the output of the logitech-script.
If I got the scan-keys, advice on how to use require or any other solution or help i would be grateful, G-15 blue backlight.
And now that I think about it, I could just have G-13 press the windows button, move to and click on run and emulate the keystroke "c:\lua\a.mp3". But that would disrupt the flow of the game too much.
Solved! Go to Solution.
Re: Using scripts to run G-buttons, files (preferabl y batch) or shortcuts.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-06-2012 04:56 AM
hi ..
use the shortcut macro to start a file!
G-Keys dont have scancodes and can be detected with Logitech Software only - to my knowledge.
alternatively check out these Lua extensions: http://upia.de/g-forum/viewtopic.php?f=7&t=15
you can play sound files, take screenies, edit the LCD output ...
