The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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
Banned

Posts: 213
Likes Given: 2
Likes Received: 32 in 28 posts
Joined: Nov 2017

Eranova

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: 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 


Forum Jump:


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