[SOLVED] While expression...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Zelio
Posts: 278
Joined: 30 Sep 2013, 00:45
Location: France

[SOLVED] While expression...

20 Oct 2013, 12:17

"While expression" do not work with a "pseudo array object"... Maybe I do a big mistake, I am blind...

Code: Select all

loop 3
{

Gui, %a_index%:Add, ActiveX, w640 h360 vWB%a_index%, Shell.Explorer
WB%a_index%.Navigate("http://ahkscript.org/boards/")
Gui, %a_index%:Show

While, WB%a_index%.ReadyState() != 4 ; WB%a_index%.ReadyState doesn't work with While expression
	sleep 1
;While, WB1.ReadyState() != 4
;	sleep 1
msgbox, You will not see this message

}
return
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: "While expression" do not work with a "pseudo array obje

20 Oct 2013, 12:22

You know the while Command is setting A_Index too.
You're referring to another variable in the while loop.
Recommends AHK Studio
Zelio
Posts: 278
Joined: 30 Sep 2013, 00:45
Location: France

Re: "While expression" do not work with a "pseudo array obje

20 Oct 2013, 12:26

Oh, lol true, it is "dynamic" in while expression, I am an asshole, I return to sleep...
User avatar
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: [SOLVED] While expression...

20 Oct 2013, 12:50

LOL I know this feeling.
Recommends AHK Studio
Zelio
Posts: 278
Joined: 30 Sep 2013, 00:45
Location: France

Re: [SOLVED] While expression...

20 Oct 2013, 13:15

I wanted to delete this thread but I just removed it, shame on me... now I need a purgatory :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], LAPIII, peter_ahk and 316 guests