Hide cursor, yes, no, depends... HELP!
Moderator: Klaus
-
- Posts: 6
- Joined: Sun Jan 05, 2020 5:32 am
Hide cursor, yes, no, depends... HELP!
A button script to play a series of videos will hide the cursor with:
Set cursor to none
set lockcursor to true
when the button is clicked with the mouse (its a mouseup handler)
But if I attempt to activate the script in the OpenStack handler so that it runs on startup, the cursor remains visible (everything else is fine). I have tried a variety of things, including putting the script in the stack vs the button; tried "click the mouse at" instead of "send mouseup to", tried delays... but if the script is activated at launch (OpenStack) the cursor will show. Again, it hides as intended if the button is clicked with the mouse. (but I want it to run at app launch)
Why, and possible solutions?
is there a postOpenstack?
Thanks
Set cursor to none
set lockcursor to true
when the button is clicked with the mouse (its a mouseup handler)
But if I attempt to activate the script in the OpenStack handler so that it runs on startup, the cursor remains visible (everything else is fine). I have tried a variety of things, including putting the script in the stack vs the button; tried "click the mouse at" instead of "send mouseup to", tried delays... but if the script is activated at launch (OpenStack) the cursor will show. Again, it hides as intended if the button is clicked with the mouse. (but I want it to run at app launch)
Why, and possible solutions?
is there a postOpenstack?
Thanks
Re: Hide cursor, yes, no, depends... HELP!
Hi.
There is a thread on this subject from a few weeks ago. I will try to find it when I get into my office tomorrow, but since I live in the United States, likely someone will get it for you before that.
But since you ask for a place "later" in the opening process, have you tried the card script? An openCard handler there comes, er, later.
Craig
There is a thread on this subject from a few weeks ago. I will try to find it when I get into my office tomorrow, but since I live in the United States, likely someone will get it for you before that.
But since you ask for a place "later" in the opening process, have you tried the card script? An openCard handler there comes, er, later.
Craig
Re: Hide cursor, yes, no, depends... HELP!
Sorry, but I have to point out that it doesn't. openCard is triggered before openStack when a stack/app is opened.
[Edit] My comment above was incorrect, sorry! See below.
Last edited by SWEdeAndy on Mon Jul 08, 2024 3:20 pm, edited 2 times in total.
Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hide cursor, yes, no, depends... HELP!
openCard is triggered BEFORE openStack . . .
someone, somewhere, somewhen was being deliberately obtuse, and for why forbye; and I jalouse we'll never ken.
someone, somewhere, somewhen was being deliberately obtuse, and for why forbye; and I jalouse we'll never ken.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Hide cursor, yes, no, depends... HELP!
Oh? Put this in a stack script, save the stack, close it, then open it.
Code: Select all
on openStack
LogMsg the params
end openStack
on openCard
LogMsg the params
end openCard
on LogMsg s
put s &cr after msg
end LogMsg
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
Re: Hide cursor, yes, no, depends... HELP!
He quoted me, so I'm the one who got it wrong.FourthWorld wrote: ↑Mon Jul 08, 2024 11:51 amOh? Put this in a stack script, save the stack, close it, then open it.

Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Re: Hide cursor, yes, no, depends... HELP!
@SWEdeAndy
Hi.
We all get stuff wrong. I was a little taken aback by the red colored font, however.
Craig
Hi.
We all get stuff wrong. I was a little taken aback by the red colored font, however.

Craig
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hide cursor, yes, no, depends... HELP!
Well, all I can say is that I was gae glad it was you that got it wrong as I was beginning to wonder.
Re: Hide cursor, yes, no, depends... HELP!
Haha, what a mess - sorry Craig, the red font was not there originally, it was my edit, meant to indicate that my text was incorrect (as there's no strike-thru style to apply). I could just have deleted my whole post, but then the thread would be so confusing to everyone else...

Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Hide cursor, yes, no, depends... HELP!
I'm not sure I understand the question. Any handler that handles a message would need to pass it for others further in in the message queue to handle it.
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
Re: Hide cursor, yes, no, depends... HELP!
Richmond;
Craig
Deliberately obtuse?someone, somewhere, somewhen was being deliberately obtuse, and for why forbye; and I jalouse we'll never ken.

Craig
Re: Hide cursor, yes, no, depends... HELP!
Hey, anyone recall that this is a thread about hiding the cursor?
@rfarnold47.
Did that other thread help at all?
Craig
@rfarnold47.
Did that other thread help at all?
Craig
Last edited by dunbarx on Mon Jul 08, 2024 4:10 pm, edited 1 time in total.
Re: Hide cursor, yes, no, depends... HELP!
Indeed. It wasn't really a question, just me being extremely cautious when stating facts now, given my failure in that area earlier in the thread... So, just in case this would be a day when I get everything wrong, I put a question mark after things I say here...FourthWorld wrote: ↑Mon Jul 08, 2024 3:55 pmI'm not sure I understand the question. Any handler that handles a message would need to pass it for others further in in the message queue to handle it.


Andreas Bergendal
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
Independent app and system developer
Free LC dev tools: https://github.com/wheninspace
(WIS_WebDeployHelper, WIS_ScriptDependencies, WIS_BrowserAnimation)
WhenInSpace: https://wheninspace.com
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hide cursor, yes, no, depends... HELP!
Deliberately obtuse making openCard 'fire' before openStack . . .
This comment is, thankfully, now redundant.
This comment is, thankfully, now redundant.