Search found 5371 matches

by just me
07 Aug 2018, 07:37
Forum: Ask For Help
Topic: Deleting variable Topic is solved
Replies: 4
Views: 107

Re: Deleting variable Topic is solved

You should read about blocks ({...}) . This is what your code is actually doing (note the indentation): sub1: { ; <- useless FileSelectFile, SelectedFile, , , Select file, *.pdf If SelectedFile = MsgBox, You have not selected a file. Else FileCopy, %SelectedFile%, %A_ScriptDir%\temp_ep.pdf RunWait, ...
by just me
07 Aug 2018, 07:06
Forum: Ask For Help
Topic: Check if variable has something
Replies: 11
Views: 173

Re: Check if variable has something

If I understand your question right: If (Condition) ; True { Do Nothing } Else ; False { Do Something } is equivalent to If !(Condition) ; False { Do Something } You never need an If or Else branch doing nothing. If you swap the order it's more obvious If (Condition) { Do Something } Else { Do Nothi...
by just me
05 Aug 2018, 03:39
Forum: Ich brauche Hilfe
Topic: INIRead durchsuch variable aus ComboBox
Replies: 2
Views: 71

Re: INIRead durchsuch variable aus ComboBox

Moin JoKu, wenn man Gui-Controls ansprechen will, braucht man einen eindeutigen Bezeichner. Normalerweise nimmt man dafür die v v Name oder die Hwnd Hwnd Name Option. Das hast Du ja teilweise auch schon gemacht. Zum konkreten Skript: IniRead, SoftZuweisung, UserVerwaltung.ini, Settings, %Abteilungen...
by just me
29 Jul 2018, 06:00
Forum: Ich brauche Hilfe
Topic: Mehrere Objekte mit der Maus markieren
Replies: 24
Views: 877

Re: Mehrere Objekte mit der Maus markieren

Moin,

wie man in der Doku nachlesen kann, ist die Funktion StrReplace() mit 1.1.21.00 eingebaut worden. Das war immerhin Ende März 2015, ist also schon etwas her.
by just me
28 Jul 2018, 01:32
Forum: Scripts and Functions
Topic: [Class] ImageButton
Replies: 124
Views: 31568

Re: [Class] ImageButton

Neither the class nor the button control will add some 'highlighted incicator'. If you want it, you have to pass pictures already containing that border for button states 5 and 6.
by just me
26 Jul 2018, 05:21
Forum: Ich brauche Hilfe
Topic: Verständnisproblem mit: Pause,,1
Replies: 1
Views: 68

Re: Verständnisproblem mit: Pause,,1

Moin, wenn ich je wusste, dass Pause einen optionalen zweiten Parameter hat, habe ich das schnell wieder vergessen. Nach meinen Tests scheint es so, dass die "auto-execute section" nicht als Thread im Sinne der Erläuterungen zu Pause behandelt wird. Wenn Du die Anweisung in einen eigenen T...
by just me
19 Jul 2018, 05:04
Forum: Ask For Help
Topic: Allow negative numbers in edit with updown Topic is solved
Replies: 3
Views: 71

Re: Allow negative numbers in edit with updown Topic is solved

Not if you want the UpDown to update the Edit automatically.
by just me
19 Jul 2018, 04:48
Forum: Ask For Help
Topic: Parsing loop. Same line is repeated twice ?
Replies: 3
Views: 72

Re: Parsing loop. Same line is repeated twice ?

If the array elements already exist, the command will change the values of only the first N elements, where N is the number of substrings present in InputVar. Any elements beyond N that existed beforehand will be unchanged. Therefore, it is safest to use the zero element (MyArray0) to determine how...
by just me
19 Jul 2018, 02:02
Forum: Ask For Help
Topic: Allow negative numbers in edit with updown Topic is solved
Replies: 3
Views: 71

Re: Allow negative numbers in edit with updown Topic is solved

Did you ever try to enter a number like 9999 (which is far away from infinite) using only an UpDown control? It makes no sense.
by just me
19 Jul 2018, 01:45
Forum: Ich brauche Hilfe
Topic: alten Variablenwert vor neuem Scriptstart vergleichen
Replies: 3
Views: 92

Re: alten Variablenwert vor neuem Scriptstart vergleichen

Moin, ich habe den Eindruck, dass mit "Scriptstart" der Start der Verarbeitung eingegebener Daten per Gui-Button gemeint ist. Es geht also nur um den Vergleich der Eingaben innerhalb eines Skriptaufrufs. In diesem Fall brauchst Du nur eigene Variablen zum Ablegen der vorherigen Eingaben, w...
by just me
16 Jul 2018, 10:08
Forum: Ich brauche Hilfe
Topic: 2 Fragen zu FileselectFolder
Replies: 12
Views: 362

Re: 2 Fragen zu FileselectFolder

Moin, wenn Du die Auswahl auf die Root-Ebene eines Laufwerks beschränken willst, kannst Du einen 'Auswahldialog' recht einfach per Gui nachbilden: Vorhandene Ordner im Rootpfad einlesen und in ein Treeview-Control stellen, das Ganze mit ein wenig Text und einem Button für das Erstellen eines neuen O...
by just me
14 Jul 2018, 07:07
Forum: Ask For Help
Topic: Convert array to string Topic is solved
Replies: 7
Views: 154

Re: Convert array to string Topic is solved

Insert wrote:Deprecated: Insert is not recommended for use in new scripts. Use InsertAt, Push, ObjRawSet or a simple assignment instead.

BTW: A_LoopReadLine is only defined within a file-reading loop.
by just me
14 Jul 2018, 04:44
Forum: Ask For Help
Topic: Convert array to string Topic is solved
Replies: 7
Views: 154

Re: Convert array to string Topic is solved

Code: [Select all]GeSHi © Codebox Plus

#NoEnv
Array := []
Array.Push("Red")
Array.Push("Green")

Str := ""
For Index, Value In Array
Str .= "|" . Value
Str := LTrim(Str, "|") ; Remove leading pipes (|)
MsgBox, %Str%

?
by just me
14 Jul 2018, 04:02
Forum: Ask For Help
Topic: Convert array to string Topic is solved
Replies: 7
Views: 154

Re: Convert array to string Topic is solved

Code: [Select all]GeSHi © Codebox Plus

Str := ""
For Index, Value In Array
Str .= Value . "|"
Str := RTrim(Str, "|") ; remove the last pipe (|)
by just me
12 Jul 2018, 05:38
Forum: Ask For Help
Topic: Multiple treeview in one Gui
Replies: 3
Views: 100

Re: Multiple treeview in one Gui

All of the TreeView functions operate upon the current thread's default GUI window (which can be changed via Gui, 2:Default). If the default window does not exist or has no TreeView controls, all functions return zero to indicate the problem. If the window has more than one TreeView control, by def...
by just me
12 Jul 2018, 05:17
Forum: Scripts and Functions
Topic: [LIB] MDMF - Multiple Display Monitor Functions
Replies: 15
Views: 2715

Re: [LIB] MDMF - Multiple Display Monitor Functions

Hi iPhilip, it seems to be an AHK 32-bit issue, caused by Some limitations apply to which values can be used as keys in objects created with [], {} or the new operator: ⋅ Integer keys are stored using the native signed integer type. AutoHotkey 32-bit supports integer keys in the range -214...
by just me
11 Jul 2018, 11:20
Forum: Ask For Help
Topic: [Listview] _ Change rows position/number/index Topic is solved
Replies: 11
Views: 343

Re: [Listview] _ Change rows position/number/index Topic is solved

I don't see the problem, the function does what it has been told to do: ; InsertBefore - the number of the row to insert the moved row before If you move row 2 to row 10, a new row 10 will be inserted before the current row 10. After that row 2 will be deleted. So the inserted row 10 will become row...
by just me
11 Jul 2018, 06:11
Forum: Scripts and Functions
Topic: [LIB] MDMF - Multiple Display Monitor Functions
Replies: 15
Views: 2715

Re: [LIB] MDMF - Multiple Display Monitor Functions

Hi iPhilip,

what are the actual problems with 'negative values for the monitor handles'?
by just me
11 Jul 2018, 05:57
Forum: Ask For Help
Topic: [Listview] _ Change rows position/number/index Topic is solved
Replies: 11
Views: 343

Re: [Listview] _ Change rows position/number/index Topic is solved

; ================================================================================================================================ ; LV_MoveRow ; Moves a complete row within an own ListView control. ; HLV - the handle to the ListView ; RowNumber - the number of the row to be moved ; InsertBefore - ...

Go to advanced search