Search found 351 matches
- Dec 31, 2010 14:04
- Forum: General
- Topic: How could I temporarily disable screensaver?
- Replies: 8
- Views: 2076
Okay, I looked into the sourcode of VLC (which is able to disable screensaver on my PC), and I found out that it calls simply some commands in a periodic way: xdg-screensaver reset xscreensaver-command -deactivate gnome-screensaver-command --poke I will have to test if it really works for my program...
- Dec 29, 2010 13:09
- Forum: General
- Topic: How could I temporarily disable screensaver?
- Replies: 8
- Views: 2076
sir_mud wrote:is this Xscreensaver or a DE provided screensaver utility?
From your question I guess that my hope for a portable way is hopeless :-P
In my case, this is a the KDE power management that shuts my screen off, but it's me - for other users it could be a Gnome screensaver, or a Windows *.scr...
- Dec 28, 2010 18:28
- Forum: General
- Topic: How could I temporarily disable screensaver?
- Replies: 8
- Views: 2076
How could I temporarily disable screensaver?
Hi, I am working on a little FreeBASIC program, which do not take any keyboard/mouse input. After few minutes of work, my OS (linux) is starting a screensaver, and I have to press any key or move the mouse to get back to my program. Is there any (hopefully portable) way to prevent the OS from launch...
- Dec 22, 2010 7:26
- Forum: General
- Topic: How to write to screen.... in a FASTER way?
- Replies: 11
- Views: 1791
@TJF: Ah zoo, ich spreche kein deutsche. Das ist a hund. Pommes-frittes bitte. (and that's it about my german skills) :-D But I will definitely look into these examples, looks interesting (and maybe passing the whole website into a translator will help me to understand what it's about) :) @dafhi: Ye...
- Dec 21, 2010 18:37
- Forum: General
- Topic: How to write to screen.... in a FASTER way?
- Replies: 11
- Views: 1791
Hi all, thanks for all your suggestions :) I replaced all my DIM declarations by STATIC declarations, but it doesn't changed the overall speed in any noticeable way... Still, the most consuming part is the operation of writing to screen. @TJF: I have absolutely no experience with hardware accelerati...
- Dec 19, 2010 16:57
- Forum: General
- Topic: How to write to screen.... in a FASTER way?
- Replies: 11
- Views: 1791
I hope I am not mistaken, and here are some very slight improvements in the loops Merci cher compatriote! :) Thanks, I edited my first post to add your optimizations (and also added another very little one that I noticed now). Still, as you say - these loops optimizations are really thin, and doesn...
- Dec 19, 2010 9:58
- Forum: General
- Topic: How to write to screen.... in a FASTER way?
- Replies: 11
- Views: 1791
How to write to screen.... in a FASTER way?
Hi all! I am currently working on a program which is trying to refresh the screen at a rate of ~60hz. Unfortunately, this is painfully *slow* :( The screen size I am working on is 160x144 magnified 4x (that is really 640x576). This is my current code: #MACRO DetectScreenChanges() LcdModified...
- Nov 17, 2010 18:56
- Forum: General
- Topic: [SOLVED] NumLock Status ?
- Replies: 3
- Views: 614
Re: NumLock Status ?
BasicScience wrote:Is there a method to determine the status of NumLock ?
What about this one?
http://www.freebasic.net/forum/viewtopi ... ht=numlock
- Nov 15, 2010 18:13
- Forum: General
- Topic: base64 encoding/decoding
- Replies: 5
- Views: 1182
Re: base64 encoding/decoding
Anybody knows how to perform Base64 encoding/decoding on a file in freebasic? Hi, Here you will find a neat FreeBASIC function to encode a string into Base64: gopher://gopher.viste-family.net/1/fb-stuff/ I extensively tested this function, and it works very well (I'm using it in my web server proje...
- Nov 14, 2010 10:12
- Forum: Beginners
- Topic: How to avoid nested functions?
- Replies: 10
- Views: 1425
Hello! Thanks evryone for your attention! :) @TJF - Yes, this is exactly what I was looking for! I am totally discovering the declaring-functions-as-variable stuff, and I am amazed that such cool tricks are possible with FreeBASIC. I am using that now in my program (declaring two different functions...
- Nov 14, 2010 9:06
- Forum: General
- Topic: Convert a 2-complement number into its signed value (quick?)
- Replies: 16
- Views: 1471
- Nov 13, 2010 19:45
- Forum: Beginners
- Topic: How to avoid nested functions?
- Replies: 10
- Views: 1425
How to avoid nested functions?
Hello, I am playing with one of my programs, trying to make it as fast as I can. The program is processing data coming from various files, and there may be two different types of files (each type requires a different processing). I wrote two different functions, each function is specialized into pro...
- Nov 13, 2010 19:32
- Forum: General
- Topic: Convert a 2-complement number into its signed value (quick?)
- Replies: 16
- Views: 1471
Convert a 2-complement number into its signed value (quick?)
Hi people! I'm looking after a way of converting a UBYTE representing a 2-complemented number into a signed BYTE. So far, I am using this: FUNCTION UbyteToByte(BYREF UnsignedByte AS UBYTE) AS BYTE REM Returns a signed value from a two-complemented integer IF (UnsignedByte AND &b10000...
- Nov 12, 2010 13:07
- Forum: Linux
- Topic: Graphic window vanishes in a second
- Replies: 4
- Views: 1213
Thanks to both of you, I truly appreciate all the information provided here. Somehow the window that pops up is still fairly small, is there a way to make it larger or even fill the screen? Sure, but it won't be SCREEN 13 anymore. You need to use SCREENRES instead. SCREENRES 800, 600 SLEEP or, for ...
- Nov 11, 2010 19:57
- Forum: Beginners
- Topic: Whats with the Inkey() command?
- Replies: 11
- Views: 1062
@Fox Only the q key actually responds with your method. That's because you don't use my method - you sabotaged your own program :-D You're making a "SELECT CASE UCASE(LastKey)", and then looking after "CASE "w"". There is no suprise that it doesn't work - an UCASE won't give you a "w" ever. The "q"...