Search found 265 matches

by lmstearn
23 Jan 2020, 10:44
Forum: Ask For Help
Topic: Shutdown if idle
Replies: 1
Views: 77

Re: Shutdown if idle

Hi @hannahelappin: :) This thread may be of some use for the first question, at least for hibernation. For shutdown, there's Shutdown which includes all the options including hibernate. The second, well, there's this thread that may help as well. And for this, also consider using A_Tickcount: The nu...
by lmstearn
20 Jan 2020, 08:09
Forum: Tutorials
Topic: jeeswg's dates tutorial
Replies: 1
Views: 1945

Re: jeeswg's dates tutorial

MAKELANGID wants locale names from GetLocaleinfoEx now. Excerpt from winnt.h: #define MAKELANGID(p, s) ((((WORD )(s)) << 10) | (WORD )(p)) #define PRIMARYLANGID(lgid) ((WORD )(lgid) & 0x3ff) #define SUBLANGID(lgid) ((WORD )(lgid) >> 10) // // ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED *...
by lmstearn
19 Jan 2020, 22:36
Forum: Suggestions on documentation improvements
Topic: uninitialized
Replies: 8
Views: 411

Re: uninitialized

I agree, notwithstanding many of the high quality descriptions in Variables & Expressions, there is too much content compared to the others. Perhaps we could even have something like separate topics for Variables, Expression, and The Use of Variables in Expressions . joefiesta , why not a new thread...
by lmstearn
18 Jan 2020, 22:36
Forum: Suggestions on documentation improvements
Topic: uninitialized
Replies: 8
Views: 411

Re: uninitialized

As a matter of interest, here's an early Google search for Americanisation , and one for Americanization . The English one has the earliest reference viz "re-Americanisation" found in the Edinburgh review (1830), the earliest for American "z" version is for 1835. Best not to take that as too reliabl...
by lmstearn
16 Jan 2020, 21:44
Forum: Ask For Help
Topic: FileObject.Read() missing data? Topic is solved
Replies: 5
Views: 164

Re: FileObject.Read() missing data? Topic is solved

Hi @TheArkive! :)
STDOUT is a pipe which limits the options some:
Seek, Tell and Length should not be used if Filename is a handle to a nonseeking device such as a pipe or a communications device.
Any luck with RawRead?
by lmstearn
16 Jan 2020, 21:21
Forum: Wish List
Topic: early exit from #Warn loadtime error messages
Replies: 2
Views: 1949

Re: early exit from #Warn loadtime error messages

Doesn't this do anything?

Code: Select all

#Warn, LocalSameAsGlobal,  Off
Recommended use is for a debugger:

Code: Select all

#Warn All, OutputDebug
#Warn, LocalSameAsGlobal,  Off
by lmstearn
15 Jan 2020, 03:06
Forum: Ask For Help
Topic: Confusing Mp3tag script
Replies: 4
Views: 201

Re: Confusing Mp3tag script

In the first script, after WinWaitActive, writing tag data try replacing

Code: Select all

Send, {ENTER}
with

Code: Select all

If (WinExist(ahk_class #32770)
WinClose, ahk_class #32770 
It should work provided there are no other active messagebox dialogs in the system.
by lmstearn
14 Jan 2020, 07:14
Forum: Ask For Help
Topic: Confusing Mp3tag script
Replies: 4
Views: 201

Re: Confusing Mp3tag script

Hi @seamoon, :)
We might suppose Mp3tag shows the title "writing tag data" while it's writing. The second script doesn't check for that.
by lmstearn
14 Jan 2020, 07:03
Forum: Ask For Help
Topic: Rename Most Recent File in a Folder? Topic is solved
Replies: 1
Views: 109

Re: Rename Most Recent File in a Folder? Topic is solved

Hi 3ggg :) Try this: FileSelectFolder, Folder if (Folder){ NewFileName := "newfilename.csv" Time := 0 Folder := RegExReplace(Folder, "\\$") ; sanity Loop, Files, %Folder%\*.* If ( A_LoopFileTimeModified >= Time ){ Time := A_LoopFileTimeModified File := A_LoopFilePath } FileMove,%File%,%Folder%\%NewF...
by lmstearn
11 Jan 2020, 06:55
Forum: Suggestions on documentation improvements
Topic: Mini Suggestions
Replies: 1
Views: 113

Mini Suggestions

Here's a proposal for a thread handling small (one-line max) requests/suggestions mainly directed to terminology, punctuation, cross links and the like. In a nutshell, not enough in the item for a new thread. Here's one: The words "built-in" in this section of Funcs might want to be cross-linked ove...
by lmstearn
08 Jan 2020, 05:18
Forum: Bug Reports
Topic: FileGetShortcut and Universal Apps Shurtcuts
Replies: 1
Views: 438

Re: FileGetShortcut and Universal Apps Shurtcuts

Hi there @andy2020,
FileGetShortcut is an older function which only resolves (.lnk) shortcut files. Filesystem functions for symbolic links such as UWP apps are listed here.
More for the Ask for Help section, there's an interesting (non ahk) app which handles symlinks.
by lmstearn
29 Dec 2019, 07:46
Forum: Gaming
Topic: Prglnch: Yet Another Game Launcher
Replies: 7
Views: 8492

Re: Prglnch: Yet Another Game Launcher

It looked like there was enough for version 3.0, but no, there had to be a tutu version first:
Spoiler
OP updated on the details.
by lmstearn
27 Dec 2019, 01:07
Forum: Scripts and Functions
Topic: GUI Font Tool
Replies: 3
Views: 1321

Re: GUI Font Tool

Thanks for the script. :) Bit out of left field so here goes: when one is presented with the option of a font, would his choice be affected if he knew it was already used by the system? Here's a standalone script which covers two defaults, there may be a number more (untested for non-default- sry): ...
by lmstearn
21 Dec 2019, 08:10
Forum: About This Community
Topic: Paranoia: Compromised Password?
Replies: 2
Views: 423

Paranoia: Compromised Password?

As soon as logged today in AHK in there was a new popup tab in Chrome with: Password Checkup.JPG "Password Checker" is now bundled into Chrome , so these types of alerts might become more common place. In my case it seems, there is more than enough to be concerned about, especially if it is leading ...
by lmstearn
17 Dec 2019, 07:27
Forum: Bug Reports
Topic: Disabling/enabling menu bar item - BackgroundTrans
Replies: 3
Views: 309

Re: Disabling/enabling menu bar item - BackgroundTrans

W10 Home 1.1.32.00 (32-bit) 1440 X 900. Tried a bigger font: s20- not too much of a discernible difference in the quality of font, but the purplish tinge becomes apparent in the "in" of testing. Tried s8, the font rendering gets blurry. Turning off cleartype, the colour at s20 has gone, but the "es"...
by lmstearn
16 Dec 2019, 22:59
Forum: Ask For Help
Topic: Getting a list of Universal Applications installed on a system
Replies: 6
Views: 1418

Re: Getting a list of Universal Applications installed on a system

In listing them as with Shell:AppsFolder or explorer.exe shell:::{4234d49b-0245-4df3-B780-3893943456e1} , the answer lies in Appmodel.h . And there's some C++ pseudo code from this SO post to get started with: FOREACH p IN PackageManager.FindPackagesForUserWithPackageTypes(null, PackageType_Main|Pac...
by lmstearn
14 Dec 2019, 22:57
Forum: Ask For Help
Topic: New User also trying to understand PostMessage
Replies: 3
Views: 261

Re: New User also trying to understand PostMessage

Try this:

Code: Select all

WM_CLOSE := 0x10
WinGet, PID, PID, ahk_exe Acrobat.exe
SendMessage, %WM_CLOSE%, 0, 0, , % "ahk_pid" PID, , , , 5000
If it is not working, perhaps the executable is using some kind of UIPI?
by lmstearn
14 Dec 2019, 08:09
Forum: Ask For Help
Topic: New User also trying to understand PostMessage
Replies: 3
Views: 261

Re: New User also trying to understand PostMessage

Hi @ sxftsxinch-2! :) It's assumed Acrobat still has the standard close box? places the message in the message queue associated with the target window. It does not wait for acknowledgement or reply. By contrast, SendMessage waits for the target window to process the message, up until the timeout per...
by lmstearn
12 Dec 2019, 22:55
Forum: Bug Reports
Topic: Erroneous error message?
Replies: 2
Views: 364

Re: Erroneous error message?

In 1.1.32.00 the error is: Error: Missing "{" Line# 001: MsgBox,"Hallo" 002: MsgBox,"Hallo" ---> 003: Switch 004: Exit 005: Exit 005: Exit The program will exit. It's the same error if the % is omitted. Switch wants the cases: Switch SwitchValue { Case CaseValue1: Statements1 Case CaseValue2a, CaseV...
by lmstearn
12 Dec 2019, 22:40
Forum: Ask For Help
Topic: Check/Uncheck Checkbox If paused/suspend Topic is solved
Replies: 2
Views: 184

Re: Check/Uncheck Checkbox If paused/suspend Topic is solved

Hi @Coyes: Something like this? #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance, Forc...

Go to advanced search