ismee Posted August 5, 2010 Share Posted August 5, 2010 how to select files then send to LPT1 port???? search through the website,cannot find the select and send command... i got choose file function, but want to make the file selection faster,and user just tick/select then click send without browsing Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 5, 2010 Share Posted August 5, 2010 Look at the example scripts in the help file for _WinAPI_WriteFile() and use this to get the handle: $hLPT1 = _WinAPI_CreateFile("\\.\LPT1", 2) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ismee Posted August 6, 2010 Author Share Posted August 6, 2010 Look at the example scripts in the help file for _WinAPI_WriteFile() and use this to get the handle: $hLPT1 = _WinAPI_CreateFile("\\.\LPT1", 2) I have the file, i just want to send to LPT1 port...then i can procedd to make GUI, to store all my files and allow user to select and send Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 6, 2010 Share Posted August 6, 2010 Perhaps you missed the point, that just gets you a handle to the device which you would then use with FileWrite() or _WinAPI_WriteFile() (I don't have an LPT device to test with) to send the data. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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