Here's the Idea:
A key combo is pressed, program will start a count down timer to show when something expires. It's a basic buff/debuff timer.
So I create a file that will have the Name of the ability, the key or combo of keys to watch for, and the duration of the buff/debuff (Who ever uses this will have to configure this file themselves but atm I am only one using it)
Sample content:
Force Breach;^{2};18\
Earth Shield;+{1};8
I tried to StringSplit with "\n" for newline but that didn't work so I made do with the \ but rather not. Maybe an empty " " would work?
I get the array that now contains: (does the array auto use [0] for array size?)
[1] Force Breach;^{2};18
[2] Earth Shield;+{1};8
What I am having trouble getting to work is turning the above into:
[1][1] Force Breach
[1][2] ^{2}
[1][3] 18
[2][1] Earth Shield
[2][2] +{1}
[2][3] 8
I'll probably have more issue's later on but this is where I am currently stuck at.
#include <File.au3> #include <Array.au3> ; Read File watcher.txt $sStr = FileRead("watcher.txt") $aItems = StringSplit($sStr, "\") Global $aList[1] For $x = 1 To UBound($aItems)-1 Local $aTemp = StringSplit($aItems[$x], ";") _ArrayAdd($aList, $aTemp) _ArrayDisplay($aList, "K") Next For $x = 1 To UBound($aList,1) For $y = 1 To UBound($aList,2) MsgBox(0, 'Record: [' & $x & '][' & $y & '] ', $aList[$x][$y]) Next Next




This topic is locked

