Search found 200 matches

by lmstearn
Yesterday, 09:50
Forum: AutoHotkey v2 Development
Topic: conversion logic, v1 = -> v1 := -> v2, two-way compatibility
Replies: 138
Views: 38181

Re: conversion logic, v1 = -> v1 := -> v2, two-way compatibility

Back here, there is: SetFormat (use the Format function on individual items, versus a SetFormat mode on all subsequent items) Will Format ever possess the facility to set the format on all subsequent items, or will that functionality be lost? Or is there a directive alternative to SetFormat in the o...
by lmstearn
18 Jul 2019, 10:21
Forum: Tips and Tricks
Topic: jeeswg's object classes tutorial
Replies: 5
Views: 1869

Re: jeeswg's object classes tutorial

Bookmarked!
Spoiler
by lmstearn
30 Jun 2019, 10:43
Forum: Tutorials
Topic: AutoHotkey via DllCall: AutoHotkey functions as custom functions
Replies: 1
Views: 2255

Re: AutoHotkey via DllCall: AutoHotkey functions as custom functions

Thanks for the collection. Here's Coco's WinEnum script with annotations. Please correct if wrong: WinEnum(hwnd:=0, lParam:=0) ;// lParam (internal, used by callback) { static pWinEnum := "X" ; pWinEnum will be pointer to WinEnum ; Eventinfo parameter is omitted in the RegisterCallback function belo...
by lmstearn
28 Jun 2019, 09:25
Forum: Ask For Help
Topic: Problem determining whether a window is visible
Replies: 1
Views: 157

Re: Problem determining whether a window is visible

According to MSDN , every window has a visible region that defines the window portion visible to the user If it's possible to SetWindowRgn of a window to one pixel, that's about as invisible as it gets. All hidden windows are as good as invisible as they do not process draw or paint messages, GetWin...
by lmstearn
26 Jun 2019, 10:19
Forum: Gaming
Topic: Prglnch: Yet Another Game Launcher
Replies: 6
Views: 6062

Re: Prglnch: Yet Another Game Launcher

Version 2.1 up! Fixed selected Prgs in Batch Prg list. Fixed cursor location on Prg cancel. Fixed Properties & Splash postions on non-default monitor. Match Batched Prgs on init detect. Fixed certain Prgs not showing active on Preset select. "List all compatible" selections disabled. Fixed Lnch Pad ...
by lmstearn
27 May 2019, 09:25
Forum: Gaming
Topic: Prglnch: Yet Another Game Launcher
Replies: 6
Views: 6062

Re: Prglnch: Yet Another Game Launcher

Version 2.0 up! Removed bad variable assignments. Upgrade old ini files. Restart Admin on access error. Re-integration of Resolve Shortcuts. Handles Windows associations. Min-Normal-Max Window launched Prgs. Detect running Prgs on PrgLnch init. Introducing Lnch Pad Slots. GUI can be run from any mon...
by lmstearn
22 May 2019, 09:14
Forum: Scripts and Functions
Topic: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs
Replies: 19
Views: 2684

Re: DPI() - writing friendlier DPI-Aware AutoHotkey GUIs

Thanks for the article. The actual function for GetSystemMetrics is GetSystemMetricsForDpi for a multi-monitor setup: This function returns the same result as GetSystemMetrics but scales it according to an arbitrary DPI you provide if appropriate. Sounds like fun. A whole lot more DPI stuff is found...
by lmstearn
12 May 2019, 08:06
Forum: Scripts and Functions
Topic: [Archive] Collection of lost AHK Scripts & Libraries
Replies: 89
Views: 78529

Re: [Archive] Collection of lost AHK Scripts & Libraries

Anyone saved a copy of Oldman's Multi-Monitor management? Looks to be very interesting, but for the lost D/L link.
Thanks.
by lmstearn
11 May 2019, 00:50
Forum: Ask For Help
Topic: Progress Bar Alignment?
Replies: 3
Views: 474

Re: Progress Bar Alignment?

No issue with the NVIDIA driver. And now get evilC 's result when the borders are not factored in, which is all done by WinGetPos in any case. Gui, Add, Button, gShowProg, &Click to show Progress. Gui, Show WinGetPos, , ,W ,H , A SysGet, Mon, MonitorWorkArea Xr := MonRight - W Yb := MonBottom - H Gu...
by lmstearn
08 May 2019, 02:39
Forum: Ask For Help
Topic: GetKeyState for MouseUp
Replies: 2
Views: 207

Re: GetKeyState for MouseUp

Hey @just me that's right. It now shows as 0- something must have broke here, sorry. :facepalm:
by lmstearn
07 May 2019, 00:25
Forum: Ask For Help
Topic: GetKeyState for MouseUp
Replies: 2
Views: 207

GetKeyState for MouseUp

Onmessage(0x205,"WM_RBUTTONUP") GUI, new, +hwndGUI_hwnd Gui, Add, Button, x100 y100 gOk, OK WinMove, ahk_id%GUI_hwnd%, ,300 , 300, 200, 200 Gui show return WM_RBUTTONUP(wparam,Lparam,msg,GUI_hwnd) { Rstate := GetKeyState("RButton") msgbox % "Right MouseUp: Rstate " Rstate ExitAPP } Ok: ExitAPP It's...
by lmstearn
05 May 2019, 01:34
Forum: Offtopic
Topic: Test your Forum Posts
Replies: 381
Views: 94652

Re: Test your Forum Posts

Test post a piccy:
BlogComment.JPG
BlogComment.JPG (20.97 KiB) Viewed 910 times
by lmstearn
02 May 2019, 23:45
Forum: Ask For Help
Topic: Blank Document.ParentWindow
Replies: 2
Views: 176

Re: Blank Document.ParentWindow

Thanks. Apparently there's a distinction between the of the Parent property of the IHTMLWindow2 interface and the DOM Window parent Property , of which the hierarchy in frames is shown here : fraDocument := wb.document.parentWindow.frames[id/name/index].frames[id/name/index].frames[id/name/index].do...
by lmstearn
02 May 2019, 11:25
Forum: Ask For Help
Topic: Blank Document.ParentWindow
Replies: 2
Views: 176

Blank Document.ParentWindow

Hi there, Is it possible to ascertain the circumstances when the property ever contains an ID? The following code may not be a good repro- the interesting thing is if it is run as Admin, there is an E_FAIL ( 0x80004005) at the message box. Might be an access thing, although when opening a local ///f...
by lmstearn
29 Apr 2019, 23:58
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 573
Views: 124548

Re: Suggestions on documentation improvements

@lmstearn , The assignment itself looks similar in syntax to the associative array {key:value} , because that is exactly what it is. method is not a reserved word, you could name it banana and then call obj.banana() . Cheers. Ah okay, was reading from Associative arrays that: Keys can be strings, i...
by lmstearn
29 Apr 2019, 09:47
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 573
Views: 124548

Re: Suggestions on documentation improvements

Regarding the code for the second example in Functor <Snip> ; Create an array of functions. funcArray := new FuncArrayType ; Add some functions to the array (can be done at any point). funcArray.Push(Func("One")) funcArray.Push(Func("Two")) ; Create an object which uses the array as a method. obj :=...
by lmstearn
28 Apr 2019, 09:36
Forum: Scripts and Functions
Topic: Simple MSHTML wrapper (1.1.17+)
Replies: 6
Views: 1616

Re: Simple MSHTML wrapper (1.1.17+)

Thanks. :)
Used Coco's FixIE, there was no issue with the sizing.
Simple MSHTML Wrappe.JPG
Simple MSHTML Wrappe.JPG (16.22 KiB) Viewed 328 times
by lmstearn
10 Apr 2019, 09:32
Forum: Scripts and Functions
Topic: Url Parser
Replies: 13
Views: 5332

Re: Url Parser

If raining on this off-topic brain fried regex parade consider the following from the above linked Cookbook: You cannot create a regular expression that matches every valid URL without matching any invalid URLs. The reason is that pretty much anything could be a valid URL in some as of yet uninvente...
by lmstearn
10 Apr 2019, 05:34
Forum: Scripts and Functions
Topic: Url Parser
Replies: 13
Views: 5332

Re: Url Parser

Thanks. There are a variety of regex validation parsers on offer, but will there ever be one to rule them all? In addition to @GeekDude's, this one for absolute URIs comes close, but what's the performance cost? /^[a-z](?:[-a-z0-9\+\.])*:(?:\/\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\._~\x{A0}-\x{D7FF}\x{F...
by lmstearn
09 Apr 2019, 01:34
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 573
Views: 124548

Re: Suggestions on documentation improvements

Regarding the code for RunAs the param for restart is also /r
Does the code want something like this instead,

Code: Select all

if not RegExMatch(full_command_line, " /r(?!\S)"))
or is the existing help snippet sufficient?
Thanks

Go to advanced search