Taking action when file is created?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DeBedenHasen
Posts: 3
Joined: 02 Nov 2017, 10:23

Taking action when file is created?

21 Jul 2018, 15:25

Hi.

In the built-in search in the command documentation, I couldn't find something like

Code: Select all

WhenFileCreated
The only thing I would have considered to have the action depend on

Code: Select all

Loop, Read...
I imagine that might slow the PC down in general as it's not very powerful.

Anyway, is there a way to have a script wait until a file exists, then execute any other command / action?
I hope so.

Thanks in advance.
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: Taking action when file is created?

21 Jul 2018, 15:34

if you are waiting for a file in a specific location you can use the if fileexist
gregster
Posts: 9055
Joined: 30 Sep 2013, 06:48

Re: Taking action when file is created?

21 Jul 2018, 15:39

Yes, Fileexist can even work with file patterns... and I would rather use SetTimer than a loop.

There is also https://autohotkey.com/boards/viewtopic ... atchfolder

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Aqualest, MrDoge and 329 guests