- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2011 12:59 PM
Hello,
I have a couple of questions regarding scripting...
I see many people script their keyboard to have the backlights flash in diffrents patterns etc.
Is this possible with the G510 keyboard?
What software do I need, I have searched it up but I can't find the editor everyone is talking abuout ![]()
I have Logitech Gaming Software 8.12 installed + Game panel.
Thanks ![]()
Solved! Go to Solution.
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2011 01:20 PM
the script editor is built into the Logitech software. there should be a menu option or something to access it.
scripts that change your backlight color in various patterns usually tie up the scripting engine so that it can't do anything else, including processing regular G-key presses. so they're interesting to look at, but not terribly useful.
-ken
I do not work for Logitech. I'm just a user.
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2011 01:24 PM
Okey thanks, I have one major question thow..
Where can I access the script editor within the software, either I'm blind or it's not there :s
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2011 03:33 PM
I'm sure you have found it by now, but just in case: I found it in the "Logitech G-series Key Profiler" software, under the "Edit" menu. There is a "Script editor..." entry there.
I own a G510 myself (for 2-3 weeks now), and as for color "patterns" you can only do patterns in time (color cycling/blinking), as there is no individual color for each key.
OT: Pretty cool, I did'nt know there was a script editor at all! Atm I'm a bit unsure what to use it for, it seems a macro recorder should cover most of my needs. Then again I don't know Lua or what it can do.
Re: G510 Scripting
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2011 05:25 PM - edited 12-15-2011 05:26 PM
If you're using version 7.0 to 8.12, you right click on a profile (or hover over and select that down arrow) and select "Scripting".
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-17-2011 08:29 AM
Thanks for good answers the problem was that I didn't install the program as English version and the name for scripting in my country was really wierd ![]()
I have now tried to make some scripts and this is what I have written so far :
function OnEvent(event, arg)
if (event == "G_PRESSED" and arg == 1) then
-- G1 has been pressed
ClearLCD()
OutputLCDMessage("Hello world1", 2000)
Sleep(1000)
SetBacklightColor(255, 0, 0)
end
end
When I press G1 NOTHING happends ![]()
I have tried many types of scripts and none of them worked :/
Is there any function I need to activate or something?
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-17-2011 09:33 AM
When you're in the script editor, the script is loaded, so you should be able to test it right there. Are you even able to see a basic script of:
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %s\n", event, arg);
end
You should see log output on the bottom pane of the script editor.
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-17-2011 11:22 AM
Nice little test script there! Thanks, it got me testing a little bit ![]()
I tried it too, same result appearantly. But then I selected the profile via the keyboard's LCD "G-series profile selector". I somehow hadn't activated the modified "default" profile (also, I had another same named "default" profile loaded onto the keyboard that was active).
So first step was to activate the profile via the keyboard's LCD buttons.
I'm pretty sure that should be possible from the G-series Key Profiler too, but I couldn't get that to work. Maybe because I have meddled with saving profiles on the keyboard on-board memory, I don't know. Anyway, it still didn't show. Then I just expanded the time shown on the LCD, modifying your script a little bit:
if (event == "G_PRESSED" and arg == 1) then
-- G1 has been pressed
ClearLCD()
OutputLCDMessage("Hello world2", 5000)
Sleep(5000)
SetBacklightColor(255, 0, 0)
end
end
Then I had time to cycle the LCD apps / programs, and "Hello world2" was shown for a little bit!
It appears the "G-series scripting display" does not force itself to the foreground, even if setting only that app to do that and none of the others (LCD clock, profile selector, etc etc, you do this in "Logitech LCD manager"). I have noticed that with the other apps too, I wanted to LCD clock to be in the foreground when windows starts, but it appears to just be random. Also, I have dis-enabled any apps I don't want (left-hand columns).
So step 2 is to not enable any other app than the "G-series scripting display"? That's cumbersome at best, and kind of useless?
Actually, I just removed the check-marks for all apps except the scripting display, under the "G510" column (the right-hand side column in Logitech LCD manager - programs). Then, when no scripts (nor apps) runs, there is the default LCD "screen saver". Then you can see the script's LCD output when run.
I'm guessing it's a bug that the apps don't force themself to the foreground, thus the LCD scripting don't go to the foreground either. I can kind of understand if you select more than one app to be "the forground app", it will be random, or the last app started. (But apps like the clock for example updates itself all the time, probably others too, still, they shold not be in the foreground if another foreground app is started? Especially if they are not a "foreground app"!)
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-17-2011 11:51 AM
Not sure why it doesn't work for you, but works perfectly for me. You really shouldn't have to do anything to get it to work. The only thing is that the "G-series profile selector" must be 'checked' in the list of LCD applets.
Re: G510 Scripting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-18-2011 08:45 AM
I have now managed to get a message on the LCD screen ![]()
Problem is no mather how hard I try, I can't change backlights ![]()
