Search found 9423 matches

by just me
Today, 03:35
Forum: Ask for Help (v1)
Topic: GDI_CaptureScreen to Clipboard
Replies: 4
Views: 364

Re: GDI_CaptureScreen to Clipboard

ShatterCoder & noname , you're posting ancient AHK v1.0 code only running on 32-bit AHK. GEOVAN , same for you. The following might do what you want: #Requires AutoHotkey v1.1.34 #NoEnv F2:: ; get FullScreen Screenshot and and load it to clipboard Clipboard := ; Clear the clipboard GDI_CaptureScree...
by just me
Today, 01:58
Forum: Scripts and Functions (v2)
Topic: ColorButton.ahk | An extended method that lets you customize gui button background colors.
Replies: 5
Views: 576

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

BTW: class NMCUSTOMDRAWINFO { static Call(ptr) { return { hdr: { hwndFrom: NumGet(ptr, 0 ,"uptr"), idFrom : NumGet(ptr, 8 ,"uptr"), code : NumGet(ptr, 16 ,"int") }, dwDrawStage: NumGet(ptr, 24, "uint"), hdc : NumGet(ptr, 32, "uptr"), rc : RECT( NumGet(ptr, 40, "uint"), NumGet(ptr, 44, "uint"), NumGe...
by just me
Today, 01:49
Forum: Scripts and Functions (v2)
Topic: ColorButton.ahk | An extended method that lets you customize gui button background colors.
Replies: 5
Views: 576

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

Hi @NPerovic, I tested. Result on Win 10:
Zwischenablage01.png
Zwischenablage01.png (10.13 KiB) Viewed 148 times
Thanks for sharing this script. It never occurred to me that buttons support custom draw.
by just me
Today, 01:28
Forum: Ich brauche Hilfe
Topic: Abfragen in 1 Skript bündeln
Replies: 2
Views: 148

Re: Abfragen in 1 Skript bündeln

Moin, ich weiß nicht, ob ich das richtig verstehe. Vielleicht AnzahlZeilen := Clipboard ;... Sleep, 300 MouseMove %x%, %y% Sleep, 200 MouseGetPos x, y ; 3 Zeilen nach unten zum nächsten Betrag Sleep, 200 MouseClick, left, 1914, 1071 Sleep, 200 MouseMove %x%, %y% Sleep, 200 If AnzahlZeilen = 2 ; 2 Ze...
by just me
Yesterday, 02:54
Forum: Ich brauche Hilfe
Topic: Einrichten und Abfragen von Checkboxen
Replies: 5
Views: 229

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
Yesterday, 02:20
Forum: Ich brauche Hilfe
Topic: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved
Replies: 4
Views: 230

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
Yesterday, 01:44
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 521

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
02 May 2024, 02:01
Forum: Scripts and Functions (v2)
Topic: ColorButton.ahk | An extended method that lets you customize gui button background colors.
Replies: 5
Views: 576

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
02 May 2024, 01:24
Forum: Ich brauche Hilfe
Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
Replies: 7
Views: 521

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: 303

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: 521

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: 4193

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: 303

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: 12642

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: 521

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: 221

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: 658

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: 10811

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: 10811

Re: Slow forum

Again!

Go to advanced search