
JockoDundee
-
Posts
1,239 -
Joined
-
Last visited
-
Days Won
35
Community Answers
-
JockoDundee's post in ProcessExists() documentation question was marked as the answer
This topic discussed to the fullest extent of the law here:
-
JockoDundee's post in Help to assign variável with numbers was marked as the answer
Neither sad or true.
Your approach is muddled. You were given two suggestions, the first, by @Melba23was designed to show you the best way to rewrite your code, I.e., using an array. The second suggestion, by @jugadorwas designed to help make work the code you had so far.
But the solution was not to combine the two.
All you need to do is declare an array of 36 control IDs, $lbl[36], assign them when you create the controls, and then you can access them thru via $lbl[$i] in a for loop.
-
JockoDundee's post in loop hotkey file was marked as the answer
@WhaleJesus, this:
Local $sWord, $sTrigger="Func ", $sComplete="(){Enter 4}End Func{UP 4}{RIGHT 5}" SetKeys(True) While Sleep(250) WEnd Func Pressed() $sWord &= @HotKeyPressed SetKeys(False) Send(@HotKeyPressed) If $sWord = $sTrigger Then Send($sComplete) $sWord = "" ElseIf $sWord <> StringLeft($sTrigger, StringLen($sWord)) Then $sWord = "" EndIf SetKeys(True) EndFunc Func SetKeys($bSet) For $sKey In StringToAsciiArray($sTrigger) If $bSet Then HotKeySet(Chr($sKey), Pressed) Else HotKeySet(Chr($sKey)) EndIf Next EndFunc Note: Auto-complete is not worth killing the clipboard. So that had to go. Triggers when "Func " are typed in order - even if other letters are in between.
-
JockoDundee's post in Can we use the Class name under the "Basic Control Info" in IF Else statement? was marked as the answer
Like this?
If WinExists("[CLASS:Notepad]") Then
-
JockoDundee's post in Format strings was marked as the answer
So in cases like this
$a= "sVar" $b = "50 Eval($a & $b) you would be able to say that the Eval() statement contains a valid reference or not?
Keep dreaming…
-
JockoDundee's post in Run batch files in subfolders was marked as the answer
Maybe ?
RunWait(@ScriptDir & "\BatchFolder\" & "sample.bat") unless script in \ directory, then eliminate leading \ in \BatchFolder