Sorry, I put the data for testing into file1 and file2 and did not look at the filenames
remove the Break from the If !Found
Hubert
Search found 183 matches
- 04 Sep 2020, 19:44
- Forum: Ask for Help (v1)
- Topic: nested file parsing loops
- Replies: 16
- Views: 636
- 04 Sep 2020, 19:32
- Forum: Ask for Help (v1)
- Topic: nested file parsing loops
- Replies: 16
- Views: 636
Re: nested file parsing loops
NO !
Hubert
Hubert
- 04 Sep 2020, 19:29
- Forum: Ask for Help (v1)
- Topic: nested file parsing loops
- Replies: 16
- Views: 636
Re: nested file parsing loops
your main problem is that you must exchange the files in the parse loops !
Hubert
Hubert
- 14 Aug 2020, 06:57
- Forum: Ich brauche Hilfe
- Topic: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
- Replies: 40
- Views: 20327
Re: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
Zum Sortieren der Zeilen habe ich eine Spalte "Sort" angehängt, die mit dem folgenden Code bearbeitet wird. For ZugID, Verbindung In Zugverbindungen { Sort := (Verbindung.An.Zeit = "" ? Verbindung.Ab.Zeit : Verbindung.An.Zeit) . (Verbindung.Ab.Zeit = "" ? Verbindung.An.Zeit : Verbindung.Ab.Zeit) Zug...
- 11 Aug 2020, 22:39
- Forum: Ich brauche Hilfe
- Topic: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
- Replies: 40
- Views: 20327
Re: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
bei rg[A_Index] := Split[7] = "" ? split[6] : split[7] verstehe ich leider nichts mehr. wenn Split[7] leer ist Split[7] = "" dann wird Split[6] verwendet ? split[6] sonst Split[7] : split[7] --> Ternärer Operator (ternary operator) in Variablen und Ausdrücke (Variables and Expressions) in der Doku ...
- 11 Aug 2020, 02:34
- Forum: Ich brauche Hilfe
- Topic: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
- Replies: 40
- Views: 20327
Re: Spalten im ListView zu einem aufklappbaren Informationsfeld machen Topic is solved
Hallo, zurück zur Frage aus der Überschrift, oder wie Rudi Carrell sang: Lass Dich überraschen meine Version starten und in eine Zeile doppelklicken (die wenigen Änderungen an Deinem Skript sind mit '<===' markiert, am Ende ist eine neue Subroutine 'lv') FileRead, tNeuerDatensatzArray, NeuerDatensat...
- 09 Aug 2020, 04:03
- Forum: Ask for Help (v1)
- Topic: If .exe being ran by AHK crashes,
- Replies: 3
- Views: 2149
Re: If .exe being ran by AHK crashes,
did you try RUNWAIT?
how does your exe get the filenames from the loop ?
how many "exe's GUI" are open when you run your script ?
Hubert
how does your exe get the filenames from the loop ?
how many "exe's GUI" are open when you run your script ?
Hubert
- 09 Aug 2020, 01:40
- Forum: Ask for Help (v1)
- Topic: If .exe being ran by AHK crashes,
- Replies: 3
- Views: 2149
Re: If .exe being ran by AHK crashes,
hi, welcome !
I think it is not your .exe that crashes, its is AHK --> you run your .exe (and the following code ?) for all wanted files at the same time !
Therefore use to continue your processing when your .exe ends
Hubert
I think it is not your .exe that crashes, its is AHK --> you run your .exe (and the following code ?) for all wanted files at the same time !
Therefore use
Code: Select all
RunWait, C:\Program Files (x86)\MMK2\M61K2.exe
Hubert
- 04 Aug 2020, 01:57
- Forum: Ask for Help (v1)
- Topic: short cut for a code
- Replies: 1
- Views: 1059
Re: short cut for a code
try this after filling the missing hotkeys
Hubert
Code: Select all
:*:2@::
:*:3@::
; fill with keys from 4 to 49
:*:50@::
mousemove, 298,98
click,
key_to_send := strsplit(a_thishotkey, ":", "@")
send, % key_to_send[3]
send, !O
return
- 29 Jul 2020, 04:22
- Forum: Ask for Help (v1)
- Topic: Please help streamline part of a script Topic is solved
- Replies: 3
- Views: 1645
Re: Please help streamline part of a script Topic is solved
@braunbear findtext is an ahk-function for ocr (optical character recognition), the chars to find are definied in 'text' -------- add 80 texts and positions (4 to 83) in subroutine 'FillArrays' and try this, submitted without further comments, please study it: #NoEnv ; Recommended for performance an...
- 03 May 2020, 03:21
- Forum: Ask for Help (v1)
- Topic: Need Help with an Idea of an Sorting script
- Replies: 5
- Views: 738
Re: Need Help with an Idea of an Sorting script
if you do not want to loose the first website of each domain: :D ; FileRead domains, domains.txt Files := {} Loop Parse, % domains, `n, `r { RegExMatch(A_LoopField, "@\K.*", domain) if Files.HasKey(domain) Files[domain].WriteLine(A_LoopField) else { Files[domain] := FileOpen(domain ".txt", "a") File...
- 27 Mar 2020, 01:10
- Forum: Ask for Help (v1)
- Topic: Capturing ERRORLEVEL from 8 processes launched with Run
- Replies: 2
- Views: 462
Re: Capturing ERRORLEVEL from 8 processes launched with Run
To capture the errorcode of an external process you must use RunWait . In that way your processes run sequentially what you do not want (1000 instead of 8). First possibility I see is: run 1 to 8 different named AutoHotkey scripts of equal function, but using different named variables and filenames,...
- 07 Mar 2020, 04:42
- Forum: Ask for Help (v1)
- Topic: "if variable <>" doesn't work
- Replies: 4
- Views: 769
Re: "if variable <>" doesn't work
Why is it true when col = 0x2C6750? :shock: Why does "=" work without brackets but not "<>"? ; if (col <> 0x2C6750) or (col <> 0x244238) or (col <> 0x255743) is always true a variable "col" with a value of "0x2C6750" is false in the first condition and is true in the second and the third condition;...
- 06 Mar 2020, 02:05
- Forum: Ask for Help (v1)
- Topic: "if variable <>" doesn't work
- Replies: 4
- Views: 769
Re: "if variable <>" doesn't work
If (Expression) { Statements } ... Loop { ... } Until Expression PixelGetColor, col,125,595 ,rgb Clipboard := col ; if (col <> 0x2C6750) or (col <> 0x244238) or (col <> 0x255743) ; if expression, but it is always true if (col <> 0x2C6750) and (col <> 0x244238) and (col <> 0x255743) {Clipboard := co...
- 10 Feb 2020, 11:53
- Forum: Ask for Help (v1)
- Topic: connect to CryptoTerm via COM
- Replies: 0
- Views: 395
connect to CryptoTerm via COM
I try to connect to CryptoTerm (IBM 3270 terminal emulator) via COM_CreateObject("CryptoTermCOM.tn3270") like shown in helpfile and on webpage and I get return address 0 with errorlevel 0 -> no connection. I found that the registered "CryptoTermCOM.dll" only contains registration modules while the A...
- 20 Jan 2020, 09:14
- Forum: Scripts and Functions (v1)
- Topic: Touch Screen Keyboard
- Replies: 6
- Views: 2547
Re: Touch Screen Keyboard
@burque505 I had similar problems with win 8.1 on desktop. I added and changed the height in Hubert
Code: Select all
gui, -dpiscale
Code: Select all
Gui, Add, Tab3, x935 y0 w283 h250 BackgroundTrans Left Buttons -Wrap, .|.|.|.
; to
Gui, Add, Tab3, x935 y0 w283 h300 BackgroundTrans Left Buttons -Wrap, .|.|.|.
- 27 Dec 2019, 01:50
- Forum: Ich brauche Hilfe
- Topic: Fileread, Sort funktioniert nicht
- Replies: 4
- Views: 1115
Re: Fileread, Sort funktioniert nicht
Du versuchst, ein Array-Object zu sortieren, das geht so nicht, ist aber auch nicht nötig
Hubert
Code: Select all
SetWorkingDir %A_ScriptDir%
FileRead, AusgabeVar, KB-Suchbilder.txt
sort, AusgabeVar, CL D|
FileAppend, %AusgabeVar%, KB-Suchbilder1.txt
return
- 21 Dec 2019, 04:53
- Forum: Ich brauche Hilfe
- Topic: Überprüfen, ob der Inhalt der Variable mit einem der Elemente aus der Liste übereinstimmt Topic is solved
- Replies: 4
- Views: 1092
Re: Überprüfen, ob der Inhalt der Variable mit einem der Elemente aus der Liste übereinstimmt Topic is solved
Code: Select all
mynumber := 7
myname := "ahk"
mylist := ",abc,xyz,klm,jkl,ahke,asd," ; komma vorne einfuegen
if (mynumber > 5) && !inStr(mylist, "," myname ",") ; mit kommas suchen
MsgBox, YES
Else
MsgBox, NO
- 13 Dec 2019, 08:27
- Forum: Ask for Help (v1)
- Topic: Understanding Associative arrays
- Replies: 3
- Views: 675
Re: Understanding Associative arrays
Code: Select all
; msgbox, contacts[%array%]??????????
msgbox, % contacts[array]
- 07 Dec 2019, 13:50
- Forum: Ich brauche Hilfe
- Topic: cT active aid - HotStrings - Script funktioniert nicht
- Replies: 6
- Views: 4171
Re: cT active aid - HotStrings - Script funktioniert nicht
ich habe dein script unter der version 1.0.47.06 ausgeführt (allerdings ohne CT active aid) und folgende 3 Zeilen sind okay:Hubert
Code: Select all
dat := % AddMonth(A_YYYY A_MM,-5)
dat := AddMonth(A_YYYY A_MM,-5)
dat = % AddMonth(A_YYYY A_MM,-5)