Search found 5778 matches

by just me
Today, 06:46
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 110

Re: Clipboard working but ClipboardAll not working?

I'm not sure whether this can be called a bug. The ability to pass a ClipboardAll variable to y function by value was added with AHK v1.0.46.
by just me
Today, 05:48
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 110

Re: Clipboard working but ClipboardAll not working?

Hi, ClipboardAll variables are marked as "binary" internally. AHK needs this information to restore the clipboard's content properly. It might be that this information gets lost when you return the contents of such a variable from a function. Does the following work for you? #NoEnv ClipPrior := "(pr...
by just me
Today, 03:39
Forum: Ask For Help
Topic: Compactibility problem
Replies: 4
Views: 82

Re: Compactibility problem

Should I compile the file on the 2nd computer with 32bits?
Indeed!
by just me
Today, 02:58
Forum: Ask For Help
Topic: Line limit in an edit box?
Replies: 3
Views: 73

Re: Line limit in an edit box?

#NoEnv ; docs.microsoft.com/en-us/windows/desktop/Controls/about-edit-controls#scrolling-styles ; ES_AUTOHSCROLL = 0x80, ES_AUTOVSCROLL = 0x40 Gui, Add, Edit, W400 r10 -VScroll -0x40 ; Gui, Add, Edit, w400 r10 -HScroll -VScroll -0xC0 ; if the above doen't work for you Gui, Show, , 10 Lines Edit Ret...
by just me
Yesterday, 22:59
Forum: Ask For Help
Topic: Gui WM_MOUSEMOVE control hwnd not detected until gLabel is attributed to control? Topic is solved
Replies: 2
Views: 63

Re: Gui WM_MOUSEMOVE control hwnd not detected until gLabel is attributed to control? Topic is solved

Hello,

add the SS_NOTIFY style +0x0100. That's done automatically if you specify a g-label.
A static control that has the SS_NOTIFY style receives mouse input, notifying the parent window when the user clicks or double clicks the control.

About Static Controls
by just me
Yesterday, 06:46
Forum: Ich brauche Hilfe
Topic: FileSetTime - Fehler oder normal?
Replies: 4
Views: 66

Re: FileSetTime - Fehler oder normal?

Moin Gucky,

ich finde die Idee an sich gut. Irgendjemand müsste allerdings lexikos (oder wer vielleicht sonst die AHK-Sourcen betreut) davon überzeugen, dass das ein Bug ist der korrigiert werden sollte, weil die Korrektur vorhandene Skripte nicht stört.
by just me
19 Feb 2019, 03:49
Forum: Ask For Help
Topic: regex question Topic is solved
Replies: 6
Views: 119

Re: regex question Topic is solved

AlphaBravo wrote:
18 Feb 2019, 21:41

Code: Select all

...
... ; \w = alpha-numeric
...
Not quite.
RegEx - Quick Reference wrote:\w ... This is equivalent to [a-zA-Z0-9_]. ...
by just me
18 Feb 2019, 09:06
Forum: Ich brauche Hilfe
Topic: MButton mit Shift & MButton vertauschen Topic is solved
Replies: 7
Views: 142

Re: MButton mit Shift & MButton vertauschen Topic is solved

Ich habe mich bisher nur wenig mit Hotkeys beschäftigt, wenn ich sie unbedingt für einfache Ablaufsteuerungen brauchte. Ich kann Dir deshalb leider nicht helfen.
by just me
18 Feb 2019, 09:02
Forum: Scripts and Functions
Topic: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)
Replies: 18
Views: 4267

Re: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)

Hi, AHK registers its own window classes. The class for AHK Gui windows is AutoHotkeyGUI . You can assign some predefines styles to window classes: Window Class Styles . This styles can be retrieved by GetClassLong(Ptr)() or GetClassInfo() . If you call one of this functions you'll find that AHK set...
by just me
18 Feb 2019, 05:43
Forum: Scripts and Functions
Topic: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)
Replies: 18
Views: 4267

Re: FrameShadow(): Drop Shadow On Borderless Window, (DWM STYLE)

#NoEnv CS_DROPSHADOW := 0x00020000 ClassStyle := GetGuiClassStyle() Gui, New, +hwndHGUI SetGuiClassStyle(HGUI, ClassStyle | CS_DROPSHADOW) Gui, Show, x100 y100 w250 h200, Test 1 SetGuiClassStyle(HGUI, ClassStyle) Gui, New Gui, Show, x400 y100 w250 h200, Test 2 Gui, New, +hwndHGUI SetGuiClassStyle(H...
by just me
18 Feb 2019, 04:11
Forum: Ich brauche Hilfe
Topic: MButton mit Shift & MButton vertauschen Topic is solved
Replies: 7
Views: 142

Re: MButton mit Shift & MButton vertauschen Topic is solved

Moin,

das allein stehende #IF beendet die bedingte Ausführung von Hotfkeys.
by just me
18 Feb 2019, 03:36
Forum: Ask For Help
Topic: Omitting WinTitle in WinGet
Replies: 2
Views: 44

Re: Omitting WinTitle in WinGet

WinActive() wrote:If the function or command determines that the active window is a qualified match, the Last Found Window will be updated to be the active window. In other words, if WinActive or IfWinActive evaluates to true or IfWinNotActive evaluates to false, the Last Found Window will be updated.

Source
by just me
18 Feb 2019, 02:46
Forum: Ask For Help
Topic: AHK GUI Edit Control vertical centering?
Replies: 7
Views: 181

Re: AHK GUI Edit Control vertical centering?

teadrinker wrote:
18 Feb 2019, 02:03
It seems that the same could be made easier:
It does not work if the edit control can show more than one complete line for the given font size. For example, change the font size to s12 or less.
I noticed that this time while testing.
by just me
17 Feb 2019, 06:12
Forum: Ask For Help
Topic: Trouble with Nested IFWinExist commands Topic is solved
Replies: 11
Views: 213

Re: Trouble with Nested IFWinExist commands Topic is solved

You're short of a few commas. For a one-liner it should be:- IfWinNotActive, Macro Monster - Excel,,,, WinActivate, Macro Monster - Excel No, it's correct. Note : Due to backward compatibility, IfWin[Not]Active interpret this parameter as a command if it exactly matches the name of a command. To wo...
by just me
17 Feb 2019, 06:01
Forum: Ask For Help
Topic: AHK GUI Edit Control vertical centering?
Replies: 7
Views: 181

Re: AHK GUI Edit Control vertical centering?

Another kind of workaround: #NoEnv Gui, Font, s16 ; Required options: +hwnd... +Multi -VScroll -WantReturn -0x40 (ES_AUTOVSCROLL) Gui, Add, Edit, x10 y10 w200 h50 Center +hwndHEDIT +Multi -VScroll -WantReturn -0x40, Data ; +Limit5 Edit_VCENTER(HEDIT) Gui, Show, w220 h80, Gui Test Return GuiClose: Ex...
by just me
17 Feb 2019, 03:00
Forum: Ask For Help
Topic: Script Performance
Replies: 10
Views: 294

Re: Script Performance

SSD vs. HDD?
by just me
16 Feb 2019, 06:08
Forum: Scripts and Functions
Topic: CNG (Cryptography API: Next Generation)
Replies: 39
Views: 8728

Re: CNG (Cryptography API: Next Generation)

? #NoEnv MsgBox % bcrypt_sha256_filepart("C:\Windows\notepad.exe") ExitApp bcrypt_sha256_filepart(filename, offset := 0, length := -1) { static BCRYPT_SHA256_ALGORITHM := "SHA256" static BCRYPT_OBJECT_LENGTH := "ObjectLength" static BCRYPT_HASH_LENGTH := "HashDigestLength" if !(hBCRYPT := DllCall("L...
by just me
15 Feb 2019, 05:39
Forum: Ask For Help
Topic: Format XML - Remove node based on element
Replies: 7
Views: 154

Re: Format XML - Remove node based on element

<id> is a childnode and not an attribute (in this case). ; ================================================================================================================================ ; XPATH syntax -> msdn.microsoft.com/en-us/library/ms256471(v=vs.110).aspx ; XML node class -> msdn.microsoft.c...
by just me
15 Feb 2019, 04:06
Forum: Ich brauche Hilfe
Topic: Optimierung Umbenennungstool
Replies: 36
Views: 1178

Re: Optimierung Umbenennungstool

Moin, vielleicht denke ich ausnahmsweise mal etwas zu einfach. Die 'Vorgabendatei' ist für mich eine einfache Textdatei, die in jeder Zeile drei durch Tab getrennte 'Felder' enthält: Das erste Feld enthält einen 'Bestandsnamen' und kann in der Datei nur genau einmal vorkommen. Das zweite Feld anthäl...
by just me
15 Feb 2019, 02:46
Forum: Ich brauche Hilfe
Topic: Demo AHK Script erweitern
Replies: 5
Views: 206

Re: Demo AHK Script erweitern

Moin!

Code: Select all

	  try
		Menu %first%, Icon, %A_Index%&, HICON:%HICON%
A_Index zählt über alle Dateien. %A_Index%& muss aber ein Index innerhalb eines Submenüs sein. Es wäre hier einfacher, anstelle des Index auch %A_LoopFileName% zu verwenden.

Go to advanced search