Search found 9428 matches
- Today, 04:42
- Forum: Ich brauche Hilfe
- Topic: Formatierte Signatur in Thunderbird
- Replies: 4
- Views: 165
Re: Formatierte Signatur in Thunderbird
Moin, ich habe das vor vielen Jahren auch mal probiert. Das Ergebnis war identisch. Anscheinend behalten die im Clipboard enthaltenen Daten hinsichtlich der Formatierung Abhängigkeiten von den Daten der Anwendung, aus der sie kopiert wurden. Dies Abhängigkeiten können später aus welchem Grund auch i...
- Today, 04:26
- Forum: Ich brauche Hilfe
- Topic: Abfragen in 1 Skript bündeln
- Replies: 7
- Views: 415
Re: Abfragen in 1 Skript bündeln
Moin, die Ausgabe zeigt, dass das Clipboard einen passenden Wert enthält, dieser Wert aber nicht in die Variable übernommen wurde. Von Deinem Skript ist nicht viel zu sehen. Wenn am Anfang des Skripts AnzahlZeilen := Clipboard steht, ... Wenn Du den Code mit einem Hotkey startest, muss die Zeile am ...
- Yesterday, 03:04
- Forum: Ask for Help (v1)
- Topic: Function only working when called from gui
- Replies: 3
- Views: 320
Re: Function only working when called from gui
I would avoid assume-global mode personally.Chunjee wrote:I would avoid superglobals personally
@bowie1123: Does your GUI have a name or a number other than 1?
- Yesterday, 02:33
- Forum: Ich brauche Hilfe
- Topic: Abfragen in 1 Skript bündeln
- Replies: 7
- Views: 415
Re: Abfragen in 1 Skript bündeln
Moin, ich habe kein Skript erstellt, ich habe nur Beispielcode geliefert. Wenn immer der Else-Zweig angesprungen wird, sind die anderen Bedingungen nicht erfüllt. Stell doch einfach mal eine MsgBox vor das erste If . MsgBox, >%Clipboard%< - >%AnzahlZeilen%< If AnzahlZeilen = 2 ; 2 Zeilen ... Dann we...
- Yesterday, 02:00
- Forum: Suggestions on Documentation Improvements
- Topic: OnMessage example doesn't support negative x, y coordinates
- Replies: 2
- Views: 537
Re: OnMessage example doesn't support negative x, y coordinates
Code: Select all
X := lParam << 48 >> 48
Y := lParam << 32 >> 48
- 04 May 2024, 03:35
- Forum: Ask for Help (v1)
- Topic: GDI_CaptureScreen to Clipboard
- Replies: 6
- Views: 609
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...
- 04 May 2024, 01:58
- Forum: Scripts and Functions (v2)
- Topic: [2024/05/06] ColorButton.ahk | An extended method that lets you customize gui button background colors.
- Replies: 10
- Views: 1000
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...
- 04 May 2024, 01:49
- Forum: Scripts and Functions (v2)
- Topic: [2024/05/06] ColorButton.ahk | An extended method that lets you customize gui button background colors.
- Replies: 10
- Views: 1000
Re: ColorButton.ahk | An extended method that lets you customize gui button background colors.
Hi @NPerovic, I tested. Result on Win 10:
Thanks for sharing this script. It never occurred to me that buttons support custom draw.
- 04 May 2024, 01:28
- Forum: Ich brauche Hilfe
- Topic: Abfragen in 1 Skript bündeln
- Replies: 7
- Views: 415
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...
- 03 May 2024, 02:54
- Forum: Ich brauche Hilfe
- Topic: Einrichten und Abfragen von Checkboxen
- Replies: 5
- Views: 283
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...
- 03 May 2024, 02:20
- Forum: Ich brauche Hilfe
- Topic: Behandlung von "Fehlern" bei der Skriptausführung in AHK V2 Topic is solved
- Replies: 4
- Views: 284
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...
- 03 May 2024, 01:44
- Forum: Ich brauche Hilfe
- Topic: Wie kann ich eine JSON-Datei rekursiv in AutoHotkey durchlaufen? Topic is solved
- Replies: 7
- Views: 614
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...
- 02 May 2024, 02:01
- Forum: Scripts and Functions (v2)
- Topic: [2024/05/06] ColorButton.ahk | An extended method that lets you customize gui button background colors.
- Replies: 10
- Views: 1000
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...
- 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: 614
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...
- 01 May 2024, 07:23
- Forum: Ich brauche Hilfe
- Topic: Hilfe bei disable Funktion
- Replies: 4
- Views: 349
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...
- 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: 614
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. ...
- 01 May 2024, 05:37
- Forum: Scripts and Functions (v2)
- Topic: Class ToolTipOptions - 2024-03-27
- Replies: 31
- Views: 4352
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...
- 30 Apr 2024, 04:34
- Forum: Ich brauche Hilfe
- Topic: Hilfe bei disable Funktion
- Replies: 4
- Views: 349
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...
- 30 Apr 2024, 02:49
- Forum: Scripts and Functions (v2)
- Topic: CreateImageButton() - 2024-01-01
- Replies: 50
- Views: 12809
Re: CreateImageButton() - 2024-01-01
I don't get the error.
- 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: 614
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...