ComObjCreate("InternetExplorer.Application")

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tm6464
Posts: 48
Joined: 17 Jul 2017, 22:56

ComObjCreate("InternetExplorer.Application")

31 Jan 2020, 23:24

Hi all
i use ComObjCreate("InternetExplorer.Application")

i want change the value 112233

Image
anyone can help me?

i tryed wb.document.getElementById("bikesice").value := "888888" but not work
User avatar
Xeo786
Posts: 760
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: ComObjCreate("InternetExplorer.Application")

01 Feb 2020, 00:36

tm6464 wrote:
31 Jan 2020, 23:24
Hi all
i use ComObjCreate("InternetExplorer.Application")

i want change the value 112233

Image
anyone can help me?

i tryed wb.document.getElementById("bikesice").value := "888888" but not work
there should be ID for getElementById but this <input tag have no id but name so you just need name getElementsByName as there is possibility for multiple name we have to define array number getElementsByName(somename)[x]

Code: Select all

wb.document.getElementsByName("bikesice")[0].value := "888888" 
if its first tag having name bikesice otherwise you need to change it to ("bikesice")[1] for 2nd element and so on
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
tm6464
Posts: 48
Joined: 17 Jul 2017, 22:56

Re: ComObjCreate("InternetExplorer.Application")

01 Feb 2020, 06:02

thx a lot Xeo786

this works nice
wb.document.getElementsByName("bikesice")[0].value := "888888"

can u tell me how i can put in a variable i tryed with
wb.document.getElementsByName("bikesice")[0].value := "%Main%"
and
wb.document.getElementsByName("bikesice")[0].value := %Main%
but always get error

thx for your time
gregster
Posts: 9114
Joined: 30 Sep 2013, 06:48

Re: ComObjCreate("InternetExplorer.Application")

01 Feb 2020, 07:04

It's expression syntax:

Code: Select all

Main := 444
wb.document.getElementsByName("bikesice")[0].value := Main

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bobstoner289, Chunjee, peter_ahk and 325 guests