Author Topic: handscanner USB  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

Offline speedhead

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
handscanner USB
« on: November 29, 2016 »
Hi,

Has someone done any testing with a handscanner (USB) and how can purebasic can read input from the scanner.
I have done this in python but not in PB.

best regards
Speedhead of Mjau64 and Byterapers

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #1 on: December 18, 2016 »
offtopic.
i remember using hand scanners in the early nineties. one of the first home scanners ever i think.

using today for what?

shouts.
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #2 on: December 18, 2016 »
Has someone done any testing with a handscanner (USB) and how can purebasic can read input from the scanner.

btw...
i hope this answer your question :) see attachment
PureBasic wrapper and source
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline speedhead

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: handscanner USB
« Reply #3 on: December 21, 2016 »
 :goodpost:

Thanks! i run Sample_ListAllDevices.pb

i get [01:54:56] [COMPILER] Line 89: Native types can't be used with pointers.
line 89 :

*vTable.i

 :-\
//Speed

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #4 on: December 21, 2016 »
I guess you run the wrong PureBasic Version. Will test the code tomorrow.

Have you tested *vTable.l instead *vTable.i
Try long,  not integer.
Will test it later
« Last Edit: December 21, 2016 by inc. »
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #5 on: December 21, 2016 »
tested with purebasic version 5.30 = not working
tested with purebasic version 4.61 = working
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline speedhead

  • ZX 81
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: handscanner USB
« Reply #6 on: December 23, 2016 »
Thanks, so i just bought new version of PB..i dont want to code java..just need listbox where text from textbox get..its a usb-scanner works like standard keyboard..so focus on textbox and press scanner button..the info then to a listbox and scan next same here info from scanner to listbox..vb6 i can do this fast..i just want to do things in pb

anyone textobx listbox a button example in pb...sort array sort listbox?

 :crutches:
//speed

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #7 on: December 23, 2016 »
Which PB Version do you have installed?
Will correct the code for you.
Btw.
In your purebasic account you can download at Museum all older Version for free.
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 261
  • Karma: 19
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: handscanner USB
« Reply #8 on: December 23, 2016 »
changed:
working in PB5.30
should be fine in PB5.50 too, don't have this version installed

try Attachment
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage