Search found 16 matches

by KeypressGuy
08 Dec 2017, 10:56
Forum: Ask For Help
Topic: Compare binaryfiles with AHK
Replies: 4
Views: 917

Re: Compare binaryfiles with AHK

Here's a method from Christian Ghisler that takes 3 approaches. 1. Check file sizes If identical, 2. Compare small pieces of the files If identical, 3. Calculate MD5 Because this method is performing small spot checks rather than reading the entire file, it often detects differences very quickly. Wi...
by KeypressGuy
16 Nov 2017, 16:25
Forum: Ask For Help
Topic: ImageSearch not working on different displays
Replies: 14
Views: 3547

Re: ImageSearch not working on different displays

Microsoft has a very informative blog at https://blogs.technet.microsoft.com/ask ... indows-10/ which has pretty much convinced me to give up "If at first I don't succeed" with cross-screen image matching. Boils down to user-perception now trumps pixel-exactness.
by KeypressGuy
14 Nov 2017, 16:49
Forum: Ask For Help
Topic: ImageSearch not working on different displays
Replies: 14
Views: 3547

Re: ImageSearch not working on different displays

If the images contain text that is being rendered by the OS or app, then ClearType settings can cause big differences from one user's settings to the next.
by KeypressGuy
02 Oct 2017, 12:06
Forum: Ask For Help
Topic: ImageSearch Scaling
Replies: 1
Views: 1092

Re: ImageSearch Scaling

Ran into the same problem. I find I have to set all my monitors to the same scaling (I run at 100% instead of what many use as a default, 125%) and also have to disable color management for each monitor that uses color management. - or for each browser. For instance, in Chrome, the setting is in chr...
by KeypressGuy
30 Aug 2017, 12:28
Forum: Ask For Help
Topic: Run on VPS and minimized RDP
Replies: 4
Views: 1177

Re: Run on VPS and minimized RDP

This is how I got my RDP AHK to work minimized: On the machine you are monitoring the remote from, (i.e. on your physical workstation) turn off the minimized suppression with regedit. In HKLocalMachine, add to Software\Microsoft\Terminal Server Client, RemoteDesktop_SuppressWhenMinimized DWord = 2. ...
by KeypressGuy
14 Aug 2017, 16:53
Forum: Ask For Help
Topic: Using AutoHotKey in Virtual Machine - Waiting
Replies: 1
Views: 552

Re: Using AutoHotKey in Virtual Machine - Waiting

I hit the same wall. The only way I found to make AHK run while the VM was completely disconnected is to put it in startup. If I ever connect, though, disconnecting will lock it up. There is a way to keep your script alive with the VM window minimized, but not closed, though I don't remember where I...
by KeypressGuy
14 Aug 2017, 10:52
Forum: Ask For Help
Topic: Improve Performance on Filedelete
Replies: 1
Views: 637

Re: Improve Performance on Filedelete

I have my main scripts run helper-apps when I don't want to wait for the operations to finish:

Code: Select all

Run, Helper_FolderDelete.exe
by KeypressGuy
11 Aug 2017, 09:55
Forum: Ask For Help
Topic: How to deal with a comma inside a column of a comma seperated file?
Replies: 9
Views: 1308

Re: How to deal with a comma inside a column of a comma seperated file?

To split a string that is in standard CSV (comma separated value) format, use a parsing loop since it has built-in CSV handling, instead of StringSplit.

Loop, parse, A_LoopField, CSV
by KeypressGuy
07 Aug 2017, 08:41
Forum: Ask For Help
Topic: FileMove wont move more than 1 files
Replies: 5
Views: 1009

Re: FileMove wont move more than 1 files

Here's a piece out of the Loop (files & folders) section of the help file. Instead of using the wildcard match, try handling each file individually. Use code like this to read the directory, then put in a delay before you start accessing the JPGs to give any that are not ready to be accessed time to...
by KeypressGuy
03 Aug 2017, 10:09
Forum: Ask For Help
Topic: determine if scaling is not 100% for monitor of a window, change PerMonitorSettings in registry, reflect change, verify
Replies: 12
Views: 6366

Re: determine if scaling is not 100% for monitor of a window, change PerMonitorSettings in registry, reflect change, ver

This works fine on my ThinkPad with external ViewsSonic monitor. Thank you, and bravo! What if Microsoft suddenly changes the Notepad icon? (For the benefit of readers who haven't studied the code, the correct resolution is reached when the correctly scaled Notepad icon is detected in a maximized No...
by KeypressGuy
24 Jul 2017, 12:43
Forum: Ask For Help
Topic: determine if scaling is not 100% for monitor of a window, change PerMonitorSettings in registry, reflect change, verify
Replies: 12
Views: 6366

Re: determine if scaling is not 100% for monitor of a window, change PerMonitorSettings in registry, reflect change, ver

I applaud your gumption! and will be giving your code a test-drive. I have had the same problems with portability and have often wished for a solution, but never did much about it. For me, it's not just scaling. Brightness and color settings differing from machine to machine cause my ImageSearches n...
by KeypressGuy
19 Jul 2017, 12:14
Forum: Ask For Help
Topic: I Need Help, It is probably easy
Replies: 1
Views: 463

Re: I Need Help, It is probably easy

I always put this drop-dead code in my scripts to kill runaways:

f12::
ExitApp
by KeypressGuy
18 Jul 2017, 11:47
Forum: Ask For Help
Topic: Help to open a link in calibre program window
Replies: 20
Views: 3510

Re: Help to open a link in calibre program window

The variable A_Cursor will (probably) be "Arrow" until it becomes a hand, at which point it becomes "Unknown". loop { MouseMove, 0, -3, R Sleep 60 if (A_Cursor <> "Arrow") break } click The BREAK will break out of the loop. Then past the end of the loop, you issue a click command with no parameters ...
by KeypressGuy
18 Jul 2017, 10:32
Forum: Ask For Help
Topic: loop read file - tab characters at beginning of line are stripped Topic is solved
Replies: 5
Views: 1185

Re: loop read file - tab characters at beginning of line are stripped Topic is solved

AutoTrim Off

"On: In a statement such as Var1 = %Var2%, tabs and spaces at the beginning and end of a Var2 are omitted from Var1. This is the default.
"Off: Such tabs and spaces are not omitted."
by KeypressGuy
18 Jul 2017, 10:01
Forum: Ask For Help
Topic: Help to open a link in calibre program window
Replies: 20
Views: 3510

Re: Help to open a link in calibre program window

You could use the mouse cursor to find the link: Point the mouse to a spot on the screen just above "Jobs 0". Then in a loop, slowly, with small SLEEP delays, move the mouse up 3 pixels at a time until the cursor becomes the pointing hand. At that time it must be pointing at Click to open, so then y...

Go to advanced search