Problem with WinWait command

Suggestions, feature requests and bug reports.
Post Reply
KenC80
Posts: 1
Joined: Apr 27th, ’24, 09:58

Post by KenC80 » Apr 28th, ’24, 10:42

I purchased FastKeys just four days ago as a replacement for AutoHotkey.
My issue is most likely newbie "finger trouble" but I cannot find a solution.

Almost everything in FastKeys is working perfectly but I encounter an error if I attempt to use "Command" to run AutoHotkey code containing the "WinWait" command. An example is shown below:

Run, E:\OneDrive\Manuals_Software
WinWait, E:\OneDrive\Manuals_Software, , 0,
WinMove, , , -920, 320, 800, 700

The first line is executed but the script is terminated at WinWait.
If I delete the timeout parameter, the script hangs and FastKeys becomes unresponsive.

If I paste the above text into an .ahk file and run the file with FastKeys, it works perfectly.

This is not causing me any issues as I can achieve the desired results using script files, but I would like to understand what I am doing wrong.
User avatar
Tom
Posts: 893
Joined: Nov 24th, ’15, 23:39

Post by Tom » Apr 30th, ’24, 14:44

I tried and this works for me

Code: Select all

Run, D:\Test\Applications\Program
WinWait, Program, , 3
WinMove, Program, , 1, 320, 2000, 1000
Post Reply