Search found 51 matches

by EssoAir
Thu Nov 20, 2014 12:47 pm
Forum: Talking LiveCode
Topic: "contains" but for matching index?
Replies: 12
Views: 7366

Re: "contains" but for matching index?

rkriesel wrote:The dictionary entry for the "contains" operator says "See also: ... begins with Operator."

Does that work for you?

-- Dick
SLICK! Works perfectly thanks man!
by EssoAir
Thu Nov 20, 2014 10:41 am
Forum: Talking LiveCode
Topic: "contains" but for matching index?
Replies: 12
Views: 7366

Re: "contains" but for matching index?

Hi EssoAir, I think you want "is among" except for put "y" is among the chars of "xyz" Not clear how that is different from put "x" is among the chars of "xyz" Simon Let me give you the Javascript implementation so that maybe it's more clear. function isAmatch(string, substring) { for(var i = 0; i ...
by EssoAir
Thu Nov 20, 2014 9:44 am
Forum: Talking LiveCode
Topic: "contains" but for matching index?
Replies: 12
Views: 7366

"contains" but for matching index?

Quick question: How can I use "contains" (or any command, actually) to evaluate if a substring is contained within a string AND the indexes match up so that "xyz" contains "x" == true and "xyz" contains "xy" == true but "xyz" contains "yz" == false and "xyz" contains "y" == false I could write this ...
by EssoAir
Sun Nov 16, 2014 8:23 am
Forum: Talking LiveCode
Topic: Scroling a field while user types?
Replies: 2
Views: 2677

Re: Scroling a field while user types?

Hi EssoAir, Well you actually almost had it right... the right idea but try this send "scrollMe" to me in 1 millisec the wait you have blocks all. Now that 1 millisec is waaayyyyyy too short, and is the reason for that recursion error, not the end of the scrolling fld. The screen hasn't finished up...
by EssoAir
Sun Nov 16, 2014 6:45 am
Forum: Talking LiveCode
Topic: Scroling a field while user types?
Replies: 2
Views: 2677

Scroling a field while user types?

Hey, I was writing this simple game and ran into a problem that I understand, but don't know how to solve in LiveCode. Heres the script: https://dl.dropboxusercontent.com/u/122745818/Game.livecode The part I'd like to highlight is this: on scrollMe if stillScrolling = 1 then set the scroll of me to ...
by EssoAir
Wed Nov 12, 2014 1:41 pm
Forum: Talking LiveCode
Topic: Writing a custom syntax highlighter?
Replies: 5
Views: 4379

Re: Writing a custom syntax highlighter?

Thanks guy! I'm not really sure yet, tbh. I'm just trying to figure everything out. I'll have to check out both of those suggestions once I get to the implementation stage.
by EssoAir
Wed Nov 12, 2014 12:23 pm
Forum: Talking LiveCode
Topic: Maintaining a single shell() instance across multiple calls?
Replies: 0
Views: 1670

Maintaining a single shell() instance across multiple calls?

Hey guys! So I'm working on a project right now. Part of it requires that I make an install wizard for the Dlang compiler called DMD. I was really just hoping to use LiveCode's shell() command to script the install process without the user seeing any command windows open or anything. The problem is,...
by EssoAir
Fri Oct 31, 2014 3:54 am
Forum: Talking LiveCode
Topic: Writing a custom syntax highlighter?
Replies: 5
Views: 4379

Writing a custom syntax highlighter?

Hey guys! I know this is nothing new, syntax highlighting has been implemented in every language since the dawn of multi-colored screens. But I can't seem to find someone that's implemented it in LiveCode. I'm more of the C-like syntax type coder and so I kinda need help here. I want make an IDE for...
by EssoAir
Sun Jul 27, 2014 4:20 am
Forum: Announcements
Topic: We're Funding LiveCode For the Web
Replies: 40
Views: 54982

Re: We're Funding LiveCode For the Web

The answer is simple. Putting your stacks into a browser without the use of a plugin will require a LiveCode to javascript interpreter, which is a very large undertaking. RR is a small company and does not have the resources to do this without additional funding. The alternative is to wait until th...
by EssoAir
Thu Apr 17, 2014 6:57 pm
Forum: Mac OS
Topic: Using LiveCode to shutdown, logout and restart the Mac
Replies: 15
Views: 13935

Re: Using LiveCode to shutdown, logout and restart the Mac

Mag wrote:I wonder if it is possible to use LiveCode to perform operations as log out, restart and shut down your Mac... :oops:
Wouldn't it be easier to do in AppleScript?
by EssoAir
Thu Apr 17, 2014 6:51 pm
Forum: Android Deployment
Topic: Remote stack (via internet) on Android?
Replies: 12
Views: 7761

Re: Remote stack (via internet) on Android?

I need to do some more obscuring work, but here is the basic thing I got going //Within the card on openCard if the environment <> "mobile" then exit openCard mobileControlCreate "input", "urlBar" mobileControlSet "urlBar", "visible", true put the rect of control "urlBarRect" into iRect //urlBarRect...
by EssoAir
Thu Apr 17, 2014 6:13 pm
Forum: Android Deployment
Topic: Remote stack (via internet) on Android?
Replies: 12
Views: 7761

Re: Remote stack (via internet) on Android?

Klaus wrote:Hi Esso,
EssoAir wrote:Can a command be run from a string variable?
Yes, you could use the "DO" command for example, Mr. Thrillseeker :D


Best

Klaus
Wow i feel stupid! I saw "do" in the revdocs and assumed it was a do-while loop like in most programming languages.

Thank you good sir!
by EssoAir
Thu Apr 17, 2014 4:43 pm
Forum: Android Deployment
Topic: Remote stack (via internet) on Android?
Replies: 12
Views: 7761

Re: Remote stack (via internet) on Android?

tl;dr I get you all have concerns but I'd really appreciate it if you let me deal with the apple review process and instead just help me out with the question at hand, that being: Can a command be run from a string variable? For clarity, I'm working on an app. It will be an easy to use application f...
by EssoAir
Thu Apr 17, 2014 4:39 pm
Forum: Android Deployment
Topic: Remote stack (via internet) on Android?
Replies: 12
Views: 7761

Re: Remote stack (via internet) on Android?

If a stack file is merely a media container and includes no code at all, it may be viewed as compliant with Apple's terms. However, even then it's possible with just property settings to alter the execution path of an app, and in such cases it may be seen as a violation. If one were sufficiently mo...
by EssoAir
Thu Apr 17, 2014 3:17 pm
Forum: Android Deployment
Topic: Remote stack (via internet) on Android?
Replies: 12
Views: 7761

Re: Remote stack (via internet) on Android?

But what if Apple didn't know this is how it worked? Come on! 8) Ok ok i know its a long shot, but can you load a command as a string in to a variable and excecute it? Can this be done on desktop? Like, for example, can I have a user enter a command into a text field and have that command be run by...

Go to advanced search