Search found 162 matches

by trenatos
Thu Jul 11, 2013 7:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Global variable, what am I doing wrong?
Replies: 4
Views: 3321

Global variable, what am I doing wrong?

When clicking a button, I create a global variable called connectedStatus and setting it to having the value "0", it's the status of a network connection. There's a button that says log in, when you click on it, it should read the status of connectedStatus and either pop up the login window, or disc...
by trenatos
Mon Jul 08, 2013 4:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Text entry field, limit characters and script? [solved]
Replies: 2
Views: 2683

Re: Text entry field, limit characters and executuing script

I just found the answer to the enter thing, indeed enterInField and returnInField solved the issue.

Limiting the fields to x characters, which I also found the answer to, a simple script for onKeyDown that counts the characters in the field, if under the limit the pass.

:)
by trenatos
Sun Jul 07, 2013 11:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Text entry field, limit characters and script? [solved]
Replies: 2
Views: 2683

Text entry field, limit characters and script? [solved]

So I'm messing with my chat application, and I'm trying to figure out how I can 1. limit the text in the text box. 2. Trigger a script when the user hits the Enter key. 3. Use the tab key to move from the text box to the send key. I tried messing with the tab order (Layer order) but all it tabs betw...
by trenatos
Sun Jul 07, 2013 8:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Variables, image flip and delay? Going insane [Solved]
Replies: 5
Views: 3764

Re: Variables, image flip and delay? Going insane

Thanks guys, I got it working :)
Together with my mostly-working socket client/server I'll be making a simple game with online highscores.
by trenatos
Sun Jul 07, 2013 5:47 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Variables, image flip and delay? Going insane [Solved]
Replies: 5
Views: 3764

Re: Variables, image flip and delay? Going insane

Ok, I have a picture of a dragon, I want it to point in the direction of travel. x is simply the key being pressed. I have a global variable called direction, which equals either right or left, depending on the last direction (button) pushed. I'm having trouble flipping the image according the state...
by trenatos
Sun Jul 07, 2013 2:00 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets, help a newbie?
Replies: 6
Views: 5048

Re: Sockets, help a newbie?

Playing some more witch sockets, I've now run into a buffer issue. Over the course of connecting/disconnecting and sending a few messages, it seems LiveCode messes up the buffer. I've checked my server code and it's sending the correct text, but LC seems to not be updating the buffer properly. Is th...
by trenatos
Sat Jul 06, 2013 9:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Variables, image flip and delay? Going insane [Solved]
Replies: 5
Views: 3764

Variables, image flip and delay? Going insane [Solved]

As I'm messing about reading a tutorial on making a simple game, I thought I'd make a few small simple changes. I'm trying to make the image (Button) flip based on a variable, but I can't get it to work. Using a global named direction, defaults to "left" In a key function for moving, I added this: i...
by trenatos
Fri Jul 05, 2013 8:57 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: german umlaute
Replies: 8
Views: 6808

Re: german umlaute

I'm working with Swedish characters (åäö) and this helped me out too :)
by trenatos
Fri Jul 05, 2013 5:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets, help a newbie?
Replies: 6
Views: 5048

Re: Sockets, help a newbie?

I'm using it together with one of my ColdFusion servers, to learn I'll be writing a chat application that syncs with an online chat I built. And next up will probably be a file-synching tool. In extension I'd love to look at creating some games too. I'm impressed with LiveCode so far. I've messed wi...
by trenatos
Fri Jul 05, 2013 9:06 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets, help a newbie?
Replies: 6
Views: 5048

Re: Sockets, help a newbie?

Nevermind!

I thought sockets were bi-directional, and nothing happened.
But when I set up the server to respond on port 9001, it seems to have worked just fine! (At least a preliminary test)

Thanks Newbie4, I owe you a beer :)
by trenatos
Fri Jul 05, 2013 9:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets, help a newbie?
Replies: 6
Views: 5048

Re: Sockets, help a newbie?

Thank you very much!

The LiveCode app not sends a message and I can see it's being received by the server.

But I can't figure out the reading end.

First off, you mention port 9001, don't you mean 2001?
by trenatos
Fri Jul 05, 2013 8:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sockets, help a newbie?
Replies: 6
Views: 5048

Sockets, help a newbie?

Greetings! This is my first post on the forum so I guess I'll introduce myself. I'm Marcus, I'm a CFML(Web) programmer wanting to get into desktop software. Right now I'm looking into creating a simple chat program that connects to one of my servers using sockets. The server listens and simply echoe...

Go to advanced search