Re: Bringing a Window to the Front?

2008-06-13 Thread Mark Wieder
Sims-

> I do not have a Windows machine handy here, can someone please
> tell me what the common/standard alternateLanguages for a Windows  machine 
> are?
>
> Is JavaScript among the common/standard alternateLanguages for Windows?

Yes, but this is Windows. You can't call it JavaScript because then 
Microsoft wouldn't control it.
Here's what I get on XP:
XML

VBScript

VBScript.Encode

JScript

JScript.Encode

PerlScript

"SignedJavaScript"

"SignedVBScript"


-- 
 Mark Wieder
 [EMAIL PROTECTED]



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-13 Thread Jim Sims


On Jun 13, 2008, at 7:59 PM, Mark Wieder wrote:


Dave-


Thanks, I've done this for Mac but for Windows I don't really have a
workable solution, I can do it as a JavaScript or a  
VisualBasicScript  but

this involves writing a file to the disk which slows things down  too
much.


If you're running 2.9 then you no longer have to write a file to disk.

do tScript as "VBScript"
do the uEmbeddedScript of field "xyzzy" as "PerlScript"


I do not have a Windows machine handy here, can someone please
tell me what the common/standard alternateLanguages for a Windows  
machine are?


Is JavaScript among the common/standard alternateLanguages for Windows?

Wish I could do JavaScript for OS X.

sims

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-13 Thread Mark Wieder
Dave-

> Thanks, I've done this for Mac but for Windows I don't really have a 
> workable solution, I can do it as a JavaScript or a VisualBasicScript  but 
> this involves writing a file to the disk which slows things down  too 
> much.

If you're running 2.9 then you no longer have to write a file to disk.

do tScript as "VBScript"
do the uEmbeddedScript of field "xyzzy" as "PerlScript"

-- 
 Mark Wieder
 [EMAIL PROTECTED] 



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Ken Ray

> the idea is that you fill in the name of your standalone instead of
> "revolution.app"
> 
> I tested it on a simple standalone on a mac: one button one field (for
> feedback)

Be careful with this... you'll get another instance of the app running in
Windows unless you block the "relaunch" message by adding this to the first
stack that opens:

on relaunch
end relaunch

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread BNig

Hi Dave,

the idea is that you fill in the name of your standalone instead of
"revolution.app"

I tested it on a simple standalone on a mac: one button one field (for
feedback)

on mouseUp pMouseBtnNo
put the effective filename of this stack into temp
put temp into field "f1"
set the itemdelimiter to "/"
put last item of temp into tName
if the platform is "MacOs" then
put tName & ".app" into tName
end if
if the platform is "Win32" then
put tName & ".exe" into tName
end if
put return & return & tName after field "f1"
-- for the IDE
-- send "launch" & quote & "revolution.app" & quote to me in 2 seconds
 
-- for the standalone on a mac (tested), should work on windows (not
tested)
send "launch" & quote & tName & quote  to me in 2 seconds
end mouseUp

for me it works 

regards

Bernd



Dave-272 wrote:
> 
> I suppose that might work if I were running under the RunRev IDE but  
> if I'm running a Standalone then why would I want to launch Revolution?
> 
> All the Best
> Dave
> 
> On 10 Jun 2008, at 13:48, BNig wrote:
> 
>>
>> Hi Dave,
>>
>> would
>>
>> launch"revolution.app"
>>
>> work for you?
>>
>> if you start your applescript from your application then at the end  
>> of the
>> script you could put the launch command in your revolution script,  
>> in my
>> testing on a mac with
>>
>> on mouseUp
>> send "launch" & quote & "revolution.app" & quote  to me in 2 seconds
>> end mouseUp
>>
>> in a button, then hitting the button and switching manually to another
>> application brings back revolution to the front after 2 seconds.
>>
>> if that works for you it would probably work on windows too.
>>
>> regards
>>
>> Bernd
>>
>>
>>
>> Dave-272 wrote:
>>>
>>> Hi All,
>>>
>>> How can I bring one of my RunRev Stacks/Windows to the Front (so that
>>> it is the "front" window). I use an AppleScript that causes iTunes to
>>> be selected (iTunes to the front and obscures my App's window), after
>>> the AppleScript has completed I'd like to ensure my my Application's
>>> Window is brought back to the front.
>>>
>>> A solution that works on Mac and Windows would be so cool!
>>>
>>> Thanks a lot
>>> All the Best
>>> Dave
>>>
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/Bringing-a- 
>> Window-to-the-Front--tp17753235p17754604.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bringing-a-Window-to-the-Front--tp17753235p17761555.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Dave


On 10 Jun 2008, at 18:19, Ken Ray wrote:




Also the AppleScript below, wouldn't the following do the same:

put "activate me" & cr into myScript
do myScript as applescript


Yes, and even simpler (which works as well for OS X):

do "activate me" as AppleScript


Thanks, I've done this for Mac but for Windows I don't really have a  
workable solution, I can do it as a JavaScript or a VisualBasicScript  
but this involves writing a file to the disk which slows things down  
too much.


Anyone have a good way of giving my application control and bringing  
the window to the front?


All the Best
Dave
 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Ken Ray

> Also the AppleScript below, wouldn't the following do the same:
> 
> put "activate me" & cr into myScript
> do myScript as applescript

Yes, and even simpler (which works as well for OS X):

do "activate me" as AppleScript


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Dave

Hi,

The problem with this is that one the Mac anyway, it changes the  
window to be a floating window rather than a normal window. Setting  
the systemWindow to false pushes it back to where it was before, e.g.  
hidden.


What I want is for my App's to be selected and it's (one) window to  
come to the front. The same action as if you click in the Window with  
the mouse.


All the Best
Dave


On 10 Jun 2008, at 17:42, viktoras didziulis wrote:

OK, it translates to systemWindow. E.g. you can set the  
systemWindow of stack "yourStack" to true/false to bring your  
window to front/back.


All the best!
Viktoras

viktoras didziulis wrote:

Hi Dave,

i just noticed that if I set the "Float above everything" of stack  
in inspector then staks window comes to front of windows of any  
other applications (Rev 2.9, MS Windows XP). But unfortunately I  
do not know how "Float above everything" property translates into  
rev, neither was I able to find it in the dictionary. In principle  
one should be able to set "Float above everything" to true when  
the window has to come to front and set it back to false or  
whatever else is the default to let it to be hidden.


Viktoras


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread viktoras didziulis
OK, it translates to systemWindow. E.g. you can set the systemWindow of 
stack "yourStack" to true/false to bring your window to front/back.


All the best!
Viktoras

viktoras didziulis wrote:

Hi Dave,

i just noticed that if I set the "Float above everything" of stack in 
inspector then staks window comes to front of windows of any other 
applications (Rev 2.9, MS Windows XP). But unfortunately I do not know 
how "Float above everything" property translates into rev, neither was 
I able to find it in the dictionary. In principle one should be able 
to set "Float above everything" to true when the window has to come to 
front and set it back to false or whatever else is the default to let 
it to be hidden.


Viktoras


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread viktoras didziulis

Hi Dave,

i just noticed that if I set the "Float above everything" of stack in 
inspector then staks window comes to front of windows of any other 
applications (Rev 2.9, MS Windows XP). But unfortunately I do not know 
how "Float above everything" property translates into rev, neither was I 
able to find it in the dictionary. In principle one should be able to 
set "Float above everything" to true when the window has to come to 
front and set it back to false or whatever else is the default to let it 
to be hidden.


Viktoras


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Dave
I suppose that might work if I were running under the RunRev IDE but  
if I'm running a Standalone then why would I want to launch Revolution?


All the Best
Dave

On 10 Jun 2008, at 13:48, BNig wrote:



Hi Dave,

would

launch"revolution.app"

work for you?

if you start your applescript from your application then at the end  
of the
script you could put the launch command in your revolution script,  
in my

testing on a mac with

on mouseUp
send "launch" & quote & "revolution.app" & quote  to me in 2 seconds
end mouseUp

in a button, then hitting the button and switching manually to another
application brings back revolution to the front after 2 seconds.

if that works for you it would probably work on windows too.

regards

Bernd



Dave-272 wrote:


Hi All,

How can I bring one of my RunRev Stacks/Windows to the Front (so that
it is the "front" window). I use an AppleScript that causes iTunes to
be selected (iTunes to the front and obscures my App's window), after
the AppleScript has completed I'd like to ensure my my Application's
Window is brought back to the front.

A solution that works on Mac and Windows would be so cool!

Thanks a lot
All the Best
Dave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




--
View this message in context: http://www.nabble.com/Bringing-a- 
Window-to-the-Front--tp17753235p17754604.html

Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread BNig

Hi Dave,

would 

launch"revolution.app"

work for you?

if you start your applescript from your application then at the end of the
script you could put the launch command in your revolution script, in my
testing on a mac with

on mouseUp
send "launch" & quote & "revolution.app" & quote  to me in 2 seconds
end mouseUp

in a button, then hitting the button and switching manually to another
application brings back revolution to the front after 2 seconds.

if that works for you it would probably work on windows too.

regards

Bernd



Dave-272 wrote:
> 
> Hi All,
> 
> How can I bring one of my RunRev Stacks/Windows to the Front (so that  
> it is the "front" window). I use an AppleScript that causes iTunes to  
> be selected (iTunes to the front and obscures my App's window), after  
> the AppleScript has completed I'd like to ensure my my Application's  
> Window is brought back to the front.
> 
> A solution that works on Mac and Windows would be so cool!
> 
> Thanks a lot
> All the Best
> Dave
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bringing-a-Window-to-the-Front--tp17753235p17754604.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Dave

Hi Mark,

Thanks a lot for that.

I can't believe that after all this time there isn't an in-built  
RunRev function to do this!


Also the AppleScript below, wouldn't the following do the same:

put "activate me" & cr into myScript
do myScript as applescript

All the Best
Dave

On 10 Jun 2008, at 12:53, Mark Schonewille wrote:


Hi Dave,

Here's a solution for Windows:

http://runrev.info/Activate%20Application.htm

and here's one for Mac:

on foo
set the itemdel to slash
put last item of the address into myName
put "tell application" && quote & myName & quote && "to  
activate" into myScript

do myScript as AppleScript
ed foo

The Windows solution can probably made much more elegant now,  
because the do command works with VBScript now, but I haven't had  
time to look into it yet.


Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x- 
talk.com/server.html for more info.


On 10 jun 2008, at 13:34, Dave wrote:


Hi All,

How can I bring one of my RunRev Stacks/Windows to the Front (so  
that it is the "front" window). I use an AppleScript that causes  
iTunes to be selected (iTunes to the front and obscures my App's  
window), after the AppleScript has completed I'd like to ensure my  
my Application's Window is brought back to the front.


A solution that works on Mac and Windows would be so cool!

Thanks a lot
All the Best
Dave


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bringing a Window to the Front?

2008-06-10 Thread Mark Schonewille

Hi Dave,

Here's a solution for Windows:

http://runrev.info/Activate%20Application.htm

and here's one for Mac:

on foo
set the itemdel to slash
put last item of the address into myName
put "tell application" && quote & myName & quote && "to activate"  
into myScript

do myScript as AppleScript
ed foo

The Windows solution can probably made much more elegant now, because  
the do command works with VBScript now, but I haven't had time to look  
into it yet.


Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 10 jun 2008, at 13:34, Dave wrote:


Hi All,

How can I bring one of my RunRev Stacks/Windows to the Front (so  
that it is the "front" window). I use an AppleScript that causes  
iTunes to be selected (iTunes to the front and obscures my App's  
window), after the AppleScript has completed I'd like to ensure my  
my Application's Window is brought back to the front.


A solution that works on Mac and Windows would be so cool!

Thanks a lot
All the Best
Dave


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Bringing a Window to the Front?

2008-06-10 Thread Dave

Hi All,

How can I bring one of my RunRev Stacks/Windows to the Front (so that  
it is the "front" window). I use an AppleScript that causes iTunes to  
be selected (iTunes to the front and obscures my App's window), after  
the AppleScript has completed I'd like to ensure my my Application's  
Window is brought back to the front.


A solution that works on Mac and Windows would be so cool!

Thanks a lot
All the Best
Dave

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution