Jim! . it didnt work.
on keydown pkey
if pkey = f then
DoTheFlipping
end if
pass keydown
end keydown
on keyUp pkey
if pkey = f then
DoThe_UN_Flipping
end if
pass keyUp
end keyUp
Mic
___
use-revolution mailing
Hi,
How can I embed an website into Rev?
Thank you.
Raz. ___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
On 10/14/2010 10:09 AM, Razvan Pantescu wrote:
Hi,
How can I embed an website into Rev?
Thank you.
Raz.
Don't you mean:
1. How can you set up a web-browser within LiveCode?
or
2. How can you embed a LiveCode application/stack in a webpage?
Hi,
I want to include/show/load a web page into LiveCode :)
and I'm searching for solutions for that.
Thank you,
Raz.
Date: Thu, 14 Oct 2010 10:24:29 +0300
From: richmondmathew...@gmail.com
To: use-revolution@lists.runrev.com
Subject: Re: Embed website into Rev
On 10/14/2010
Raz,
See the Chipp's2RunRev RevBrowser object (the Browser section of the LiveCode
Dictionary and the Browser Sampler.rev example stack) witch let you embed a
webbrowser external (webkit/MacOS X or MSIE/Windows) inside your LiveCode app
in about this.
HTH,
Pierre
Le 14 oct. 2010 à 09:09,
I'm a little confused as to what is happening. Is the app locking
up? Or does the function return empty?
If the latter, then maybe you can test shell with something trivial
that always returns something that is not empty. If you get empty,
you can't use shell().
Dar
On Oct 13, 2010,
On 14/10/2010 00:14, J. Landman Gay wrote:
On 10/13/10 5:34 PM, Ben Rubinstein wrote:
However, have you tried Jim Lambert's suggestion of using the keyUp
event? AFAIK, LiveCode processes auto-repeating keys (at least on Mac)
as repeated keyDown events; but it only sends a keyUp event when the
Hi Dar
Thanks for your interest.
I'm a little confused as to what is happening. Is the app locking up?
Yes. The shell function never returns. I have reported it as a bug because it
should fail gracefully. But I'd love a workaround or test.
Or does the function return empty?
If the
Hi,
try setting a flag before doing the flipping:
on keydown pkey
if pkey = f then
if not the hasFlipped of me then
set the hasFlipped of me to true
DoTheFlipping
end if
end if
pass keydown
end keydown
on keyUp pkey
if pkey = f then
Write a tiny script that does something trivial in shell (e.g. shell
ls), and build that as a tiny executable.
Have your real script run that as a separate process and see if it never
returns.
(Hmmm ... can you always start another executable ?)
-- Alex.
On 14/10/2010 09:41, Monte Goulding
Write a tiny script that does something trivial in shell (e.g. shell ls),
and build that as a tiny executable.
Have your real script run that as a separate process and see if it never
returns.
That's not a bad plan.
Cheers
--
Monte Goulding
M E R Goulding Software Development
Bespoke
Hi from Beautiful Brittany,
Andre,
Nice, handy little calculator.
(I didn't check out all the possibilities !)
However, I think light grey commands on dark
grey buttons are hard to read, especially for
the +, -, * and /.
Maybe push the fontsize up to 18, or even 24
where possible ?
I have
Hello,
I was wondering if RunRev have specific dates for their RevMobile releases
(Alpha, Beta, Commercial)?
I'm guessing Commercial would be in April 2011 but how about the others.
Thanks,
Simon
--
View this message in context:
Hi again
Thanks for all replyes
and thanks to all that suggested setting a flag
This script by Malte is working:
try setting a flag before doing the flipping:
on keydown pkey
if pkey = f then
if not the hasFlipped of me then
set the hasFlipped of me to true
Le 14 oct. 10 à 12:17, Francis Nugent Dixon a écrit :
Hi from Beautiful Brittany,
Andre,
Nice, handy little calculator.
(I didn't check out all the possibilities !)
However, I think light grey commands on dark
grey buttons are hard to read, especially for
the +, -, * and /.
Maybe push the
Joe Lewis Wilkins wrote:
Jacqi, forgive me for questioning/doubting you, but I really have
trouble believing that, what with the literally thousands of scripts
I wrote in HC over a period of nearly 20 years. I just don't remember
having to strip commas from words when parsing and sorting
Another thought - I remember from my Unix days that you can put at the end
of a line command to make it run in the background and make it non-blocking. Of
course you have to redirect its output to a text file. Would that work here?
(Probably not on Windows though.)
Just throwing it against
On 10/14/10 7:20 AM, André Bisseret wrote:
That's confirmed by results of researches in Ergonomics
Dark text on light background combination are recommanded; among these
kinds of combinations the black on white one brings the best legibility
(and users' judgement of pleasantness).
Monte,
the shell under Windows is cmd.exe which usually is located in
C:\Windows\system32 for most recent versions of Windows.
This path (i.e. C:\Windows) is actually dependent on systems and
locales so there is an environment variable WINDIR which returns the
path on the current system. There
On 10/14/10 12:40 AM, Joe Lewis Wilkins wrote:
Jacqi, forgive me for questioning/doubting you, but I really have
trouble believing that, what with the literally thousands of scripts
I wrote in HC over a period of nearly 20 years. I just don't remember
having to strip commas from words when
For all the linux users (or anyone that know shell or process)
In a terminal window I can run the following command line and get the data
generation I need.
This should work in either a shell or process.
First I am the same user as what I do in the terminal window and I am in the
correct
I can now easily restart Apache from a LC handler:
on mouseUp
constant kRestartApache = apachectl -k graceful
open elevated process kRestartApache for neither
if the result empty then
answer Could not restart server.
close process kRestartApache
end if
-- process
About the constant command that Phil used in his process gadget. What does
it do that a variable does not? I see it cannot be altered in the same
handler, and I see that it can overRide a built-in constant, which might be
useful. Anyone ever come up with a compelling reason to use such a thing?
Hi Craig,
I don't know if it is compelling, but a constant is readily available to all
handlers in a script. If you have a library with functions and you don't know
which function will be called first, it is useful to not be required to define
a local variable in every function. Usually, I
I can now easily restart Apache from a LC handler:
on mouseUp
constant kRestartApache = apachectl -k graceful
open elevated process kRestartApache for neither
if the result empty then
answer Could not restart server.
close process kRestartApache
end if
You might be able to use the environment variable $ComSpec ... I see it here
on my Win7 machine, and If you can, it returns (for me):
c:\Windows\system32\cmd.exe
Of course there's the shellcommand, but that just returns command.com or
cmd.exe depending on your flavor of Windows.
The correct
on mouseUp
put /home/Bill/Desktop/report/nr.php -f tt.conf into promysql
open process promysql for update
read from process promysql for 500
put it into fld tout
write quit to process promysql
close process promysql
end mouseUp
Error: Unable to open tt.conf
Glen,
Not
Hi Ken,
On 10/14/10 9:34 AM, Ken Ray wrote:
I can now easily restart Apache from a LC handler:
on mouseUp
constant kRestartApache = apachectl -k graceful
open elevated process kRestartApache for neither
if the result empty then
answer Could not restart server.
Hi Ken,
It does not make a difference though thanks for pointing it out... I was
also trying to add 21 after the tt.conf to see if that made a difference
but it did not.
Glen
On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray k...@sonsothunder.com wrote:
on mouseUp
put
Is the tt.conf in the same folder with nr.php?
try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf if
it is, or simplify it by switching there first.
cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf
On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza gboj...@gmail.com wrote:
oh duh, not a shell. So can't do the cd first so do my first suggestion and
point to the exact path of the tt.conf
On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner bonnm...@gmail.com wrote:
Is the tt.conf in the same folder with nr.php?
try /home/Bill/Desktop/report/nr.php -f
What i'm getting at is the default folder most likely isn't what you
expect.
If you open a process /bin/pwd, my guess is that the result will NOT be
where the tt.conf file is, hence the need to point at it explicitly.
On Thu, Oct 14, 2010 at 11:09 AM, Mike Bonner bonnm...@gmail.com wrote:
oh
On 10/13/2010 08:18 PM, Andre Garzia wrote:
Folks,
I've decided to share my little RPN Calculator on RevOnline.
http://revonline2.runrev.com/download/stack/518/RPN-Calc
It is quite simple and it has a minimalistic stack (the data structure, not
the file format) implementation on the stack
On 10/14/10 7:20 AM, Andri Bisseret wrote:
That's confirmed by results of researches in Ergonomics
Dark text on light background combination are recommanded; among these
kinds of combinations the black on white one brings the best
legibility (and users' judgement of pleasantness).
Infortunately
Richard.
Don't get me started. It's like asking what the difference is between a Mac
and a PC. Go to:
http://www.hpmuseum.org/rpn.htm
Craig
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe,
On 10/14/2010 08:38 PM, dunb...@aol.com wrote:
Richard.
Don't get me started. It's like asking what the difference is between a Mac
and a PC. Go to:
http://www.hpmuseum.org/rpn.htm
Craig
___
use-revolution mailing list
Yes, the nr.php file is in the same directory as the tt.conf file. I have
also confirmed the path and files by do a process with ls -l
/home/Bill/Desktop/reporter and it show the files.
On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner bonnm...@gmail.com wrote:
Is the tt.conf in the same folder
Mark.
But script local variables do all that as well, no? It isn't a big deal,
but except for the fact that these can replace predefined constants (a feature
less available in LiveCode than in HC, especially as regards build-in
functions) I still don't see the point.
Couldn't hurt to have
Does open process fail?
Maybe there is something along this way that will work either as a
test or as your own shell.
Dar
On Oct 14, 2010, at 2:41 AM, Monte Goulding wrote:
Hi Dar
Thanks for your interest.
I'm a little confused as to what is happening. Is the app locking
up?
Yes.
Did changing your code to the following work?
on mouseUp
put /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf
into promysql
open process promysql for update
read from process promysql for 500
put it into fld tout
write quit to process promysql
close process promysql
J. Landman Gay wrote:
One customer of an unnamed app has threatened to sue the company for
breaking accessibility laws. I'm not sure how successful they would be,
but I'm all for it.
That wasn't the LiveCode installer, was it? ;)
--
Richard Gaskin
Fourth World
LiveCode training and
Hi Mike,
That did it !
Many thanks.
Glen
On Thu, Oct 14, 2010 at 12:04 PM, Mike Bonner bonnm...@gmail.com wrote:
Did changing your code to the following work?
on mouseUp
put /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf
into promysql
open process promysql for
Richmond.
This is the second time I have done this.
I need more rest.
Craig
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
Glad it worked for you!
Since it's all in the same folder you can most likely simplify it by setting
the default folder before opening the process.
you can do it like
on mouseup
-- the following changes the default folder so that you start in the
location
-- that contains your php script and the
One thing that might help is that you don't need to parse the htmltext for
the title, its already a property.
revbrowserget(pinstanceid,title)
So something simple like this in the card script works ok.
on browserdocumentcomplete pInstanceId, pUrl
put revBrowserGet(pInstanceId,title) into
On 10/14/2010 09:29 PM, dunb...@aol.com wrote:
Richmond.
This is the second time I have done this.
I need more rest.
Craig
___
Don't worry; I do sympathise; as teaching 10 contact hours a day,
redecorating a
new school building, programming
On 10/14/10 1:10 PM, Richard Gaskin wrote:
J. Landman Gay wrote:
One customer of an unnamed app has threatened to sue the company for
breaking accessibility laws. I'm not sure how successful they would be,
but I'm all for it.
That wasn't the LiveCode installer, was it? ;)
No. But as I said,
I think script local variables have to be declared, but constants don't. Once
you create the constant it is accessible in all scripts. With a script local
variable, you have to declare it, and the same variable name in two different
places, say the card script and the stack script, would be two
On 10/14/10 1:29 PM, dunb...@aol.com wrote:
Richmond.
This is the second time I have done this.
I need more rest.
Or maybe he should just change his name. I know I've asked a few of the
Marks on this list to do that. None of them took me up on it.
--
Jacqueline Landman Gay |
Bob Sneidar wrote:
Once you create the constant it is accessible in all scripts.
Unless Malte's request was implemented recently, I believe constants are
available only to the script they're defined in:
http://quality.runrev.com/qacenter/show_bug.cgi?id=5135
--
Richard Gaskin
Fourth
On Oct 14, 2010, at 1:09 PM, J. Landman Gay wrote:
On 10/14/10 1:29 PM, dunb...@aol.com wrote:
Richmond.
This is the second time I have done this.
I need more rest.
Or maybe he should just change his name. I know I've asked a few of the
Marks on this list to do that. None of them
On 10/14/10 11:28 AM, dunb...@aol.com wrote:
About the constant command that Phil used in his process gadget. What does
it do that a variable does not? I see it cannot be altered in the same
handler, and I see that it can overRide a built-in constant, which might be
useful. Anyone ever come up
J. Landman Gay wrote:
I almost never use constants inside a handler, but that's just personal
style.
Me neither. In the rare cases when I do it tends to be for relatively
minor settings that I won't bother making a UI for.
--
Richard Gaskin
Fourth World
LiveCode training and
On 10/14/10 12:35 PM, FlexibleLearning wrote:
As for light grey on dark grey, I find it much less abbrasive on the eye
than black on white for a user interface but I would not want to read a
book using it. My current app development uses such a color scheme and
reports so far are positive.
On 10/14/10 2:19 PM, Devin Asay wrote:
On Oct 14, 2010, at 1:09 PM, J. Landman Gay wrote:
On 10/14/10 1:29 PM, dunb...@aol.com wrote:
Richmond.
This is the second time I have done this.
I need more rest.
Or maybe he should just change his name. I know I've asked a few of
the Marks on
On 10/14/10 12:26 PM, J. Landman Gay wrote:
On 10/14/10 11:28 AM, dunb...@aol.com wrote:
About the constant command that Phil used in his process gadget. What does
it do that a variable does not? I see it cannot be altered in the same
handler, and I see that it can overRide a built-in
In the case of scripts, local variables have to be set at some point
before they will have a value, so I use those for things that are
specific to the user setup (file paths I'll need repeatedly, for
example.) Constant values are permanent until you change the script, so
they're good for
Thanks Mike - I completely forgot to check the revBrowserGet properties!
Ideally there'd be a way of querying this while the download was in progress
given that the HTML usually loads pretty quickly.
Regards,
Terry...
On 15/10/2010, at 5:52 AM, Mike Bonner bonnm...@gmail.com wrote:
One
If you find a solution for this let me know, i'm interested.
Take care.
On Thu, Oct 14, 2010 at 2:56 PM, Terry Judd t...@unimelb.edu.au wrote:
Thanks Mike - I completely forgot to check the revBrowserGet properties!
Ideally there'd be a way of querying this while the download was in progress
Just so long as he doesn't bring up his religious fervor for cheese...
Bob
On Oct 14, 2010, at 12:51 PM, J. Landman Gay wrote:
On 10/14/10 2:19 PM, Devin Asay wrote:
On Oct 14, 2010, at 1:09 PM, J. Landman Gay wrote:
On 10/14/10 1:29 PM, dunb...@aol.com wrote:
Richmond.
This is the
Just noticed, in reading the dictionary on constant --
CR = return = LF = linefeed = numtochar(10)
but
CRLF is listed as Equivalent to a carriage return (ASCII 13,
Control-M) followed by a line feed (ASCII 10, Control-J), implying
that carriage return = numtochar(13) linefeed. Apparently,
On 15/10/2010, at 4:53 AM, Dar Scott wrote:
Does open process fail?
Maybe there is something along this way that will work either as a test or as
your own shell.
I would expect that as long as the user has the right to execute the process
then it should be fine. How do you send command
Wha??? That just makes no sense at all! A CR should be chr(13) and LF should be
chr(10). Period. If in Revolution it is not, then I need to go back and edit a
whole lot of scripts!
Bob
On Oct 14, 2010, at 2:23 PM, Peter Brigham MD wrote:
Just noticed, in reading the dictionary on constant
You can use the entire line that you would use in the appropriate
command window, even changing the command process if need be, even
changing priority. You can also elevate the process with 'open
process elevated' which might get past the blocks (presumably asking
for a password if
Of course I meant numtochar() not chr(). Apparently I still have FoxPro on the
brain from years ago.
Bob
Wha??? That just makes no sense at all! A CR should be chr(13) and LF should
be chr(10). Period. If in Revolution it is not, then I need to go back and
edit a whole lot of scripts!
Monte, if the user doesn't have shell access do you think they also wouldn't
be able to execute a VBScript? Because if they *can* do VBScript, I'm sure
there's a VBS way to find out shell access permissons.
Hmm... It's a good idea but if I were locking down a Windows system I would
block
You can use the entire line that you would use in the appropriate
command window, even changing the command process if need be, even
changing priority. You can also elevate the process with 'open
process elevated' which might get past the blocks (presumably asking
for a password if needed).
On Oct 14, 2010, at 3:15 PM, Bob Sneidar wrote:
Wha??? That just makes no sense at all! A CR should be chr(13) and
LF should be chr(10). Period. If in Revolution it is not, then I
need to go back and edit a whole lot of scripts!
Bob
unix line endings are (10)
mac line endings are (13)
On 14.10.10 at 13:50 -0400 dunb...@aol.com apparently wrote:
Mark.
But script local variables do all that as well, no? It isn't a big deal,
but except for the fact that these can replace predefined constants (a feature
less available in LiveCode than in HC, especially as regards build-in
Just noticed, in reading the dictionary on constant --
CR = return = LF = linefeed = numtochar(10)
but
CRLF is listed as Equivalent to a carriage return (ASCII 13,
Control-M) followed by a line feed (ASCII 10, Control-J), implying
that carriage return = numtochar(13) linefeed.
Bob Sneidar wrote:
Wha??? That just makes no sense at all! A CR should be chr(13) and
LF should be chr(10). Period. If in Revolution it is not, then I
need to go back and edit a whole lot of scripts!
If those scripts are working do they need revision?
Here's the deal:
Rev's use of the CR
Well I was thinking more in terms of low level file I/O. Let's say I need to
have a rev stack creating files at a low level on a server, for back end
integration into something else. Those files will be accessed by another
platform, let's say unix. If I terminated my lines with lf cr, I would
on mouseUp
constant kRestartApache = apachectl -k graceful
open elevated process kRestartApache for neither
If the result empty then
answer Could not restart server.
close process kRestartApache
end if
-- process will normally close itself when finished
end mouseUp
ok, I'm
Bob Sneidar wrote:
Well I was thinking more in terms of low level file I/O.
Indeed, and here Rev bests HC by a wide margin. In HC you had no choice
but to read and write files in what is the equivalent of Rev's text
mode. To do a true binary read in HC you had to write or buy and
On Oct 14, 2010, at 4:42 PM, Monte Goulding wrote:
I'm trying to avoid trial and error testing with the client of client.
I understand.
Perhaps your customer can ask the client of the client for the
details of the lockdown so the technical team (you) can replicate it
and test against
On 10/14/10 3:06 PM, Phil Davis wrote:
On 10/14/10 12:26 PM, J. Landman Gay wrote:
I almost never use constants inside a handler, but that's just
personal style.
Me neither.
But...but...oh, never mind.
;)
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive
Monte,
Where I work we manage third parties windows machine and while on some cases
those companies block the users out of the command prompt, they usually
don't do that but one thing that I've heard they do is block their access to
ipconfig.
They can't access ipconfig.exe or cmd.exe usually
Where I work we manage third parties windows machine and while on some cases
those companies block the users out of the command prompt, they usually
don't do that but one thing that I've heard they do is block their access to
ipconfig.
They can't access ipconfig.exe or cmd.exe usually which
78 matches
Mail list logo