Hello Guest it is April 24, 2024, 05:19:29 PM

Author Topic: Button/VB script  (Read 10141 times)

0 Members and 1 Guest are viewing this topic.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Button/VB script
« Reply #10 on: February 21, 2013, 11:29:19 AM »
Terry - loose the line...

Code: [Select]
DlgFunc = 1  ' Keep dialog active

and change your case 2 code to ...

Code: [Select]
If controlID = "OK" Then
  LoadFIle("c:\Mach3\Gcode\" &DlgText("List1"))
End If

Ian

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Button/VB script
« Reply #11 on: February 21, 2013, 12:21:33 PM »
Thanks Ian that did the trick(;-).


When you have a spare moment(;-)

Is it possible to List files that are   *.tap  AND *.txt ?

In the list is is possible  to have a large font(touchscreen use) and a space between each line?

Thanks again, Some day I might get the full hang of this programming BUT I fear that when Mach4 arrives I will have to fold up shop. It is far more complex than the simple CB is.

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Button/VB script
« Reply #12 on: February 21, 2013, 12:31:34 PM »
well as a quick and dirty you could change the file spec filter to  *.t??
which would list all files with a 3 letter extension where the first letter is t

I fear that when Mach4 arrives I will have to fold up shop. It is far more complex than the simple CB is.

care to expand? what's the plan for scripting?

Ian
« Last Edit: February 21, 2013, 12:35:32 PM by stirling »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Button/VB script
« Reply #13 on: February 21, 2013, 12:50:06 PM »
Mach4 scripting will be LUA.

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Button/VB script
« Reply #14 on: February 21, 2013, 12:55:36 PM »
Excellent!

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Button/VB script
« Reply #15 on: February 21, 2013, 01:42:41 PM »
Easy for you to say(;-) LOL

(;-) TP
Re: Button/VB script
« Reply #16 on: February 22, 2013, 05:12:22 AM »
Thanks all. Now I've got something to work with.