- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
[Scripting ] World of Warcraft / Mouse Events?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-23-2009 12:40 PM
- Is there a way (scripting is fine) to recognize certain events in WoW?
Let me make an example with a G13.
If I'm outside battle (nothing happening) my backlight keys will be blue. Once I enter battle my backlight keys will turn red. If I leave battle, they turn back blue.
- And is there a way to recognize mouse events?
For instance, whenever I click my left mouse button, I want my G13 to flash real quickly.
Thank you for your time.
Re: [Scripting ] World of Warcraft / Mouse Events?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-24-2009 09:44 PM
You can't normally access information outside of World of Warcraft. There are ways, but it's against Blizzard's rules.
What you can do is have your G13 "guess" when you're in combat by changing the backlight color whenever you press any of the keys that you would use in combat. Then have the backlight change back after x amount of seconds after you stop pressing the buttons.
I have thought about doing this, but LUA scripting is currently broken for G13 and loops cause system lockups.
There might be a way to do this with Logitech's LCD SDK, but I don't know anything about it.
Re: [Scripting ] World of Warcraft / Mouse Events?
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-24-2009 10:26 PM - edited 05-24-2009 10:36 PM
I thought scripting was fixed with the latest software?
I guess I'll have it the 'guessing' way then ![]()
About Mouse clicking, I tried but it didn't work out, this is the code I used:
if IsMouseButtonPressed(1) then
OutputLogMessage("Left mouse \n" ) ;
end
It seems to only work ONCE, and after that nothing happens...
So I thought about a loop
while IsMouseButtonPressed(1) do
OutputLogMessage("Left Mouse 1" )
sleep(1000)
OutputLogMessage("Left Mouse 2" )
end
Didn't work either... And btw, I'm testing those scripts on my G15, so it can't be broken G13 scripting here.
Re: [Scripting ] World of Warcraft / Mouse Events?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-25-2009 07:18 PM
How are you executing your mouse click script? The Logitech scripting works using events. When certain events are called, such as pressing a G button or switching profiles, the scripts attached to the profile are run.
So you would only be able to check in the mouse button is pressed every time you press or release a G button, an M button, or activate or deactivate a profile. Those are the only events that are called using the LUA scripting language.
Re: [Scripting ] World of Warcraft / Mouse Events?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-25-2009 10:30 PM
I see... That makes sense.
What if I used:
if (event == "G_RELEASED" and arg == 2) then
if IsMouseButtonPressed(1) then
OutputLogMessage("Left mouse \n" ) ;
end
end
And at the start of the game I quickly press G2, it will be 'released' and the rest would work?
