Search found 183 matches

by lmstearn
10 Apr 2019, 09:32
Forum: Scripts and Functions
Topic: Url Parser
Replies: 13
Views: 4883

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

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: 548
Views: 109812

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

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: 548
Views: 109812

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.
by lmstearn
18 Mar 2019, 09:15
Forum: Ask For Help
Topic: Try Catch & the Run Command Topic is solved
Replies: 4
Views: 176

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

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

Re: Try Catch & the Run Command Topic is solved

Do you receive a numerical error code for yours? Sadly, not here.
by lmstearn
18 Mar 2019, 05:23
Forum: Ask For Help
Topic: Try Catch & the Run Command Topic is solved
Replies: 4
Views: 176

Try Catch & the Run Command Topic is solved

Hi there, For V2 it's planned to scrap the ErrorLevel thus: Run and RunWait no longer recognize the UseErrorLevel option. Use try/catch instead. A_LastError is set unconditionally, and can be inspected after an exception is caught/suppressed. RunWait returns the exit code. ErrorLevel is not set. In ...
by lmstearn
17 Mar 2019, 08:32
Forum: Offtopic
Topic: too many programming languages?
Replies: 15
Views: 1038

Re: too many programming languages?

Looking at that list, RPG looked like a fun language. Report Program Generator Oh well Assemblers like MASM provide a challenge for certain tasks, especially if wanting to get close & personal with drivers for H/W. Objective-C was another with the potential to rule them all, on account of its adapta...
by lmstearn
15 Mar 2019, 23:50
Forum: Ask For Help
Topic: Using PixelSearch to identify all possible entities on screen (MMORPG Bot)
Replies: 2
Views: 137

Re: Using PixelSearch to identify all possible entities on screen (MMORPG Bot)

Hi @sh00ter666, The above link is broken, unfortunately. Is it possible to include the image via attachment? One thing of benefit in these types of searches is a criteria on how far the targets are separated from each other. If a target object can be at least M X M pixels in size, then skip M units ...
by lmstearn
08 Mar 2019, 22:00
Forum: AutoHotkey v2 Development
Topic: [Wish] PrintArray / ArrayDisplay (gui)
Replies: 15
Views: 3984

Re: [Wish] PrintArray / ArrayDisplay (gui)

Perhaps a function just to dump the entire array as a string- separators and all?
Handy when dealing with value fields in ini files, for example.
Although in this case, SO has a quick solution, so not a major drama.
by lmstearn
07 Mar 2019, 08:19
Forum: Bug Reports
Topic: Wrong true value of reference variable
Replies: 20
Views: 968

Re: Wrong true value of reference variable

From https://autohotkey.com/docs/Variables.htm#Operators The == operator behaves identically to = except when either of the inputs is not a number, in which case == is always case sensitive and = is always case insensitive The % operator of a single (or first) if argument is always a variable refere...
by lmstearn
03 Mar 2019, 07:32
Forum: Bug Reports
Topic: FileSelectFile & Shortcuts & Windows 10
Replies: 0
Views: 198

FileSelectFile & Shortcuts & Windows 10

Hi there, Not a bug report, but more of an observation on the way the Shell handles the file dialogs in the latest editions of Windows: Create a shortcut to Notepad: as per attached: Notepad_Lnk.7z FileSelectFile, OutputVar, 3,, Open a file`, Shortcuts resolved, (*.exe; *.bat; *.com; *.cmd; *.pif; *...
by lmstearn
28 Feb 2019, 09:07
Forum: Ask For Help
Topic: Program Pause! - GUI layout
Replies: 4
Views: 199

Re: Program Pause! - GUI layout

Where there is ExitApp, replace it with:
Return
:)
by lmstearn
27 Feb 2019, 10:34
Forum: Ask For Help
Topic: Program Pause! - GUI layout
Replies: 4
Views: 199

Re: Program Pause! - GUI layout

One way to pause the program is just to show another gui form with the hide option. Bind the F10 & F11 keys to that to continue execution.
Not sure about the colour,- but there's always Skan's HTML DialogBox v0.51:
https://autohotkey.com/board/topic/55754-crazy-scripting-html-dialogbox-v051/
by lmstearn
27 Feb 2019, 10:10
Forum: Other Programming Languages
Topic: Excel VBA Macro
Replies: 3
Views: 355

Re: Excel VBA Macro

You might be able to do it with the OnError Statement.
Placing it within the loop with Resume Next might not be best practise, as it's possible when more than one error is handled in the same module, the compiler will jump out of it altogether. VBA might be friendly, however. :)
by lmstearn
18 Feb 2019, 00:27
Forum: C/C++
Topic: AutoHotkey C++ Powerhouse: Introduction
Replies: 7
Views: 1162

Re: AutoHotkey C++ Powerhouse: Introduction

Thanks for the links & info. :) Just a heads up in loading the source code, the installed toolset may not be the latest, e.g.: https://stackoverflow.com/questions/50750024/visual-studio-2017-build-tools-150 Same, if fresh out of the Windows 8.1 SDK: https://stackoverflow.com/questions/43704734/how-t...
by lmstearn
20 Jan 2019, 10:32
Forum: Other Utilities & Resources
Topic: [Tool] Windows Kernel Explorer
Replies: 2
Views: 514

Re: [Tool] Windows Kernel Explorer

Axt will want to put up a paragraph about Win 1809's Defender false positive. Defender can be rather obtrusive, as it now wants to reboot to take action, and the file has not even been executed. Although it might have logged that this user previously attempted to execute what was a file chunk gotten...
by lmstearn
25 Dec 2018, 08:05
Forum: Ask For Help
Topic: Method to check if file changed?
Replies: 1
Views: 203

Re: Method to check if file changed?

Chrome won't update until it's restarted, so the most straight forward approach is to set up a "batch" styled script to launch the browser, followed by the (re-)application of the reg. edits from the same script a few seconds later.

Go to advanced search