How to send a space to IE Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Sunil Patel

How to send a space to IE

17 Nov 2017, 19:46

After i send 999 86 i would like to send a {space} I am using a hidden ie window

any ideas? I tried controlsend,,{space},Internet Explorer

I had settitle...2
detecthiddenw....on
I tried with the IE ahk class

So now its time to ask for help, please help

Code: Select all

itemsd = 999 86
pwb := ComObjCreate("InternetExplorer.Application")
pwb.Visible := True
pwb.Navigate("https://www.w3schools.com/html/html_forms.asp")
while pwb.ReadyState != 4
	sleep, 100
sleep, 2000
items_input := pwb.document.getElementsByTagName("Input")[3]
items_input.value := itemsd
A_AhkUser
Posts: 1147
Joined: 06 Mar 2017, 16:18
Location: France
Contact:

Re: How to send a space to IE  Topic is solved

21 Nov 2017, 23:27

Hi,

You mean append a space character to the end of the input? If it is, see AutoTrim - or simply use the colon equal operator when defining itemsd:

Code: Select all

itemsd := "999 86 " ; evaluates an expression and stores the result in a variable
; itemsd := "999 86" . A_Space ; same as above; the dot is used to concatenate in expressions; using expressions, everything that is not enclosed in quotes is supposed to be the name of a variable
Hope this helps.
my scripts

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998 and 242 guests