Search found 1037 matches

by Gablea
Feb 14, 2019 8:59
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 110

Re: Keyboard Function not detecting F10

If i know how to use that I would :) I have the following set up


Dim Key_1 as Long = "&h31"

Code: Select all

Do
       key = Hex(GetKeyNB)
       If key = Key_1 then
               Print "KEY 1 Was Pressed"
       End  If
   Loop Until key = 27 ' ESC
by Gablea
Feb 13, 2019 23:21
Forum: General
Topic: [Solved] How to check time and date on a file
Replies: 23
Views: 2798

Re: How to check time and date on a file

I would like to say First off Sorry for the late Replay on here I have been very busy and only just remembered to update you all

I would like to say thank-you to dodicat as his code works in Windows as well as DOS (not tried on linux yet)

how do you mark the thread as solved?
by Gablea
Feb 13, 2019 21:33
Forum: General
Topic: Keyboard Function not detecting F10
Replies: 4
Views: 110

Keyboard Function not detecting F10

Hi everyone I am using this code to control the Keyboard function GetKeyNB() as integer dim as string key key = inkey select case len(key) case 0 return 0 case 1 return key[0] case 2 return key[0] + (key[1] shl 8) end select end function It works great apart from it does not detect the F10 key. Do I...
by Gablea
Feb 05, 2019 8:58
Forum: DOS
Topic: Shell command
Replies: 2
Views: 130

Re: Shell command

I am not actually updating the exe it is just the data files that the system uses

I am copying from a Network Drive to the local RAM Drive. I am using the RAM Drive to hopefully speed up the data recall function
by Gablea
Feb 04, 2019 23:13
Forum: DOS
Topic: Shell command
Replies: 2
Views: 130

Shell command

Hi all, Just wanted to make sure I was remembering this correctly Can I run a batch file from with in my dos application? Example shell update.bat /update The update.bat file hold xcopy commands to copy over files and depending on the / option it would either just update files or copy all files no m...
by Gablea
Jan 13, 2019 20:33
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

... html basic attenuation ... What is that? DDG and Google weren't much help here. I may have spelt it wrong this is a sample of the code I use to get the terminals status Try Dim Request As HttpWebRequest = HttpWebRequest.Create(PS_URL & "/terminals/" & TerminalIDNumber) Dim cre...
by Gablea
Jan 13, 2019 20:13
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

yea that folder is empty I was trying to get it to work on a Windows OS but I Like to have this now only on Linux (as I would be moving to that at some point in the near future) My Plan is to fully move my applications over to linux but one of them talks to a web interface and it uses html basic att...
by Gablea
Jan 13, 2019 17:39
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

I could post the source code here if anyone could translate it to FB. I volunteer. Hi grindstone, Here is the C program that takes either weight or barcode data from the scanner This example writes the data to a table within a MySQL database but i am sure there are ways to send data to a Freebasic ...
by Gablea
Jan 13, 2019 16:48
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

grindstone wrote:
Gablea wrote:I could post the source code here if anyone could translate it to FB.
I volunteer.


Thank you so much grindstone I’ll upload it once I get to my PC
by Gablea
Jan 13, 2019 11:56
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

Thank you for the other examples. And badidea I’ve never had a problem with the scanners as they have always sent the end chr (chr(13) they can do a lot more then just send a barcode as they also have a scale connected. I was sent a small C program that reads the scanner data and splits off either t...
by Gablea
Jan 12, 2019 20:27
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

The Scanner commuicates to the system via RS232 but outputs acual ascii codes This is what i have used in the past to control the scanner Sub SaleScreen ScannerFucntion = "SaleScreen" ScreenLock SalescreenDisplay 'Displays the graphical bmp image of the sale screen DisplaySalescreenMenu(Me...
by Gablea
Jan 12, 2019 20:17
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

No screenset nor threading: Time keeps running while typing :-p That was just want I was looking for (could I use that to control a RS232 scanner) Now I just have to work out how to use your code badidea :D or could I throw the Scanner code into a thread on its own? (I know threads would mean I cou...
by Gablea
Jan 12, 2019 20:13
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

Keeping it dead simple Gablea, forget screenset, I see no flicker here. #include "fbgfx.bi" #include "vbcompat.bi" Using FB '' Screen mode flags are in the FB namespace in lang FB Declare Sub DisplayBackground(as string)' (ByVal CurrentTime As String, ByVal CurrentDate As String...
by Gablea
Jan 12, 2019 19:11
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

fxm wrote:Yes.


Well i never know that I have learnt something new today :) Thank-you fxm.

For some reason I have found this way is smoother then with screen lock and unlock (the seconds are always correct)
by Gablea
Jan 12, 2019 18:50
Forum: General
Topic: Where to put keyboard code
Replies: 31
Views: 573

Re: Where to put keyboard code

First, not necessary to put 'ScreenSet 1, 0' inside the loop: Sorry i must have assumed I would have to set the none active screen each time So would any print go to the non viewed screen? if I used Put (0,0), BackGround_Loading, PSet would thet print be put on the none viewed screen and wh...

Go to advanced search