Search found 62 matches
- Mar 12, 2017 20:02
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
Unfortunately attachconsole fails for me if the program is called from a batch file.
- Mar 12, 2017 1:29
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
allocconsole () opens a new window but attachconsole (-1) reactivates the mouse in the existing console which is what I was looking for!
- Mar 11, 2017 18:25
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
I recently gained full control over the 16 color table entries. I can change any color in real time from inside a program, which normally you would do with the right-click-on-the-title-bar console host interface. So I'm convinced you can regain control of the mouse, or do pretty much anything to the...
- Mar 11, 2017 16:12
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
I attempted to use GetConsoleMode to look at the mode variable. It was zero before and after reset (0). So I wonder what reset (0) is doing to disable the mouse?
- Mar 11, 2017 14:08
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
I never had "quick edit mode" checked, so it does not fix the issue for me.
- Mar 11, 2017 9:57
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
Re: getmouse fails after reset (0)
I forgot to mention that this is a console app, that is, I'm running it in a "dos box". With the reset (0) in, x and y remain zero, or y goes negative. Both buttons return 0. And right click brings up the "mark, copy, paste" menu, suggesting that the console is in the wrong state...
- Mar 11, 2017 7:09
- Forum: Windows
- Topic: getmouse fails after reset (0)
- Replies: 20
- Views: 3893
getmouse fails after reset (0)
#include "windows.bi" dim as integer x,y,button reset (0) do getmouse x,y,,button print x, y, button sleep 100 loop I wrote an editor that accepts redirected input. After reading STDIN I call reset (0) to close it and allow keyboard input. But then mouse input no longer works. The above c...
- Oct 13, 2015 12:26
- Forum: Windows
- Topic: screen saver issue
- Replies: 4
- Views: 1739
Re: screen saver issue
I was able to turn the screen saver back on using a systemparametersinfo call after screenres had turned it off.
Thanks!
Thanks!
- Oct 12, 2015 17:18
- Forum: Windows
- Topic: screen saver issue
- Replies: 4
- Views: 1739
Re: screen saver issue
I thought it was sleep at first but have ruled that out by experiment. I've tried a couple of windows message monitoring programs and it seems that the fbgfx library is sending windows messages multiple times per second.
- Oct 12, 2015 14:05
- Forum: Windows
- Topic: screen saver issue
- Replies: 4
- Views: 1739
screen saver issue
I was writing a program to run all the time and display results in a small window. I noticed it was preventing the Windows 7 screen saver from starting. I whittled it down to this:
Something is going on with SCREEN. I'm just curious as to what it could be?
Code: Select all
screen 13
sleep
- Sep 29, 2015 12:59
- Forum: Windows
- Topic: windows 10 abend
- Replies: 7
- Views: 2798
Re: windows 10 abend
Yes, that was it. Integer changes size depending on the compiler. This could cause some nasty and hard to find bugs. The FB wiki says this about the integer type: Syntax: dim variable as Integer dim variable as Integer<bits> Parameters: bits A numeric constant expression indicating the size in bits ...
- Sep 29, 2015 3:13
- Forum: Windows
- Topic: windows 10 abend
- Replies: 7
- Views: 2798
Re: windows 10 abend
Thanks to those who answered my last question. This time I'm trying to compile the same code with the 64 bit compiler and I'm getting a warning at the same pointer. warning 3(1): Passing different pointer types, at parameter 4 of WRITECONSOLEINPUTA() here is my code: nRet = WriteConsoleInput(_ hStdI...
- Aug 02, 2015 21:51
- Forum: Windows
- Topic: windows 10 abend
- Replies: 7
- Views: 2798
windows 10 abend
The code below runs in Windows 7 but not 8.1 or 10. The program writes its line of text then crashes with the usual unhelpful windows message that the program has stopped responding. FBdebugger says WriteConsoleOutputCharacter is trying to write to location zero. Am I using the wrong library? #INCLU...
- Aug 11, 2013 16:07
- Forum: Windows
- Topic: anti-globbing not working in 0.90.1
- Replies: 5
- Views: 1838
anti-globbing not working in 0.90.1
I started a new project and thought i would try compiling with with 0.90.1 instead of 0.24. i quickly found that COMMAND emits a list of file names in response to input of *. a bug?
extern _crt_glob alias "_crt_glob" as integer
dim shared _crt_glob as integer = 0
print command
- Oct 25, 2010 13:37
- Forum: DOS
- Topic: shell or exec string length limit ?
- Replies: 5
- Views: 3428