.............................................
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 4
- Joined: Mon Sep 05, 2022 11:57 am
.............................................
.......................................
Last edited by theonewhoasked on Mon Sep 05, 2022 1:59 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hello, how do I make a button that counts my clicks
Where's your "Hello, my name is XXXXX, and I am an organ grinder in Bombay." kind of introduction?
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hello, how do I make a button that counts my clicks
Do you mean 'click on a button onscreen',has to press a button
or press a key on a keyboard?
---
- Attachments
-
- Depressed.livecode.zip
- Stack.
- (1.11 KiB) Downloaded 149 times
Last edited by richmond62 on Mon Sep 05, 2022 12:14 pm, edited 1 time in total.
Re: Hello, how do I make a button that counts my clicks
theonewhoasked wrote: ↑Mon Sep 05, 2022 12:00 pmHow would one make such an application, I am stuck
Create an application where the user has to press a button. Each time the user presses the button, this must be registered in a script local variable. The values in this must then be displayed on the screen as part of a text string.
To add a value to a variable, you can use the add command like this: add 1 to sCounter. The result should be displayed as follows: You have pressed the button 6 times.
Code: Select all
local sCounter = 0
on mouseUp pButtonNumber
add 1 to sCounter
put "You have pressed the button "& sCounter &" times." into field 1
end mouseUp
Be kind, we all have our own wars.
https://torocruzand.com/
https://torocruzand.com/
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hello, how do I make a button that counts my clicks
andrest's example counts mouse button clicks.
-
- Posts: 4
- Joined: Mon Sep 05, 2022 11:57 am
Re: Hello, how do I make a button that counts my clicks
Thank you to you both.
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hello, how do I make a button that counts my clicks
- Attachments
-
- Depressed 2.livecode.zip
- Stack.
- (5.24 KiB) Downloaded 158 times
Re: Hello, how do I make a button that counts my clicks
Hah.
So we have a new user, "theonewhoasked".
Hi.
You have two posts on this forum. Before we get too involved, tell us what I asked in the other thread. How much experience do you have with LiveCode? Does your teacher want you to use LC to answer the tasks he has set for you?
Craig
So we have a new user, "theonewhoasked".
Hi.
You have two posts on this forum. Before we get too involved, tell us what I asked in the other thread. How much experience do you have with LiveCode? Does your teacher want you to use LC to answer the tasks he has set for you?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: .............................................
?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Hello, how do I make a button that counts my clicks
These forums have no such requirement.richmond62 wrote: ↑Mon Sep 05, 2022 12:04 pmWhere's your "Hello, my name is XXXXX, and I am an organ grinder in Bombay." kind of introduction?
It's not even a social convention here: I've not made such a post, and I don't recall many of the regular having done so either.
This is a support forum. Posts here seek information about using LiveCode more effectively.
It is sometimes also a social venue, but relatively few use it as such. Either way is fine, but let's please avoid gatekeeping that gives the impression newcomers aren't welcome unless they share personal info.
Everyone interested in LiveCode is welcome here, and any earnest question question about using LiveCode is welcome here also.
If the environment is helpful and friendly, the subset of users who want to use this forum socially will organically do so.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: .............................................
I wondèr why the OP has deleted the title and the original post, both here and with another post?
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: .............................................
If the OP would like these threads deleted I can do so.richmond62 wrote: ↑Mon Sep 05, 2022 4:16 pmI wondèr why the OP has deleted the title and the original post, both here and with another post?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10095
- Joined: Fri Feb 19, 2010 10:17 am
Re: .............................................
By deleting the original question the OP has guaranteed:
1. The thread is virtually valueless for anyone else.
2. There is no chance of anyone else doing a web search to find out where those questions originated (? were plagiarized ?).
1. The thread is virtually valueless for anyone else.
2. There is no chance of anyone else doing a web search to find out where those questions originated (? were plagiarized ?).
Re: .............................................
The real question is how many similar responses does it take to delete this pointless thread



Re: .............................................
Gets the award for the most meta post.