how to combining two Conditional statements in while-loop? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
carloskaine
Posts: 6
Joined: 24 Mar 2018, 06:17

how to combining two Conditional statements in while-loop?

24 Mar 2018, 06:26

I wanna do while{} when WinActive("Diablo Ⅲ") and GetKeyState("C", "P") are both ture.
Is "while WinActive("Diablo Ⅲ")&&GetKeyState("C", "P") ; {}return" legal ?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: how to combining two Conditional statements in while-loop?  Topic is solved

24 Mar 2018, 07:30

Code: Select all

while (WinActive("Diablo III") && GetKeyState("C", "P")) {
	doStuff()
}
carloskaine
Posts: 6
Joined: 24 Mar 2018, 06:17

Re: how to combining two Conditional statements in while-loop?

24 Mar 2018, 21:09

swagfag wrote:

Code: Select all

while (WinActive("Diablo III") && GetKeyState("C", "P")) {
	doStuff()
}
thank u very much

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 345 guests