Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I script the closealldialogs function?
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: How do I script the closealldialogs function?
'memory_gumprecord' memory item was removed in 2007 (yes, 11 years ago), it got replaced by DIALOGLIST function

so instead check for <MEMORYFINDTYPE.memory_gumprecord> you must use <DIALOGLIST.x>

Code:
[FUNCTION CloseAllDialogs]
IF (<DIALOGLIST.COUNT>)
   FOR <eval <DIALOGLIST.COUNT> - 1> 0
      DIALOGCLOSE <DIALOGLIST.<LOCAL._FOR>.ID>
   ENDFOR
ENDIF
10-01-2018 02:43 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do I script the closealldialogs function? - Coruja - 10-01-2018 02:43 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)