Reply
Logi Visitor
Boebi
Posts: 28
Registered: ‎05-23-2009
0

[Scripting] World of Warcraft / Mouse Events?

- 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.

 

 

 

 

__ / G15 \ __ / G13 \ __ / G25 \ __ / X-530 \ __ / MX Revolution \ __ / Force3D Pro \ __ / E2500 \ __


Logi Visitor
Jmp478
Posts: 32
Registered: ‎01-16-2009
0

Re: [Scripting] World of Warcraft / Mouse Events?

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.  

Logi Visitor
Boebi
Posts: 28
Registered: ‎05-23-2009
0

Re: [Scripting] World of Warcraft / Mouse Events?

[ Edited ]

I thought scripting was fixed with the latest software?

 

I guess I'll have it the 'guessing' way then :smileyhappy:

 

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.

Message Edited by Boebi on 05-24-2009 10:36 PM
__ / G15 \ __ / G13 \ __ / G25 \ __ / X-530 \ __ / MX Revolution \ __ / Force3D Pro \ __ / E2500 \ __


Logi Visitor
Jmp478
Posts: 32
Registered: ‎01-16-2009
0

Re: [Scripting] World of Warcraft / Mouse Events?

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. 

Logi Visitor
Boebi
Posts: 28
Registered: ‎05-23-2009
0

Re: [Scripting] World of Warcraft / Mouse Events?

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?

 

 

 

 

__ / G15 \ __ / G13 \ __ / G25 \ __ / X-530 \ __ / MX Revolution \ __ / Force3D Pro \ __ / E2500 \ __