Search found 16 matches

by TomL
10 Sep 2019, 10:42
Forum: Ask for Help (v1)
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 3263

Re: A_Now versus FileGetTime() timestamps

The 2 second difference between the actual file write time and the file's reported modified date was due to the file being stored on a FAT32 formatted drive. A search for "FAT32 timestamp resolution" returned the following: NTFS stores all timestamps to 100 nanosecond resolution. By comparison, FAT3...
by TomL
08 Jul 2019, 11:20
Forum: Ask for Help (v1)
Topic: Retrieve element from simple-vs.-associative array
Replies: 3
Views: 846

Re: Retrieve element from simple-vs.-associative array

I don't believe it is possible to use the book.key method if the key has a character that is not allowed in a variable name. In this case its the embedded space character. If you rename the key to "Publication_Date", You can then access the key's value using the code Book.Publication_Date
by TomL
08 Jul 2019, 08:30
Forum: Ask for Help (v1)
Topic: Help with a % of area script
Replies: 3
Views: 707

Re: Help with a % of area script

You can use the ImageSearch command to search if an image stored in a file is found on the screen. I suggest you take a screenshot of the screen by pressing the "PrtSc" button on your keyboard (assuming you have one), pasting it into an image editor, crop the image to only show the "60%", and save t...
by TomL
07 Jul 2019, 17:45
Forum: Ask for Help (v1)
Topic: Help with a % of area script
Replies: 3
Views: 707

Re: Help with a % of area script

If the area is always visible on the screen, the PixelGetColor command will return the color of a specified pixel on the screen. Your script can periodically check the pixel's color and take action when it changes.
by TomL
07 Jul 2019, 17:21
Forum: Ask for Help (v1)
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 3263

Re: A_Now versus FileGetTime() timestamps

Thanks flyingDman for reminding me of the fact that launchTime is assigned when the script is launched and for taking the time to write the code to prove it. That helps to better explain, although still surprising, why 2 seconds needs to be added to A_Now in order to insure the launchTime timestamp ...
by TomL
07 Jul 2019, 09:29
Forum: Ask for Help (v1)
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 3263

Re: A_Now versus FileGetTime() timestamps

I appreciate the suggestions but my initial question has not been answered. In short, a script is reloaded and then 1 second later, when the first timer event occurs, the current system time is retrieved using A_Now and it is an earlier timestamp than the modification time of a file saved before the...
by TomL
05 Jul 2019, 18:10
Forum: Ask for Help (v1)
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 3263

Re: A_Now versus FileGetTime() timestamps

Thanks wolf_II for taking the time to reply. Yes, A_Now is not a command. It's a variable as stated in the first sentence. My mistake. My last sentence asks the question I have although I admit that it may be difficult to understand. The following script shows the problem. Copy the script into a fil...
by TomL
05 Jul 2019, 08:36
Forum: Ask for Help (v1)
Topic: A_Now versus FileGetTime() timestamps
Replies: 11
Views: 3263

A_Now versus FileGetTime() timestamps

When a script is launched, the launch time is obtained using the "A_Now" variable. A timer is then started to check the modification time of included files against the launch time and, if an included file has has a later date, the "Reload" command is issued. The issue is that the reloaded script, wh...
by TomL
19 Dec 2018, 20:57
Forum: Ask for Help (v1)
Topic: Function equivalents for AHK commands
Replies: 6
Views: 1292

Re: Function equivalents for AHK commands

Thanks for the replies. The GitHub file was the one I was looking for. The v2 functions for v1 will also be useful.

Funny "v2" reply. Too much V1 code to switch to V2 without a really good reason.
by TomL
19 Dec 2018, 15:58
Forum: Ask for Help (v1)
Topic: Function equivalents for AHK commands
Replies: 6
Views: 1292

Function equivalents for AHK commands

I remember coming across a file or an entry in the forum containing function equivalents for each of the AHK commands. Most if not all of the functions just issue the corresponding command within the function. Does someone have a version they can post?
by TomL
28 Aug 2018, 07:45
Forum: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289933

DetectHiddenWindows and the Process, Exist command

Thanks Lexikos for the quick reply. After some more debugging, it was a WinGet call further down in the script that needed the "DetectHiddenWindows, On".
by TomL
26 Aug 2018, 15:02
Forum: Suggestions on Documentation Improvements
Topic: [Archived, Locked] Suggestions on documentation improvements
Replies: 688
Views: 289933

DetectHiddenWindows and the Process, Exist command

The "Process, Exist, .." command will return the PID of a process with no visible window if the "DetectHiddenWindows, On" command has been issued. This is not documented in the DetectHiddenWindows entry or the Process entry in the help file. In addition, the current DetectHiddenWindows help text imp...
by TomL
20 Aug 2018, 09:03
Forum: Bug Reports
Topic: WinMove difference between script & executable Topic is solved
Replies: 6
Views: 2804

Re: WinMove difference between script & executable Topic is solved

Just to clarify, version 1.1.29.00 caused WinMove to not work correctly in some situations. Version 1.1.29.01 fixed the problem.

Maybe someone will find my test code useful as example code for how to detect when a window is created.
by TomL
20 Aug 2018, 08:20
Forum: Bug Reports
Topic: WinMove difference between script & executable Topic is solved
Replies: 6
Views: 2804

Re: WinMove difference between script & executable Topic is solved

It appears I'm running 1.1.29.00, not 11.29.01
It figure's I'd notice it after I post the problem.

Thanks joefiesta for the feedback. I saw your post when I went to delete mine.
by TomL
20 Aug 2018, 07:02
Forum: Bug Reports
Topic: WinMove difference between script & executable Topic is solved
Replies: 6
Views: 2804

WinMove difference between script & executable Topic is solved

I'm working on a program that will 'snap' a just created window to the edge of the screen. The WinMove command is used to move the window and is issued within a function invoked when the HSHELL_WINDOWCREATED message is received. If a compiled version of the program is running, the WinMove command mo...
by TomL
06 Jan 2017, 08:23
Forum: Scripts and Functions (v1)
Topic: Radial menu scripts
Replies: 336
Views: 172388

Re: Radial menu scripts - updates 2016-12-27

I couple of days ago Radial Menu V4.43 stopped working. It would startup, display the "Loading Radial Menu ..." splash screen, and then exit. Prior to that, I received the pop-up window stating that the v4.44 version was available (nice feature). At that time I closed the window without downloading ...

Go to advanced search