Search found 23 matches

by studawg66
Wed Sep 29, 2021 8:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launch Persistent Shell
Replies: 12
Views: 10815

Re: Launch Persistent Shell

Ah, yes. Naming the task! This worked perfectly! To summarize, I disable the screensaver by calling my "SleepDisable.exe" program and NAME it "SleepDisable" for future, using the "/min" to minimize the window immediately, and the "/k" parameter to keep the window open, which keeps my SleepDisable fu...
by studawg66
Mon Sep 27, 2021 8:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launch Persistent Shell
Replies: 12
Views: 10815

Re: Launch Persistent Shell

Thanks for these responses! I have tried a couple of the suggestions but it is not accomplishing what I'm looking for. I think it would help if I provided more detail on what I'm doing. I built an external executable that disables the Windows screensaver by wrapping the following python code in an e...
by studawg66
Fri Sep 24, 2021 9:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launch Persistent Shell
Replies: 12
Views: 10815

Re: Launch Persistent Shell

I thought this next step would be easy but I'm struggling. How would I close out this cmd window on closing the LC application? I tried several things in the "closeStack" routine, like: put shell("exit") put shell("cmd-dot-exe exit") ...and some other iterations of that. But I can't seem to find a w...
by studawg66
Fri Sep 24, 2021 5:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launch Persistent Shell
Replies: 12
Views: 10815

Re: Launch Persistent Shell

Thanks, Bernard! I was able to make a slight modification to your suggestion and it worked like a charm! I added the "min" flag to minimize the cmd window as soon as it launches, so that gets it out of the way and lets it do its thing. get shell("start /min x /k C:/temp/myprogram dot exe") where x i...
by studawg66
Thu Sep 23, 2021 6:08 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to prevent Windows from Screensaver while program running
Replies: 5
Views: 5076

Re: How to prevent Windows from Screensaver while program running

AxWald, Dredging up an old thread in desperation. Haha. I tried your approach and it works, but running that external executable seems to be a blocking operation, because my clock readout freezes for a second or two until it finishes executing. Since my application is a precision clock, that is a no...
by studawg66
Wed Sep 22, 2021 10:04 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Launch Persistent Shell
Replies: 12
Views: 10815

Launch Persistent Shell

I have an external script that I want to trigger on openStack, but the cmd (shell) window needs to stay open. If I run this executable outside of LC, the cmd window stays open because of my input command, so it says "Press enter to exit" and awaits that key stroke. But whenever I do a "get shell(myS...
by studawg66
Tue Sep 21, 2021 1:44 pm
Forum: Windows
Topic: Using Winbase.h to Disable Screensaver
Replies: 1
Views: 3469

Using Winbase.h to Disable Screensaver

I have used "ctypes" in Python to implement a screensaver disable in my Python programs, based on the SetThreadExecutionState as described here: https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate https://eddiejackson.net/wp/?p=23435 But now I need to implem...
by studawg66
Thu Apr 18, 2019 9:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to prevent Windows from Screensaver while program running
Replies: 5
Views: 5076

Re: How to prevent Windows from Screensaver while program running

I thought of doing something like that, but was hoping for something a bit more elegant. I found some information in StackExchange that said there is a function in the Windows API called "SetThreadState" that programs like PowerPoint and Windows Media Player call on for this very task, but not sure ...
by studawg66
Thu Apr 18, 2019 7:54 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to prevent Windows from Screensaver while program running
Replies: 5
Views: 5076

How to prevent Windows from Screensaver while program running

I have a Windows app built in LC that I want to disable the screensaver while running. You know, like all of the media player apps disable the screensaver while in "full screen" mode, so that you don't have to wiggle the mouse every 5 minutes while watching a movie. How could I achieve this in LC?
by studawg66
Tue Feb 07, 2017 8:22 pm
Forum: Windows
Topic: Direct Show Player Causing APPCRASH
Replies: 3
Views: 4392

Re: Direct Show Player Causing APPCRASH

Just an update on this...I have been running this app in 8.1.2 for a few weeks now and have not seen this appcrash. So I'm not sure what changed that would have helped this, but maybe they found some memory issues that they resolved. I'm going to assume it is fixed and move on.
by studawg66
Mon Jan 23, 2017 8:56 pm
Forum: Windows
Topic: Direct Show Player Causing APPCRASH
Replies: 3
Views: 4392

Re: Direct Show Player Causing APPCRASH

Bump. Anyone? I still haven't found a solution to this.
by studawg66
Mon Nov 21, 2016 8:18 pm
Forum: Windows
Topic: Direct Show Player Causing APPCRASH
Replies: 3
Views: 4392

Direct Show Player Causing APPCRASH

I have an app built in an old version of RunRev that I'm trying to get stable in the newer 8.1 or 8.1.1 releases. It seems to do everything well, including play my multicast streaming video (thanks to the new DS player!), but if I leave the program running for several days the app eventually crashes...
by studawg66
Mon Nov 21, 2016 8:06 pm
Forum: Windows
Topic: LC crash when saving standalone
Replies: 7
Views: 6863

Re: LC crash when saving standalone

i got it finally... i have to cancel all pendingmessages then it's working, it must be a bug i think, before 8.02 there was no problem like this Can you elaborate on what you did here? I've had the same issue with the 8.x versions crashing, in some cases crashing before ever completing the standalo...
by studawg66
Thu Jun 02, 2016 10:01 pm
Forum: Windows
Topic: New Direct Show Player Object - Does it work?
Replies: 21
Views: 20321

Re: New Direct Show Player Object - Does it work?

I'm having trouble getting my development environment to work properly to test myself, but my app opens a ".sdp" file that references an H.264 UDP multicast stream (RTP). The little testing I have done so far seems to play ".wmv" files just fine, but others are hit and miss, and the ".sdp" files th...
by studawg66
Thu Jun 02, 2016 6:39 pm
Forum: Windows
Topic: New Direct Show Player Object - Does it work?
Replies: 21
Views: 20321

Re: New Direct Show Player Object - Does it work?

Hi all, just installed the LAVFilter package, see page 1 of this thread, and now I can even play FLV videos and some MOV files with e.g. the Sörensen 3 codec! So don't hesitate and install that stuff, it's free, good times are coming :-) Best Klaus Klaus, have you tried opening a multicast stream i...

Go to advanced search