Activate Rev.

Mark MacKenzie m.mackenzie at sasktel.net
Sun Feb 15 09:17:09 EST 2004



rodney tamblyn wrote:

> Does anyone know of a way to activate Revolution (from a script) that 
> is, bring it to the front if it is not the frontmost application?
>
> Thanks
>
> ~ Rodney
>
> -- 
> Rodney Tamblyn
> 44 Melville Street


I believe that you have to do this outside Revolution.  On the Mac you 
can readily use Applescripting.
Windows is a bit trickier.
I have just been reviewing the Windows Scripting Host and it looks 
promising.
Have a look at the Windows site for this.

I created a simple *.vbs file in notepad.  This is a text file created 
in Notepad and saved with .vbx suffix.  When called it works through the 
Windows Scripting Host resident within Win2000 and XP.

File Contents as follows:

Const MAXIMIZE_WINDOW = 9
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "Revolution.exe", MAXIMIZE_WINDOW

saved as file:  minmaxprogwind.vbs

Please be advised that this script does not do what you wish as when I 
just tested it with an instance of Revolution open and minimized it 
actually called another instance of Rev. and opened it maximized!  This 
is a run command.  Perhaps the answer lies through using a "start using" 
command.  Certainly I was looking for that but found this instead..

You would also have to call this script from within whatever application 
you are using while Rev. app. is in the background.  Many programs allow 
that.

Back to poking around windows scripting!

Mark MacKenzie




More information about the use-livecode mailing list