Embedded Internet Explorer - Mouse Events Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Wicked
Posts: 40
Joined: 05 Jun 2016, 20:34

Embedded Internet Explorer - Mouse Events

03 Dec 2018, 04:12

Hi, guys!

Edit: After looking into it, it doesn't seem it does any hover, regardless of transitions. Like the Shell.Explorer doesn't receive any mouse events.

I haven't used AHK in... ages... and I'm confused. I'm using a PC with IE11 - this supports CSS transitions. However, if I create a GUI, add an ActiveX control, no transitions work (unless I handle them with JS).

Code: Select all

Gui := GuiCreate()
WB := Gui.Add("ActiveX", "w640 h480", "InternetExplorer.Application").Value  ; The last parameter is the name of the ActiveX component.
WB.Navigate("C:\Test.htm")  ; This is specific to the web browser control.
Gui.Show()
Save this as Test.htm:

Code: Select all

<html oncontextmenu="return false;" onselectstart="return false;"><head>
	<title>
		Test
	</title>
	<style type="text/css">
		body{
			background:#ffffff;
			transition:all 0.15s ease-in-out;
		}
		body:hover{
			background:#000000;
		}
	</style>
	</head>
	<body>
		Hover over me.
	</body>
</html>
Opening the HTM in IE11+ or any other browser, and then hovering over the body makes it transition. However it doesn't in the script. How can I fix this?
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: Embedded Internet Explorer - Mouse Events  Topic is solved

03 Dec 2018, 20:37

You need to add the meta tag for X-UA-Compatible.
Wicked
Posts: 40
Joined: 05 Jun 2016, 20:34

Re: Embedded Internet Explorer - Mouse Events

03 Dec 2018, 23:21

kczx3 wrote:
03 Dec 2018, 20:37
You need to add the meta tag for X-UA-Compatible.
I love you! Thanks you so much!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: TAC109 and 132 guests