Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / VBScript
Article

Tailor Master 1.1 -Asim Abbasi

Rate me:
Please Sign up or sign in to vote.
1.29/5 (5 votes)
25 Feb 20071 min read 29.5K   178   7   3
Visual Basic Project. The software then generates the coordinates sequentially and send them to the microcontroller.

Screenshot - tailorm.gif

Introduction

This software is created in Visual Basic 5. It is designed to interface it with the microcontroller in order to cut the metallic sheets. User can input the software patterns in which sheets are to cut, in the form of jpg, gif, bmp or wmf file formats. The software then generates the coordinates sequentially and send them to the microcontroller. You can also saved the generated coordinates for later use. The main routine is shown below. The complete code (project) resides inside the zip file.

Private Sub Command3_Click()<br />For ptx = 0 To Picture1.ScaleWidth<br />For pty = 0 To Picture1.ScaleHeight<br />DoEvents<br />If Picture1.Point(ptx, pty) = RGB(0, 0, 0) Then<br />GoTo PointPrinter<br />End If<br />Next<br />Next<br />Exit Sub<br />PointDirector:<br />DoEvents<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx + 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty + 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />pty = pty - 1<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />GoTo PointPrinter<br />Else<br />ptx = ptx + 1<br />GoTo PointPrinter<br />End If<br />End If<br />End If<br />End If<br />End If<br />End If<br />End If<br />Exit Sub

PointPrinter:<br />color = Picture1.Point(ptx, pty)<br />If color = &H0& Then<br />On Error GoTo Outmem<br />Text1.SelText = Str(ptx) + "," + Str(pty) + " "<br />Picture1.PSet (ptx, pty), RGB(242, 243, 52)<br />End If<br />GoTo PointDirector<br />Exit Sub<br />Outmem:<br />MsgBox Err.Description, vbCritical, "Error Number" + Str(Err.Number)<br />Text1.Text = ""<br />Exit Sub

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Mr. Asim Abbasi is President and CEO of Takveen, Inc. NJ (www.takveen.com), which is a firm providing information technology related ‘Optimal Solutions’ to the industry. He is also attached with three top-notch computer schools of NJ teaching Oracle Database Administration in Unix/Windows Server environments. Before coming to NJ, he used to teach Oracle in heart of NC, Raleigh while working as Chief Technologist with a business solutions development firm.

Back in Pakistan Mr. Abbasi worked as Chief Programmer with US based multi-national software development company. Prior to that he was Lecturer/Lab Manager at Center for Advanced Studies in Physics (CASP) - Government College University (www.gcu.edu.pk) teaching Telecommunications & Computer Systems and Applications.

Mr. Abbasi has been attached intensely with the IT field for past 13 years and has written dozens of softwares and tons of code from programming microcontrollers using Assembly language to writing 3-tier multi-language web applications backed by Oracle. From developing custom wireless TCP/IP communication protocols to converting human driven business processes to machine driven automated self-healing systems. In short, when it comes to optimal computer solutions and designs Mr. Abbasi has the authority.

He did B.Sc. Electrical Engineering from University of Engineering & Technology, Lahore, Pakistan (www.uet.edu.pk). He is Oracle Certified Professional Database Administrator (OCP), Microsoft Certified Professional (VB) and lots of other computer certifications. Besides certifications, he has lots of publications and has filed 1 patent with United States Patent & Trade Mark Office regarding system and method for controlling devices wirelessly using protocol based communication through voice.

When asked Mr. Abbasi, he said that it all erupted with a saying of my engineering professor, “Think yourself ….”


http://www.takveen.com

Comments and Discussions

 
QuestionVB5 is still in use by anyone? Pin
Not Active25-Feb-07 18:29
mentorNot Active25-Feb-07 18:29 
AnswerRe: VB5 is still in use by anyone? Pin
molebrain18-Jul-07 10:28
molebrain18-Jul-07 10:28 
GeneralRe: VB5 is still in use by anyone? Pin
Not Active18-Jul-07 11:10
mentorNot Active18-Jul-07 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.