Search found 147 matches

by podvornyak
Feb 21, 2017 9:07
Forum: General
Topic: Squares
Replies: 8041
Views: 771479

Re: Squares

I found a bug in the FB 1.05 Linux 64 bit ... it won't sleep inside the loop at line 82 It sleeps until key event. Checkout by adding delay to sleep. And state of sleep is global. Yep. It is, probably, kind a bug, but no. It is it's default behavior. sleep inkey() ' to clear keyboard buffer. "...
by podvornyak
Feb 17, 2017 2:35
Forum: General
Topic: Squares
Replies: 8041
Views: 771479

Re: Squares

I logged out of my Linux as user and logged back in and now the console won't open...?? I can run graphic programs where you specify screenres , console apps wont open... and the FBIDE run > command prompt , won't open cmd.exe I can go to "Wine > programs > FreeBasic > open-console and the con...
by podvornyak
Feb 13, 2017 16:58
Forum: Beginners
Topic: Memory coping with assembler.
Replies: 11
Views: 2843

Re: Memory coping with assembler.

The Black Desert Online game runs as a full-screen app. So of course it's going to block mouse and keyboard events from going to other windows. What else would you expect? Nope. It runs both - windowed and fullscreen. Even - collapse to system tray for working in background. I was wondering - why, ...
by podvornyak
Feb 13, 2017 14:37
Forum: Beginners
Topic: Memory coping with assembler.
Replies: 11
Views: 2843

Re: Memory coping with assembler.

I suspect your performance issues are not coming from getmouse itself but your use of getmouse. Perhaps you need to compress mouse events. Remember that mouse events can happen many times faster than keyboard events, maybe dozens of times per second during movement. Hmm... Maby you are right. But i...
by podvornyak
Feb 13, 2017 13:13
Forum: Beginners
Topic: Memory coping with assembler.
Replies: 11
Views: 2843

Re: Memory coping with assembler.

I could not reproduce your performance issue with getmouse() - are you sure that getmouse is the cause? Yep. Cause keyboard events move geometry smoothly. Try to load OBJ file with, approximately, one million vertexes. For my i3 2-nd generation it is an edge of performance. Some additional tips: Th...
by podvornyak
Feb 13, 2017 11:07
Forum: Beginners
Topic: Memory coping with assembler.
Replies: 11
Views: 2843

Re: Memory coping with assembler.

... Hey Man. I'm back. Can you help me once more? I just need point to direct mouse events... probably assembler approach. I got big delay with getmouse function. Maby i'v just coded it wrong... Anyway - i'm looking for advice. No more. Here is my long started project code. OBJ file is require. ' '...
by podvornyak
Oct 05, 2016 7:36
Forum: General
Topic: Allocating a Fixed-Length Array in a Constructor?
Replies: 16
Views: 2122

Re: Allocating a Fixed-Length Array in a Constructor?

How about such way? type HMENU as integer a,b,c end type type MENU public: declare constructor(byval elementcount as uinteger) declare destructor() protected: as HMENU ptr hmenu end type constructor MENU(byval elementcount as uinteger) this.hmenu = allocate(elementcount*sizeof(HMENU)) end constructo...
by podvornyak
Sep 16, 2016 8:25
Forum: Beginners
Topic: Keyboard and mouse press emulation.
Replies: 5
Views: 1662

Re: Keyboard and mouse press emulation.

Got some clearance. Message system is working, until i run one application. Game, actually. Game with anti-cheat system, that blocks some messages for all applications... Even notepad stops recive messages. My fault. Sorry.
by podvornyak
Sep 15, 2016 7:19
Forum: Beginners
Topic: Keyboard and mouse press emulation.
Replies: 5
Views: 1662

Re: Keyboard and mouse press emulation.

In deed... Where you've been earlier? XD Anyway. That is not working with directx context, as i've mentioned before. Even if any kind of directx context is rununig, events not working in other application. Curious. #Include once "windows.bi" Dim As HWND note_handle note_handle=FindWindow(&...
by podvornyak
Sep 14, 2016 22:08
Forum: Beginners
Topic: Keyboard and mouse press emulation.
Replies: 5
Views: 1662

Re: Keyboard and mouse press emulation.

I have found solution for keyboard. So freaky WinAPI. Pity, that it is works only with GUI. For directx contexts requied directx sdk. Moving forward to assembler and 16h bios interruption. Any advice?.. #Include once "windows.bi" Dim As HWND note_handle, note_edit note_handle=FindWindow(&q...
by podvornyak
Sep 12, 2016 22:15
Forum: Libraries & Headers
Topic: CSFML-Audio (Windows and Linux 32/64-bit)
Replies: 32
Views: 13886

Re: CSFML-Audio (Windows and Linux 32/64-bit)

Check that the links to libs is correct. "File too short". Probably you linked wrong file.
by podvornyak
Sep 10, 2016 16:29
Forum: Beginners
Topic: Keyboard and mouse press emulation.
Replies: 5
Views: 1662

Keyboard and mouse press emulation.

http://www.freebasic.net/forum/viewtopic.php?p=120456#120456 Asking for help. I've tried code from that post and, unfortunaly, it is not working. I have Windows 7 64 bit. I've tried different methods to send keypress to application. SendMessage, PostMessage, SendInput, keybrd_event and mouse_event. ...
by podvornyak
Feb 17, 2016 22:06
Forum: Sources, Examples, Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 110
Views: 41054

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Looks like the buffer size of a network socket from OS is 8 KB. (i tried different sizes in GetData() too) 10 MB = 10,485,760 bytes 10 MB / 256 KB = 40 packages 10 MB / 8 KB = 1280 packages time to send and receive 1280 packpackages = 10 MB in chunks of 8 KB : 1.15 seconds. time to send and receive...
by podvornyak
Jul 27, 2015 8:30
Forum: Linux
Topic: curses/ncurses
Replies: 50
Views: 20810

Re: curses/ncurses

Created a link to libncurses.so.5.9 as libtinfo.so.5. ROSA Linux. Fork of Mandriva. Everything seems working fine. ... search for libncurses* and make a link to the lib you found. example: ln -s /usr/lib/libtinfo.so.5 /usr/libncurses.so Can someone add this useful info to the wiki please? Joshy Mak...
by podvornyak
Mar 02, 2015 4:34
Forum: Beginners
Topic: For Loop Decrement
Replies: 4
Views: 1308

Re: For Loop Decrement

Code: Select all

for x as integer = 0 to 255
    for y as integer = 8 to 1 step -1
        print y;
    next y
    print
next x