Search found 9419 matches

by just me
Today, 02:54
Forum: Ich brauche Hilfe
Topic: Einrichten und Abfragen von Checkboxen
Replies: 5
Views: 204

Re: Einrichten und Abfragen von Checkboxen

Moin, 2.) Der jetzige Code setzt zwar den Bestandsnamen (AktSign) vor einen Dateinamen, macht also aus einem Bild 20_90.jpg z.B. bei Vorlage A 123--4_0000_000 das Bild A 123--4_20_90.jpg, füllt aber die Nullen nicht auf, wenn ich das Häkchen in die Checkbox setze, also nicht korrekt A 123--4_ 20_090...
by just me
Today, 02:20
Forum: Ich brauche Hilfe
Topic: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved
Replies: 4
Views: 198

Re: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved

Moin, v2 bringt die Funktion OnError() . Damit kann man eine zentrale Fehlerbehandlungsroutine bestimmen. Wenn diese Routine den Wert -1 zurückgibt, wird das Skript ohne Fehlermeldung fortgesetzt, wenn AHK meint, dass das möglich ist. Mit der 'schönen neuen kurzen' Schreibweise ( Fat-Arrow-Funktione...
by just me
Today, 01:44
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 480

Re: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved

Moin, die Syntax für Maps entspricht der vorhandenen. Wenn Du allerdings mit JsonToAhk(json, objIsMap := false, _rec) 'reine' Objekte erstellen lässt, brauchst Du zum Parsen: For Key In Obj.OwnProps { Value := Obj.%Key% ... } Außerdem muss man bei Arrays ( If Type(Obj) = "Array" ) beachten, dass das...
by just me
Yesterday, 02:01
Forum: Scripts and Functions (v2)
Topic: ColorButton.ahk | An extended method that lets you customize gui button background colors.
Replies: 3
Views: 390

Re: ColorButton.ahk | An extended method that lets you customize gui button background colors.

Moin, running the code embedded in your v2.0 script with v2.0.13 on Win 10 myGui := Gui() myGui.SetFont("cWhite s24", "Segoe UI") myGui.BackColor := 0x2c2c2c btn := myGui.AddButton(, "SUPREME") btn.SetBackColor(0xaa2031) btn2 := myGui.AddButton(, "SUPREME") btn2.SetBackColor(0xffd155) myGui.Show("w3...
by just me
Yesterday, 01:24
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 480

Re: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved

Moin, der Vorteil besteht für mich darin, dass teadrinker das eigentliche Parsen des JSON-Strings der dafür vorgesehenen JavaScript-Engine des IE überlässt. Das ist zugleich auch der Nachteil. Microsoft kann diese Möglichkeit jederzeit in einer neuen Systemversion abschalten. cocobelgica versucht da...
by just me
01 May 2024, 07:23
Forum: Ich brauche Hilfe
Topic: Hilfe bei disable Funktion
Replies: 4
Views: 268

Re: Hilfe bei disable Funktion

Moin, ein nicht getestetes Beispiel: #Requires AutoHotkey v1.1.34 #NoEnv F5:: SetTimer, Blocker, -1500 Send, {4 down} Sleep, 100 Send, {4 up} Return Blocker: Suspend, On ; Hotkeys blockieren ;----------------------------- BlockInput, MouseMove Sleep, 100 Send, {E down} Sleep, 100 MouseMove, 830, 500...
by just me
01 May 2024, 05:55
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 480

Re: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved

Es haben sich zwei kleine Flüchtigkeitsfehler im Code eingeschlichen. Ja, das passiert mir immer wieder wenn ich beim posten den Code noch ändere. In diesem Fall habe ich den Funktionen unterschiedliche Namen gegeben, leider nicht überall! Der andere Fehler ist ein Überbleibsel aus meinem v1 Test. ...
by just me
01 May 2024, 05:37
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 31
Views: 4163

Re: Class ToolTipOptions - 2024-03-27

Hi @Bobak, you didn't create a new topic in "Ask for Help" for your question, so you cannot mark anything as solved. ;) Would you please test the following: ; ====================================================================================================================== ; ToolTipOptions - add...
by just me
30 Apr 2024, 04:34
Forum: Ich brauche Hilfe
Topic: Hilfe bei disable Funktion
Replies: 4
Views: 268

Re: Hilfe bei disable Funktion

Moin, mir musst Du noch etwas detaillierter erklären, was Du 'disablen' willst. In Deinem Beispiel ist der Hotkey F5 standardmäßig 'blockiert', solange seine Routine läuft. Die Variable disabler ist überflüssig, wenn Du nicht über die Ausführungszeit hinaus 'blockieren' willst. Du müsstest etwas tun...
by just me
30 Apr 2024, 02:49
Forum: Scripts and Functions (v2)
Topic: CreateImageButton() - 2024-01-01
Replies: 50
Views: 12597

Re: CreateImageButton() - 2024-01-01

I don't get the error. :roll:
by just me
30 Apr 2024, 02:34
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 480

Re: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved

Moin, ich bin mir nicht sicher, was genau Du willst, aber hier sind zwei (vielleicht) passende Beispiele (AHK v2): ParseObj1(Obj, Indent := "") { Out := "" For Key, Value In Obj { If IsObject(Value) { Out .= Indent . Key . " = *" . "`r`n" Out .= ParseObj(Value, Indent . " ") } Else Out .= Indent . K...
by just me
29 Apr 2024, 03:06
Forum: Forum Issues
Topic: AHK Docs link Topic is solved
Replies: 1
Views: 209

AHK Docs link Topic is solved

"AutoHotkey v2 Help" loads 2.0.12. It should be 2.0.13.
by just me
27 Apr 2024, 03:31
Forum: Ask for Help (v1)
Topic: The same variable cannot be used for more then one control
Replies: 13
Views: 635

Re: The same variable cannot be used for more then one control

Moin DataLife , I agree with mikeyww . The error will most probably occur when the ShowGui label continues with creating controls after being interrupted by a second call which already created the GUI. In this case my suggestion will also not work. You can try to add Critical at the top of the subro...
by just me
27 Apr 2024, 02:03
Forum: Forum Issues
Topic: Slow forum
Replies: 111
Views: 10681

Re: Slow forum

The forums are (still) rather slow here.
@tank & @joedf
Would you please provide some information about what's causing the problems?
by just me
25 Apr 2024, 06:50
Forum: Forum Issues
Topic: Slow forum
Replies: 111
Views: 10681

Re: Slow forum

Again!
by just me
25 Apr 2024, 04:12
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 31
Views: 4163

Re: Class ToolTipOptions - 2024-03-27

Bobak wrote:... but it gives a lot of unnecessary blinking.
If you need to update the options of existing ToolTip controls frequently, you should consider whether a ToolTip is the best solution for the task.
by just me
25 Apr 2024, 02:42
Forum: Ask for Help (v1)
Topic: The same variable cannot be used for more then one control
Replies: 13
Views: 635

Re: The same variable cannot be used for more then one control

Moin DataLife , one 'special' AHK v1 option to solve this special problem without using a window ID/HWND: ShowGui: Gui 1:+LastFoundExist IfWinExist { WinActivate return } ;this is a sample gui Gui 1: Add, Radio, vAssociatedVariable1, 1st Sample Radio button Gui 1: Add, Radio, vAssociatedVariable2, 2...
by just me
25 Apr 2024, 02:03
Forum: Ich brauche Hilfe
Topic: Einrichten und Abfragen von Checkboxen
Replies: 5
Views: 204

Re: Einrichten und Abfragen von Checkboxen

Moin, leider lässt sich der Ablauf mit den eingestellten Skriptteilen nicht komplett verfolgen. Aber immerhin: GuiSpeichern: ; Auslesen der Checkboxen und erstellen der neuen Vorschau If (CheckNullenSign = 1) VorschauSign := Format("{:0" . StellenSign . "}", 1) else VorschauSign := "1" If (CheckNull...
by just me
24 Apr 2024, 11:14
Forum: Scripts and Functions (v2)
Topic: Class ToolTipOptions - 2024-03-27
Replies: 31
Views: 4163

Re: Class ToolTipOptions - 2024-03-27

Bobak : How to use: You must call ToolTipOptions.Init() to initialize the subclassing before you can set options. Now you can call any of the other methods to set the options you want to be used by newly created tooltips. You'll find the descriptions within the class code. All changes will be appli...

Go to advanced search