Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 22, 2013, 12:26:25 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tip/trick: how to display message  (Read 956 times)
kethd
JkDefrag Junior
**
Posts: 8


View Profile
« on: May 13, 2010, 09:55:02 pm »

It is peculiar that the Message command does not actually display a message (it sets a translation/mapping of an existing message, for future use), and that there does not seem to be any other way to dynamically output from the script to the display screen (except via the statistics window which is pretty awkward and limited).

However, it is possible to use the existing Message command in a tricky way to display a custom Pause message:

Code:
  FileSelect
    SelectNtfsSystemFiles(yes)
  FileActions
Message("Disk %1s     Paused, press space to continue....",
        "Disk %1s     Paused, about to place: MFT at 10%....")
  Pause()
    PlaceNtfsSystemFiles(Ascending,MftSize * 0.1)

This trick can be used over and over in one script to keep displaying changing messages.

Sadly, there does not seem to be any way to insert any custom variable data into messages this way, beyond whatever parameters are already included.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: May 14, 2010, 01:58:42 am »

Perhaps a tip: see the Title command.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!