Website Auto fill

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Vanda_a
Posts: 14
Joined: 05 Nov 2015, 10:12

Website Auto fill

18 Nov 2020, 06:53

Hello. Anyone know how to deal with my issue as below pic? In yellow highlight, if I put 17, it works but if I put D, It does not work. Why please?
Attachments
446BBC30-6893-4529-BF41-2B159EE528DC.jpeg
446BBC30-6893-4529-BF41-2B159EE528DC.jpeg (13.86 KiB) Viewed 209 times
User avatar
Xeo786
Posts: 760
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Website Auto fill

18 Nov 2020, 07:01

D is being considered text as its inside inverted commas

Code: Select all

evaluate( "****************)[" D "].click()" )
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Vanda_a
Posts: 14
Joined: 05 Nov 2015, 10:12

Re: Website Auto fill

18 Nov 2020, 07:37

It works. Thank you very much. I tried %D%, ‘D’, “D” and it didn’t work. The trick is “ D “. May I know what to do with the space please?
User avatar
boiler
Posts: 16965
Joined: 21 Dec 2014, 02:44

Re: Website Auto fill

18 Nov 2020, 08:24

The spaces allow for the two literal strings (in quotes) and the variable D to be concatenated as described here. The quotes are not surrounding the D, they are surrounding the strings before and after it. The space is a shortcut for the dot (.) concatenation. The following is equivalent:

Code: Select all

evaluate( "****************)[" . D . "].click()" )
Vanda_a
Posts: 14
Joined: 05 Nov 2015, 10:12

Re: Website Auto fill

18 Nov 2020, 11:27

Thank you for your kindness

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot] and 187 guests