autoAura - A simple wrapper for ASUS Aura SDK

Post your working scripts, libraries and tools.
rayan-refoua
Posts: 3
Joined: 15 Dec 2021, 01:02

autoAura - A simple wrapper for ASUS Aura SDK

Post by rayan-refoua » 27 May 2023, 13:32

This a simple wrapper for ASUS Aura SDK that lets you control aura-capable devices from autohotkey. you can set individual light's colors and apply them at once.
  • You have to install "Asus ARMOURY CRATE" before using this class: https://rog.asus.com/us/armoury-crate/ since it uses the com object provided by "Aura SDK"
  • If you plan to show an animation using this class, I highly recommend using a 50ms (or more) sleep between apply() commands to prevent laggy animation.
  • autoAura should not be instantiated more than once, since aura SDK only accepts commands from one interface.
  • Mainboard cannot know how many individual lights are available to work with, So if you try to set a non-existent light, nothing would happen. altho the mainboards usually limits this number to 200. the class ignores any index input above the acceptable number of index input
I'm planning to create an animation class to extend this one that would help animating light via a png sequence or/and animate an array of lights between states (for example controlling the light based on the progress of some process)

Download from github

Simple example:
if you setup everything correctly, depending on your hardware, it should look something like this:
Image

Code: Select all

#Include autoAura.ahk
Aura := autoAura()
loop (Aura.deviceCount) {
	CurrentDevice := Aura.deviceNameList[A_Index]
	loop(20){ ;sets the first 20 lights of each device
		Aura.setLight(CurrentDevice, A_index, 255, 0, 0)
		Sleep(50)
		Aura.apply(CurrentDevice)
	}
}
Aura.show()
Aura := ""
Updates:
  • v1.0
    Initial Release

Return to “Scripts and Functions (v2)”