Page 1 of 1

Critical memory pop up

Posted: Tue Dec 25, 2012 7:43 pm
by piaui
Hello.

I made a script to sell dias in AH to be able to buy them with my main, but sometimes, i have this pop up about "memory critical something", and my script pause, because it can't fill in the secondary password pop up.

Here is the code i leeched somewhere on the site. At the moment, i'm doing a clic but it's not really clean.
player:mouseclickL(641, 141, 1280, 738)
RoMScript("CheckPasswordState(); StaticPopup1EditBox:ClearFocus()")
if RoMScript("StaticPopup1:IsVisible()") then
RoMScript("StaticPopup1EditBox:SetText(\"pass\")")
RoMScript("StaticPopup_EnterPressed(StaticPopup1)")
RoMScript("StaticPopup1:Hide()")
end
I tried CloseAllWindows() but didn't work.
Is there anythink function to close this popup?

Thanks.

Re: Critical memory pop up

Posted: Tue Dec 25, 2012 8:57 pm
by rock5
It might be a 'StaticPopup'. Try closing it before your code.

Code: Select all

if RoMScript("StaticPopup1:IsVisible()") then
RoMScript("StaticPopup1:Hide()")
end

player:mouseclickL(641, 141, 1280, 738)
RoMScript("CheckPasswordState(); StaticPopup1EditBox:ClearFocus()")
if RoMScript("StaticPopup1:IsVisible()") then
RoMScript("StaticPopup1EditBox:SetText(\"pass\")")
RoMScript("StaticPopup_EnterPressed(StaticPopup1)")
RoMScript("StaticPopup1:Hide()")
end

Re: Critical memory pop up

Posted: Tue Dec 25, 2012 9:05 pm
by botje
there is a addon that redirects this popup to msgbox, much easier? :P