How to detect if field is Blank and then fill (if blank)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ellnew
Posts: 15
Joined: 16 Apr 2019, 01:59

How to detect if field is Blank and then fill (if blank)

Post by ellnew » 19 Jul 2021, 10:12

Hi,

I'm using Chromeahk.1.2

So I've been doing some research and there are similar topics such as this, but I couldn't find an example of the specific one as outlined in the subject.

So I'm not really sure where to begin with something like this.

Code: Select all

js= page.Evaluate("document.querySelector('#duration')
The above is what I'm trying to target. Would you need to set that first as a variable? I've seen some code such as

Code: Select all

If var == ""
If so, how would you set the variable?

So to sumarise my IF statement would sound like this
If #Duration = Blank
Then Send the value 3:00
Otherwise, do nothing.

Return to “Ask for Help (v1)”