Doubt About COM IE

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
snowmind
Posts: 124
Joined: 12 Nov 2015, 15:18

Doubt About COM IE

30 Sep 2019, 14:33

Hi Friends :wave:
I have a question and would like to know if anyone had the same problem and how they could solve it.I have a script to fill in information on a web form (ServiceNow). There is a field that when you enter the employee name and press TAB, other form fields are automatically filled in as (Address / Phone).


When I fill in the same employee name below, the name is filled in, but it's as if the page doesn't realize there is information there.

Code: Select all

wb.document.getElementById("id14").InnerText := Variable_Name
However, if I ask to write like this, the information is filled and works

Code: Select all

ControlSend, Internet Explorer_Server1, %Variable_Name%, Window_Title
Is there any way to input the information and submit or something using just COM?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Doubt About COM IE

20 Oct 2019, 01:05

Try .value perhaps.

Also, perhaps you could set the value, focus the element, and then send one key press. To send fewer key presses.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk, Rauvagol and 342 guests