lattey Posted June 20, 2019 Share Posted June 20, 2019 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 More sharing options...
FrancescoDiMuro Posted June 20, 2019 Share Posted June 20, 2019 @lattey You can use the style of the Input $ES_READONLY, so, only you can set data through GUICtrlSetData() in that control. P.S.: don't use magic numbers... Use constants instead! Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Developers Jos Posted June 20, 2019 Developers Share Posted June 20, 2019 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 More sharing options...
Moderators JLogan3o13 Posted June 20, 2019 Moderators Share Posted June 20, 2019 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 More sharing options...
jchd Posted June 20, 2019 Share Posted June 20, 2019 This thread should help you: Earthshine 1 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 hereRegExp tutorial: enough to get startedPCRE 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 More sharing options...
Gianni Posted June 20, 2019 Share Posted June 20, 2019 or, you could unplug the keyboard from that system and leave plugged only the barcode reader ..... FrancescoDiMuro 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 20, 2019 Share Posted June 20, 2019 @Chimp A bit "raw" solution, but it does the trick What will you do with osk.exe then? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Gianni Posted June 20, 2019 Share Posted June 20, 2019 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 FrancescoDiMuro 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted June 21, 2019 Share Posted June 21, 2019 @Chimp It was a joke by the way Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
lattey Posted June 24, 2019 Author Share Posted June 24, 2019 It looks like to implement this, it is not that simple. if that so, Is there anyway once user key in any value in the input box, the UI will prompt a message box? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now