11
VB and the development of wizards / How to halt a script halfway & wait for a user entered CR?
« on: November 14, 2011, 06:41:17 PM »
I'm new to all this, presently trying to get my XY cordinates to move between the cutter & the webcam...my end goal is, press a contour shuttle pro button....my script kicks.....
1. Store the present XY coords
2. Goto a known webcam offset (ie locate the webcam immediately above where the tool just was)
3. Jog around a bit (to align webcam crosshair over a pcb index mark)
4. Once I'm happy with the alignment, I then hit carriage return on the PCB keyboard.
5. Use the offsets as per step 2 (but now in reverse) to put the tool where the webcam has just been
6. Restore the XY coords that were stored away in step 1.
The cutting is now exactly over the pcb index mark with the correct XY starting coords.
It the bits in steps 4 that I need a bit of coop ....what's the easiest way to get the VB script to wait until say a CR is pressed on the PC keyboard?
1. Store the present XY coords
2. Goto a known webcam offset (ie locate the webcam immediately above where the tool just was)
3. Jog around a bit (to align webcam crosshair over a pcb index mark)
4. Once I'm happy with the alignment, I then hit carriage return on the PCB keyboard.
5. Use the offsets as per step 2 (but now in reverse) to put the tool where the webcam has just been
6. Restore the XY coords that were stored away in step 1.
The cutting is now exactly over the pcb index mark with the correct XY starting coords.
It the bits in steps 4 that I need a bit of coop ....what's the easiest way to get the VB script to wait until say a CR is pressed on the PC keyboard?