Search found 8 matches

by mmmzq
15 Jan 2018, 00:51
Forum: Ask For Help
Topic: How to Embed an iframe into GUI?
Replies: 3
Views: 249

Re: How to Embed an iframe into GUI?

it seems the document property of ie is missing after navigate to the frame's url... :headwall:
by mmmzq
15 Jan 2018, 00:24
Forum: Ask For Help
Topic: How to Embed an iframe into GUI?
Replies: 3
Views: 249

Re: How to Embed an iframe into GUI?

bump
by mmmzq
15 Jan 2018, 00:10
Forum: Ask For Help
Topic: Break a loop inside a loop with a key
Replies: 7
Views: 460

Re: Break a loop inside a loop with a key

Either Check GetKeyState or add a determine statement like breakloop := false Loop { if breakloop break sleep 5000 Wait2() } Wait2() { Loop { Sleep 20 PixelGetColor, col, 20, 285 If col = 16777215 break else sleep 10000 ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< break } } return esc:: breakloop :=...
by mmmzq
14 Jan 2018, 23:04
Forum: Ask For Help
Topic: Break a loop inside a loop with a key
Replies: 7
Views: 460

Re: Break a loop inside a loop with a key

Either Check GetKeyState or add a determine statement like breakloop := false Loop { if breakloop break sleep 5000 Wait2() } Wait2() { Loop { Sleep 20 PixelGetColor, col, 20, 285 If col = 16777215 break else sleep 10000 ;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< break } } return esc:: breakloop := ...
by mmmzq
11 Jan 2018, 20:56
Forum: Ask For Help
Topic: Can't click a button within web page, no errors are returning.
Replies: 6
Views: 419

Re: Can't click a button within web page, no errors are returning.

Code: Select all

wb2.document.getElementByClassName("btn btn-inverse btn-icon")[0].click()
A number index ([0]) should be append to the getElementByClassName() to indicate to the correct node.
Without this index all you get is a element list object.
by mmmzq
11 Jan 2018, 06:50
Forum: Ask For Help
Topic: How to Embed an iframe into GUI?
Replies: 3
Views: 249

Re: How to Embed an iframe into GUI?

Anyone help me?
by mmmzq
10 Jan 2018, 01:21
Forum: 请求帮助
Topic: 如何将iframe嵌入GUI?
Replies: 0
Views: 538

如何将iframe嵌入GUI?

创造Shell.Explorer ActiveX控件之后,我希望在浏览到指定网页的时候将网页中的某个iframe单独显示出来

Code: Select all

iframeurl := ie.document.parentwindow.frames[0].document.url
ie.navigate(iframeurl)
都是一样的操作,ActiveX控件显示出来就会丢失某些style和script,导致按钮失效还有排版出问题,但是ComObjCreate("InternetExplorer.Application")就能正常显示内容

怎么破?
by mmmzq
10 Jan 2018, 01:10
Forum: Ask For Help
Topic: How to Embed an iframe into GUI?
Replies: 3
Views: 249

How to Embed an iframe into GUI?

I'm new to AHK and even to coding. :oops: I create a GUI ActiveX WB object. When a expected page is fully loaded, I'd like to set the control to display only one particular iframe inside this page. iframeurl := ie.document.parentwindow.frames[0].document.url ie.navigate(iframeurl) This is what I tri...

Go to advanced search