ControlSend not working

Get help with using AutoHotkey and its commands and hotkeys
g0ss
Posts: 15
Joined: 19 Oct 2018, 11:36

ControlSend not working

17 Apr 2019, 10:18

Hello,

I faced with the problem - ControlSend does not send a command in IE 11. The script looks like this:

Code: Select all

;WinSpy
;Name - Internet Explorer
;ahk_class IEFrame
;ahk_exe iexplore.exe

SetTitleMatchMode, 2

sleep 1000
loop,
{
	ControlSend,, {Space}, Name - Internet Explorer
	Sleep 1000
}

Pause::Pause
return
WinActivate with the parameter Name - Internet Explorer is working. Checked ControlSend on notepad - also works.
Please tell me what could be the problem. Thanks!
Albireo
Posts: 576
Joined: 16 Oct 2013, 13:53

Re: ControlSend not working

17 Apr 2019, 10:56

ControlSend is an instruction that sends something, essentially to a control field.
Where in internet explorer do you want to send "space"?
g0ss
Posts: 15
Joined: 19 Oct 2018, 11:36

Re: ControlSend not working

17 Apr 2019, 13:34

Albireo wrote:
17 Apr 2019, 10:56
ControlSend is an instruction that sends something, essentially to a control field.
Where in internet explorer do you want to send "space"?
I want to scroll page down, but IE should stay in background.
Albireo
Posts: 576
Joined: 16 Oct 2013, 13:53

Re: ControlSend not working

17 Apr 2019, 18:56

I have no idea!
Maybe this will help? Internet Explorer: activate tab or you must run the script as "Administrator"?
g0ss
Posts: 15
Joined: 19 Oct 2018, 11:36

Re: ControlSend not working

18 Apr 2019, 01:05

Albireo wrote:
17 Apr 2019, 18:56
I have no idea!
Maybe this will help? Internet Explorer: activate tab or you must run the script as "Administrator"?
Found a solution - pwb.Document.ParentWindow.scrollBy(0, 1000)

Return to “Ask For Help”

Who is online

Users browsing this forum: DataLife, Google [Bot], Odlanir, SonGokuBg, vsub and 29 guests