Search found 5901 matches

by just me
Today, 05:18
Forum: Ich brauche Hilfe
Topic: random - no repeat
Replies: 2
Views: 44

Re: random - no repeat

Moin, wenn die Datei nicht zu groß ist, würde ich Folgendes vorschlagen: Datei komplett einlesen, z.B. mit FileRead, DateiInhalt, ... . Eingelesene Datei 'zufällig' sortieren, z.B. Sort, DateiInhalt, Random . Den zufällig sortierten Inhalt in ein Array übertragen, z.B. ZeilenArray := StrSplit(DateiI...
by just me
Today, 03:58
Forum: Scripts and Functions
Topic: Function lib: FormatDword.ahk - HIWORD(), LOWORD(), MAKELONG()
Replies: 5
Views: 164

Re: Function lib: FormatDword.ahk - HIWORD(), LOWORD(), MAKELONG()

#define MAKELONG(a, b) ((LONG)(((WORD)(((DWORD_PTR)(a)) & 0xffff)) | ((DWORD)((WORD)(((DWORD_PTR)(b)) & 0xffff))) << 16)) LONG A 32-bit signed integer. The range is -2147483648 through 2147483647 decimal. AHK stores all integer values as signed 64-bit integers. My suggestion: MAKELONG(LOWORD, HIWOR...
by just me
Today, 02:50
Forum: Ich brauche Hilfe
Topic: Optimierung Umbenennungstool
Replies: 47
Views: 1857

Re: Optimierung Umbenennungstool

Moin Meister Lampe, ich war ein wenig abgelenkt. Jetzt habe ich aber versucht, Deine Änderungen um eine rudimentäre Eingabeprüfung zu ergänzen: Neuerstellen: Gui, Submit, NoHide ; Speichert die Benutzereingaben für eine neue Vorlage ; AktSignEingabe darf nicht leer sein AktSignEingabe := Trim(AktSig...
by just me
Yesterday, 09:57
Forum: Offtopic
Topic: ... uninspiring
Replies: 3
Views: 121

... uninspiring

... I was going to just lurk, having not opened the forum for months and thus far finding today's visit very uninspiring. Then I read this, and had to log in to say thanks! For the laughs. :lolno: ... To have to read statements like this from the (main) developer of AHK is very, very uninspiring. I...
by just me
Yesterday, 09:26
Forum: Ask For Help
Topic: Sorting array (or ListView) by first "n" chars/digits? Topic is solved
Replies: 3
Views: 84

Re: Sorting array (or ListView) by first "n" chars/digits? Topic is solved

Hi, you might want to try #NoEnv FileData = (Join`r`n Lang1:EN`tLang2:HR`tAuthor`tDomain applicable`tprimjenjivo`tUSERNAME`tEU standards voluntary accreditation scheme`tdobrovoljni program akreditacije`tUSERNAME`tEU standards scheme`tshema`tUSERNAME`tEU standards instance`tinstanca`tUSERNAME`tEU sta...
by just me
Yesterday, 04:11
Forum: Ask For Help
Topic: IL and LV - Issue
Replies: 2
Views: 77

Re: IL and LV - Issue

Hi, my (untested) suggestions: Remove the leading numbers from the image file names. Create an array of file names. Create a complete image list at the start of the script. Replace the ComboBox control by a DDL . Add the AltSubmit option to make it return the index of the selected item. #NoEnv Image...
by just me
19 Mar 2019, 12:19
Forum: Ask For Help
Topic: Sum numbers and empty strings Topic is solved
Replies: 7
Views: 155

Re: Sum numbers and empty strings Topic is solved

My suggestion: Don't rely on AHK quirks if you don't need to do it. Use swagfag's solution.
by just me
19 Mar 2019, 11:32
Forum: Ask For Help
Topic: IsObjectEmpty()
Replies: 12
Views: 309

Re: IsObjectEmpty()

This means that in the c() function, the !styles check will never trigger, ...
It will never trigger because styles is always an object (with styles.Length() = 0 if no parameters have been passed).
by just me
19 Mar 2019, 11:23
Forum: Ask For Help
Topic: Is this a bug? Topic is solved
Replies: 2
Views: 72

Re: Is this a bug? Topic is solved

Code: Select all

For m, x in c
{
	j:=0, f:=d ; <<<<<<<<<<
	...
Because the variables f and d hold references to the same object. Each change to c also changes f.
by just me
19 Mar 2019, 09:57
Forum: Ask For Help
Topic: How to calculate the CRC16 of 1 by hand?
Replies: 4
Views: 102

Re: How to calculate the CRC16 of 1 by hand?

The final XOR operation is part of some CRC implementations. XorOut : 0000 means: This algorithm does not use the final XOR.
by just me
19 Mar 2019, 04:33
Forum: Scripts and Functions
Topic: [CLASS] MySQLAPI - MySQL wrapper
Replies: 47
Views: 16415

Re: [CLASS] MySQLAPI - MySQL wrapper

:arrow: MYSQL_ROW Excerpt from the class code: ; =================================================================================================================== ; Returns the values of the next row of the given MYSQL_RES as an array. ; Parameters: MYSQL_RES - Pointer to a MYSQL_RES structure. ; ...
by just me
19 Mar 2019, 04:20
Forum: Ask For Help
Topic: Find the first occurrence of text and stop
Replies: 8
Views: 220

Re: Find the first occurrence of text and stop

If you want to search for static text like |-, use InStr(). You don't need regular expressions wasting resources in this case.
by just me
19 Mar 2019, 03:41
Forum: Ich brauche Hilfe
Topic: String in mehreren Dateien durch anderen String ersetzen? Topic is solved
Replies: 3
Views: 117

Re: String in mehreren Dateien durch anderen String ersetzen? Topic is solved

... (Obwohl ich glaube ich dann noch nicht richtig den Unterschied zwischen Loop, Files und Loop, Parse begriffen habe...) ... Moin, Deine Erste Schleife Loop, Files, c:\studio\*.sdlxliff, R ; R=recurse into subfolders filelist := A_LoopFileFullPath überschreibt bei jedem Durchlauf den Inhalt der V...
by just me
18 Mar 2019, 10:27
Forum: Ask For Help
Topic: How to calculate the CRC16 of 1 by hand?
Replies: 4
Views: 102

Re: How to calculate the CRC16 of 1 by hand?

Which online documentation? :roll:
by just me
16 Mar 2019, 11:12
Forum: Ich brauche Hilfe
Topic: Hotstring aus Datei per Loop erzeugen Topic is solved
Replies: 3
Views: 92

Re: Hotstring aus Datei per Loop erzeugen Topic is solved

Dann hast Du in NP++ die Byte-Order-Mark (BOM) vergessen. Mit BOM erkennt auch das einfache Notepad die Kodierung.
by just me
16 Mar 2019, 06:50
Forum: Ask For Help
Topic: Structure - Class or Object - Array Name
Replies: 3
Views: 119

Re: Structure - Class or Object - Array Name

Just one additional hint:

Code: Select all

SquidData.dbName.ArtikelNr
; is identical to
SquidData["dbName"]["ArtikelNr"]
by just me
16 Mar 2019, 05:35
Forum: Ich brauche Hilfe
Topic: Hotstring aus Datei per Loop erzeugen Topic is solved
Replies: 3
Views: 92

Re: Hotstring aus Datei per Loop erzeugen Topic is solved

Moin,

wenn ich Deine Testdaten händisch in die Variable myfile stelle und die dann parse, funktioniert by mir alles wie es soll. Vielleicht ist etwas mit der Datei?
by just me
16 Mar 2019, 05:22
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 350

Re: help with objects and percent sign Topic is solved

Since AHK has a concatenate operator (. / period / dot) I normally use it. Also, I usually put spaces around this operator. I don't like those AHK syntax elements which can be omitted . It's a source of confusion again and again without a real advantage. Because AHK needs to have 'auto-concat' in ex...
by just me
16 Mar 2019, 04:40
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 350

Re: help with objects and percent sign Topic is solved

When exactly are variable names enclosed in percent signs? might give you some hints. In your case Var.first is not the name of a variable. first is just the name of a key stored in the object referenced by the variable Var . And because the dot is not allowed in the names of variables, AHK throws ...
by just me
16 Mar 2019, 02:49
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 350

Re: help with objects and percent sign Topic is solved

Code: Select all

; MsgBox, %Var.first% %Var.second% %Var.third%
MsgBox, % Var.first . " " . Var.second . " " . Var.third

Go to advanced search