Search found 195 matches

by lmstearn
27 May 2019, 09:25
Forum: Gaming
Topic: Prglnch: Yet Another Game Launcher
Replies: 5
Views: 5774

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

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

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

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

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

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: 380
Views: 90929

Re: Test your Forum Posts

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

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

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: 567
Views: 118857

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: 567
Views: 118857

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

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 268 times
by lmstearn
10 Apr 2019, 09:32
Forum: Scripts and Functions
Topic: Url Parser
Replies: 13
Views: 5182

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

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: 567
Views: 118857

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
by lmstearn
24 Mar 2019, 09:43
Forum: Ask For Help
Topic: Help with FileSelectFile check if contains space(s) Topic is solved
Replies: 4
Views: 291

Re: Help with FileSelectFile check if contains space(s) Topic is solved

if SelectedFile { FileRead, SelectedFileContents , %SelectedFile% if InStr(SelectedFile, ".lnk", False, StrLen(SelectedFile) - 4)) && !InStr(SelectedFileContents, %A_Space%) ; Proceed } Edit: Sorry, it should have been: if SelectedFile { FileRead, SelectedFileContents , %SelectedFile% if InStr(Sele...
by lmstearn
24 Mar 2019, 01:15
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 567
Views: 118857

Re: Suggestions on documentation improvements

As an enhancement, any commands on the main LH help treeview marked as deprecated (or for AutoIT scripts only) to have a different colour, or some other standout (e.g. strikethrough) attribute. Helpful for folks new to AHK who don't want too much of the history while browsing. Thanks. Edit: Exclusiv...
by lmstearn
18 Mar 2019, 09:15
Forum: Ask For Help
Topic: Try Catch & the Run Command Topic is solved
Replies: 4
Views: 254

Re: Try Catch & the Run Command Topic is solved

Hey glad you got in. Thanks! Edit: Further research revealed that running fodhelper.exe directly from script is (for most) not possible. Any errors thrown from launching it are not UAC related, and are more likely from Windows own internal redirection (make of what you will with ERROR_CANCELLED). In...
by lmstearn
18 Mar 2019, 09:07
Forum: Ask For Help
Topic: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?
Replies: 8
Views: 504

Re: Is there any code generator available for RegExReplace and RegExMatch in AutoHotKey?

Related: For getting acquainted with Regex, there's some paid programs in other languages that offer something. But there is a rather venerable AHK script looking for development & TLC: Tidbit's FindMe . Just a standard looking file search dialog when run, but it's the popup help from the little que...
by lmstearn
18 Mar 2019, 06:35
Forum: Ask For Help
Topic: Try Catch & the Run Command Topic is solved
Replies: 4
Views: 254

Re: Try Catch & the Run Command Topic is solved

Do you receive a numerical error code for yours? Sadly, not here.

Go to advanced search