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

Posts: 15
Likes Given: 5
Likes Received: 1 in 1 posts
Joined: Aug 2018
Reputation: 0



Post: #1
How do I script the closealldialogs function?
How i do that?

I've seen many threats containing this function "closealldialogs".


That would be very, very helpfull. Sorry :/ NB here.
09-21-2018 11:56 AM
Find all posts by this user Like Post Quote this message in a reply
svf
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2013
Reputation: 0



Post: #2
RE: How do I script the closealldialogs function?
(09-21-2018 11:56 AM)kduzera Wrote:  How i do that?

I've seen many threats containing this function "closealldialogs".


That would be very, very helpfull. Sorry :/ NB here.

Code:
[function closealldialogs]
if (<memoryfindtype.memory_gumprecord>)
forcharmemorytype memory_gumprecord
trysrc <cont> src.dialogclose <tag0.dialog_name> <argn2>
endfor
endif
09-22-2018 12:34 AM
Find all posts by this user Like Post Quote this message in a reply
kduzera
Apprentice
*

Posts: 15
Likes Given: 5
Likes Received: 1 in 1 posts
Joined: Aug 2018
Reputation: 0



Post: #3
RE: How do I script the closealldialogs function?
THANNNKKK UU BRO!!
09-28-2018 09:55 PM
Find all posts by this user Like Post Quote this message in a reply
golfin
Journeyman
*

Posts: 111
Likes Given: 1
Likes Received: 12 in 11 posts
Joined: Nov 2017
Reputation: 0

Drd Online

Post: #4
RE: How do I script the closealldialogs function?
The latest sphere shows:
PHP Code:
09:06:ERROR:(function.scp,55)Undefined symbol 'memory_gumprecord' ['memory_gumprecord'

And why actually have this feature? It is built into the original client. Just type the command from Options on the key.
(This post was last modified: 09-29-2018 08:33 PM by golfin.)
09-29-2018 05:14 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 856
Likes Given: 4
Likes Received: 201 in 165 posts
Joined: Jul 2012
Reputation: 6

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 


Forum Jump:


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

This forum uses Lukasz Tkacz MyBB addons.