Jump to content

Restrict keyboard entry and only allow using bar code scanner - (Moved)


Recommended Posts


Hi,

I had created a simple GUI for a user to input a few information.
However, I don't want the user to key-in and can only input using Barcode Scanner.
Is there any way to this?

$Input_No = GUICtrlCreateInput("", 85, 10, 130, 30, 0x0008)
$Input_OptID = GUICtrlCreateInput("", 85, 90, 80, 25, 0x0008
$Input_Location = GUICtrlCreateInput("", 85, 50, 130, 30, 0x0008)

 

 

Link to comment
Share on other sites

  • Developers

Not so sure it is this simple. Doesn't the barcode scanner device act as an keyboard making it difficult to differentiate between the real keyboard and the scanner?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

This thread should help you:

 

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

36 minutes ago, FrancescoDiMuro said:

What will you do with osk.exe then?

no problem, ProcessClose() is your friend

While True
    If ProcessExists("osk.exe") Then ProcessClose("osk.exe")
WEnd

... and if you have a laptop have a look here ... https://www.ifixit.com/Guide/Lenovo+ThinkPad+T420s+Keyboard+Replacement/41606   :idiot::idiot:

 

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...