How come adding this stops the rest of my script from working?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ExoticNx
Posts: 2
Joined: 15 Jan 2018, 12:26

How come adding this stops the rest of my script from working?

15 Jan 2018, 12:33

So I add some code to so when the mouse is hidden but when its shown it suspends the keys but it stops everything from working.

Code: Select all

isMouseShown()
{
StructSize := A_PtrSize + 16
VarSetCapacity(InfoStruct, StructSize)
NumPut(StructSize, InfoStruct)
DllCall("GetCursorInfo", UInt, &InfoStruct)
Result := NumGet(InfoStruct, 8)
if Result > 1
Return 1
else
Return 0
}
Loop {
if isMouseShown()
Suspend On
else
Suspend Off
Sleep 1
}
Thanks for the help.
ExoticNx
Posts: 2
Joined: 15 Jan 2018, 12:26

Re: How come adding this stops the rest of my script from working?

15 Jan 2018, 17:47

so i found out its the loop part is there a way to remove that i cant figure it out

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, NinjoOnline and 290 guests