Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - doppler

Pages: [1] 2 3
1
QB64 Discussion / Drop target in QB64, is it even possible.
« on: April 07, 2022, 07:45:21 am »
In case you are not familiar with what a drop target is.  It can be a box or window open by a program to accept a list of files.  To be dropped into the drop target box.   The drop location could also be a location inside a program that will process a list of files dropped there.

Using shell and dir to capture a list of files is too much sledgehammer approach to a pin prick need.  This will most certainly require a DLL call.  And I am clueless to know how.  This could be a good routine inclusion, would become a nice touch for QB64 tools.  Stuffing the clipboard would be likely the best way to get them in.

Thanks

2
My problem maybe related to charliejv problem except I am getting with just single variables.

Code: QB64: [Select]
  1. _Title "Total it"
  2. Open "c:\qb64\total.txt" For Input As #1
  3. total = 0
  4. t = 0
  5.  
  6.     Line Input #1, t$
  7.     t = Val(t$)
  8.     Print t
  9.     Print Str$(total) + " plus " + t$ + " equals ";
  10.     total = total + t
  11.     Print total
  12. Print total
  13.  

list of numbers for the file total.txt

Code: QB64: [Select]
  1. -750
  2. 21.71
  3. 13.67
  4. 22.92
  5. 91.25
  6. 119.63
  7. 10.84
  8. 18.46
  9. 40.44
  10. 171.73
  11. 3.08
  12. 92.39
  13. 57.20
  14. 22.79
  15. -2.80
  16. 43.87
  17. 34.81
  18. 83.82
  19. 10.85
  20.  

Can't figure out why the math went off after 57.20 number.  I only add extra output to see where it went south.
Any pointers would be helpful.


3
QB64 Discussion / Time to bring in at least 150K new users to QB64
« on: March 28, 2022, 09:21:39 am »
So how do we get 150,000 new QB64 users.  With sales of 30 Million unit's in 2019, who knows where that number is today with covid locking people at home.  And any available unit being scalped at ridiculous prices.  Or any online listing announcing stock all gone within 15 minutes.  The little sought after PC is the Raspberry PI.  If we can get 0.5% of the user base to install it's 150K new users.

So what will it take to get QB64 listed in the Raspberry Debian Repository ?  There are many locations the where repositories are holding code.  I could be wrong but all we need is one developer to compile and post a image of QB64 and support files.  I now the install script exists to compile QB64 but it's not "ALL" new user friendly.  I think we need to "APP" QB64 into a repository package.

So can we make this happen ?  I would love to help but I am too newbie even after a couple of years using Linux to know how to do this.

Thanks
BTW, With all the competition QB64 has under windows.  Nobody has listed there basic in the repository.  We could be a first.
 

4
Anybody with a brain knows SSD's are nice and fast readers.  But have a limited write life.  After so many writes it just won't write anymore.  So to get more life out of it things have to be in other places.  Things needing a new location (on a spinning HDD), are pagefile, swapfile, windows temp location, general temp location and any program that uses installed location to put temp stuff.  I won't go into; it there are ton's of articles explaining it all.

-----> I plan to install QB64 on the spinning disk one.  The question becomes is there a temp location created that QB64 may use during compile or creation that is not under the QB64 directory location? Remember the environment temps will be also moved.

BTW, if after reading my first paragraph you still think you don't have to do any of the things mentioned.  It's in your best interest to read about write life of SSD's.  I am unhappy enough I won't be able to de-fragment large files anymore. ie: seek times of HDD made that a plus.  SSD's have no seek time.
 

5
Why would I even discuss the matter if it was that simple.  Both IDE's in my opinion should have puked for syntax not compile and run.  The results were the same for both.  I was going to create a temporary value f$.  Realized I wasn't going to do anything more with f$.  Decided to output the f$ directly to file. I did this: (the wrong way)

Do Until EOF(1)
    Line Input #1, f$
    p = InStr(17, f$, "\")
    Print #2, f$ = Right$(f$, Len(f$) - p)
Loop
System

Forgot to remove the "f$ = ".  My brain was on autopilot and fingers were just doing there thing.  IMHO, the IDE's should have puked.
I made a Blonder not blunder, see a previous post thread.

Now, somebody is going to say the precompiler could not possibly find all faults. (Granted!), But we have taken so much to being true to QB45, Even errors are the same.

OK, let the bashing commence.



6
QB64 Discussion / So what happened here on (January 11, 2021, 10:17:29 PM)
« on: September 13, 2021, 08:39:41 am »
Don't ask me I don't know.  And no I am not trolling.  I will sometime look on the landing page at the bottom to see the forum stats.
Things like # of guests, who's online. Then I got to thinking (never good for me).  What happened on Jan 11, 2021 ?

Today's stat:
Most Online Today: 50. Most Online Ever: 889 (January 11, 2021, 10:17:29 PM)

There is always a reason for a spike.  It's not like we are really popular and keep getting new guests.



7
Before the next release of QB64 it would be nice to fix problems with differences.  Mainly there are some things that will not work and cause problems or just work strangely.  The only one I know right off the bat is READ/DATA statements in the language.  Does not work.

Way back when the QB64 got a 64 bit release there were a number of issues.  (more than just 1).  Is it possible to fix as many of the problems before the next release ?  I really want to go all 64 bit.  Can't since a couple of my programs won't work 64!

8
QB64 Discussion / Silly question about EXE size reduction.
« on: June 01, 2021, 09:10:17 am »
The silly part is it takes 1.7 mb to print "hello world".

Is there a way to send compiler commands to the pre-compiler to reduce code size ?
Simplistic programs doesn't need overhead in code, never used.  I just proved to myself, using a different basic compiler.  The load and execute was 20X slower using QB64.  Likely all the time was spent loading, and preparing the "exe" for execution.

QB64 is feature rich, maybe it's time to work on execution optimization.

9
QB64 Discussion / Is there a way to get a crossref list of qb64?
« on: May 06, 2021, 07:29:23 pm »
Since someone, mentioned "lint" for QB64.  Got me to thinking about "Crossref" lists.  Back when I played with assembler.  It was possible to specify Crossref list generation at the end of the listing.  The crossref would list all variables used and what line numbers contained them.  As well as all labels and locations.  It was convenient to find all references and impacts to code.  Things like changing byte to word, became a snap.  You could look at all the cross refs, and figure out things.

Anyway to get this from listing/compiles ?
Or am I barking up an old dead tree ?

10
While use the latest greatest release code (v1.5 32bit).  I came across a Windows defender interruption.

I was using the CTRL-Z to back out some changes made.  I may have gone to far backing out.  I was pissed and wanted to quickly back it out.
While I was banging the CTRL-Z windows and QB64 threw exceptions.  I might have hit too many CTRL-Z's

The IDE interface just croaked with an exception (didn't catch it) but windows exception was interesting.

This file: C:\qb64\internal\temp\undo2.bin
Was identified as: TrojanDropper:VBS/Mikey.A!MSR

A reboot was required, as you know windows buries defender problem files.  If someone knows where and how to get the error record out of defender without creating more problems I will post the contents.

Win 10 core2 duo, 4gb and I don't run unknowns and cause grief.
Have a great day, I know I didn't.


11
QB64 Discussion / Bitten by VAL, it's not my girlfriends name. Watch out.
« on: January 19, 2021, 12:30:19 pm »
What I am about to say, is normal in QB45.  <------
In a=VAL(A$) example.  The variable 'a' becomes the numerical representation of A$.  Conversion using VAL converts until a non-numeric value is encountered.  This is unless prefixed by &x.  X being some base like hex (&H).  My high school days I was taught 0-9 are numerical.  A-F are accepted for hex.  Keeping that in mind, what do the following conversions output ?

5555
5 5 5 5
5555G4444
5 5 5 5 G 4 4 4 4
&H15B3

If you say 5555 you are right!!  Now the gotcha.  Why is space considered a numeric ?  A leading space yes, to determine negative or positive numbers.  But space in between all numbers.  Give me a break.  Even Wikipedia gave a non-answer answer (best I could find).



12
I got a USB HID dongle I would love to talk and listen from within QB64.  I suspect heavy .DLL calls needed.
Generically if this works, it's the basis for talking to other HID's.  Key FOB's and such.

It would be real nice to use QB64 as the interface to the HID.
I can't talk about the device, it's a company's closed loop product.  The interfacing to it is classic HID.

13
QB64 Discussion / OK, SpriggsySpriggs Got to hide pipe cmd here's why:
« on: October 31, 2020, 04:12:55 pm »
I said I was going to try speeding up my little txt searching program.  Well I got some nasty results.
I am substituting pipe.h command with my shell usage.

#1 the end of line delimiter became chr$(10) from chr$(10)+chr$(13) <-- nothing nasty here.
#2 not using the clipboard to pass data back  <-- nothing nasty here.
#3 does not require "cmd /c " to make use of "findstr" windows search program.  I can just use it.  <-- nothing nasty here.

Clean up the program a little, save it and compile.  Then the nasty part begins.

I  R U N  I T !!  Fortunately for me a used a small test list.  "Very fortunately".

When you use the pipe cmd dozens of times on name variations it will call pipe cmd 1000's of times.  In my test list.  What could be so nasty about that??  Well every time the pipe is called a new terminal window opens and gains focus then closes.  It's really nasty when focus changes so fast you can't do a damn thing to: stop, terminate it, close it or any other it within windows.  You just have to let "IT" finish.  When you can get control back.  (hard or soft) Shutdown and reboot was not a option in my case.  Loss of so much else would happen.

Unintended consequences. BUG.  Bet you didn't see this one coming.
Edit not a bug but intended.


14
Basically I am looking for a better way to pass back clipboard content from a shell out.

Start with: "shell "dir *.* | clip", not what I am going to do.  But you get the idea.  What comes back is line by line content in the clipboard where the lines are separated  by (cr/lf).   ie:line1(cr/lf)line2(cr/lf),line3(cr/lf)....

I can only think of "a$=_clipboard$" then using instr a$ taking the lines content with mid$'s.  Tedious and time consuming.  An alternate way would be shell "dir *.* > somefile.txt" and reading the file back with line inputs.  Also time consuming.

All input and out devices are considered block devices on windows.  Some are read only (keyboard), some are r/w (display).  The clip board is no different to windows.  And its a block device that is r/w.  The open command does not support many block devices in QB64.  So the question is the clipboard a "open-able" device on windows.  And how to do it?  I happen to be using the alternate way now.



15
after much looking over things.  I would like to pull back this post.

edit: What brought this up.

The shell function does not just bring up another command.com instance.  I was trying to use the "findstr" program within a shell.  Nothing happened.  I thought maybe the path was not pointing right.  I used explicit path to "findstr" in syswow64.  Still nothing.  I directed my shell passing stuff into a .cmd file.  Executed it  from a plain dos prompt.  Worked.  I executed my created .cmd from a shell.  Worked.  The help content on shell function mentions using "cmd /c" because somethings don't work right with just shelling.  Did that and it worked.

The nasty part about this the shell should work without invoking another command.com from my shell out.  Beware shell is NOT A EXECUTION OF COMMAND.COM with parameters.  There are strange limits.

I still wish for a un-post button for a post by the "poster".
edit: Title change a bit for a warning about shell.


Pages: [1] 2 3