The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.33 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




new computer
#29
having gotten (mostly) used to using my left thumb for movement (thus freeing the rest of the fingers on my left hand for action buttons), I looked a little deeper at the G13's LUA scripting engine, and it's basically functional but it won't handle long-running tasks. or rather, it will handle long-running tasks, but only one at a time because each button-down or button-up action is an 'event', and you can only have 1 event handler running at a time.

so if I script G1 to press 1, wait 10 seconds, then press 2, and I script G2 to press 3, wait 10 seconds, then press 4, I get the following result if I press G1, wait 5 seconds and press G2:
1 (10 seconds) 2 3 (10 seconds) 4

what I wanted was:
1 (5 seconds) 3 (5 seconds) 2 (5 seconds) 4.

fortunately, something basic like this can be done using macros (which can run concurrently, unlike LUA event handlers), so there's no need to get into LUA at all.

but if you want finer control over the buttons than the macros can provide (for example, you want to use certain buttons as 'shift' buttons to change the functions of other buttons) then LUA scripting is the answer.

-ken
New World: Snowreap
Life is Feudal: Snowreap Iggles, Taralin Iggles, Preyz Iggles
Naval Action: Taralin Snow, Snowy Iggles
EQ2: Snowreap, Yellowtail, Taralin, Disruption, Preyz, Taralynne, Snowy, Snowz
ESO: Snowreap, Yellowtail
PS2: Snowreap
GW2: Snowreap, Yellowtail, Preyz, Taralin, Taralynne
RIFT: Snowreap, Yellowtail, Preyz, Taralin, Snowy
PotBS (British): Taralin Snow, Taralynne Snow, Snowy Iggles, Edward Snow
PotBS (Pirate): Taralin Snowden, Taralynne Snowden, Redshirt Snowden
WW2O: Snowreap
WAR: Snowreap, Preyz, Lbz, Leadz, Snowz, Taralin, Snowmeltz, Yellowtail, Snowbankz
APB: Snowreap, Sentenza
STO: Snowreap@Snowreap, Snowz@Snowreap
AoC: Yellowtail, Snowreap, Snowstorm, Redshirt
WoW (Horde): Snowreap, Savagery, Baelzenun, Wickedwendy, Taralin, Disruption, Scrouge, Bette
WoW (Alliance): Yellowtail, Wickedwendy, Snowreap
AC1: Snowstorm, Yellowtail, Shirt Ninja, Redshirt
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)