Hello Guest it is April 20, 2024, 12:04:53 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sargon

Pages: « 1 2 3 4 5 6 7 8 9 10 »
71
VB and the development of wizards / Re: Oxy Fuel Safety timer
« on: July 15, 2011, 05:43:15 AM »
Try this little bit of code. It should count up on the A axis from 0 to 10. This works here, could you please try it?

Dim tstart As Long
Dim elapsed As Integer

tstart = Timer
Do
   elapsed = Timer - tstart
   SetOEMDRO(803, elapsed)
   Sleep(250)
Loop While elapsed < 10

If this works but you can't get your script to work, please post your code. Must be something minor.

72
VB and the development of wizards / Re: Oxy Fuel Safety timer
« on: July 13, 2011, 06:39:39 PM »
Can you confirm that you are able to change it with the script at all? E.g. Change it once with the script to a different value and confirm that it does change.

Chris

73
We have Alibre. AlibreCAM is actually VisualMill from Mechsoft underneath, running as a plugin. They work fine together in my experience.


Sounds like it is a problem with Mach3 to me.

Just my 2 cents.

Chris

74
Mach Screens / Re: How to load file without using explorer.
« on: July 07, 2011, 06:55:11 AM »
No problem at all. Have fun with it! It's amazing how a little bit of code can make life so much easier.


Chris

75
VB and the development of wizards / Re: Want help for VBS in Mach3
« on: July 06, 2011, 08:38:55 PM »
Mach3 supports CB scripting as well as C++ plugins. You can see all the details and specifications in the documentation at http://www.machsupport.com/documentation.php.

Also check out the Mach3 wiki at http://www.machsupport.com/MachCustomizeWiki/index.php?title=Main_Page

76
VB and the development of wizards / Re: Marco gone wild.
« on: July 06, 2011, 08:33:10 PM »
Thanks for the clarification Ger.

Have a great day/night!

Chris

77
Mach Screens / Re: How to load file without using explorer.
« on: July 06, 2011, 08:29:05 PM »
What about writing one in Visual Basic (ie 6.0 or .net)? There's probably even open source code you can use that's already complete. Simply link to the dll in a vb script and load the file it returns. Should be fairly quick and you can change it's behaviour at will.

Just an idea.

Chris

78
VB and the development of wizards / Re: Marco gone wild.
« on: July 06, 2011, 06:36:08 AM »

When a macro messes up, sometimes it's a good idea to close Mach3 and reboot the PC, as macros may not run correctly again until you do this.
 

Are you sure about this? I've done a fair amount of programming in Mach3 and haven't observed this, and I have had scripts screw up (over, and over, and over, especially on the Egg Shape Wizard!). I always hit cycle stop a few times and reset twice and everything seems fine again.... What have your observations been?

I'm actually really curious because you have a lot of experience, certainly more than me!

79
VB and the development of wizards / Re: Want help for VBS in Mach3
« on: July 06, 2011, 06:29:20 AM »
Mach3 doesn't actually use VB, even though that's what most people have been calling it. Mach3 really uses CB, Cypress Basic, which is very similar to VB because they are both Basic languages. Just like different versions of C/C++ - not all are created equal. I've used quite a few different flavours of Basic, and all of them have slightly different features.

To my knowledge CB doesn't have a "Passwordchar" property, or any password support that I'm aware of. You will have to be creative if you want to implement password obfuscation (printing * on the screen to protect the password).

I would take a look at AutoHotkey. You could actually have the function call the autohotkey script (using a shell statement to execute your compiled .exe from autohotkey)  and the autohotkey script could be used to control the username and password, and it does support password obfuscation.

Maybe there's a better solution, this is just what came to mind off the top of my head.

Hope this helps a little,

Chris

80
Mach Screens / Re: How to load file without using explorer.
« on: July 05, 2011, 06:01:26 AM »
You would have to write a script to read the filenames and display them in a dialog box. This would be a fairly advanced script using dialog functions available in the scripting.

In short, it can be done, but only if you're willing to work at writing it. I can help you along if you want to try and write it, but it's too much for me to write at this point, I just don't have time to wade through the configuring of the dialogs and figuring out the logic required to move through the directories. Displaying just a single, pre-determined directory would be much easier than a complete explorer replacement, but again it will take some effort to put it together.

In short, this is very achievable, just waiting to be written!

Let me know if you want some help.

Chris

Pages: « 1 2 3 4 5 6 7 8 9 10 »