1
00:00:05,210 --> 00:00:07,760
Let's create a new Wink project.

2
00:00:07,760 --> 00:00:12,500
So go to your desktop, find Semantic Wink Explorer and just double click.

3
00:00:12,500 --> 00:00:18,080
And if you have previously opened a project as I have, we'll just click File New.

4
00:00:18,110 --> 00:00:22,460
We're just going to do a single user project and we'll click okay.

5
00:00:22,490 --> 00:00:30,230
We're going to give this project a name wink DB class and just hit create.

6
00:00:30,810 --> 00:00:37,230
Once the project has been created, we're just going to create a quick screen in graphics designer.

7
00:00:37,230 --> 00:00:39,450
So I'll double click Graphics Designer.

8
00:00:39,450 --> 00:00:44,040
It's going to open a PDL and name it some version of new PDL.

9
00:00:44,070 --> 00:00:51,720
The first thing I'm going to do is go to geometry, and I'm just going to make this page 1280 by 1024

10
00:00:51,720 --> 00:00:53,970
you can make it whatever you want.

11
00:00:55,130 --> 00:01:00,770
And then with the screen selected under effects, I'm going to turn off the global color scheme and

12
00:01:00,770 --> 00:01:02,360
I'm just going to add a button.

13
00:01:04,980 --> 00:01:07,920
I'm just going to put Hello World on this button.

14
00:01:08,930 --> 00:01:13,340
We will create a quick script to just print out hello world!

15
00:01:13,340 --> 00:01:20,750
I'm going to make this font a little bigger and on events we'll go to mouse and I'll right click on

16
00:01:20,750 --> 00:01:23,690
release Left and choose VBS action.

17
00:01:23,690 --> 00:01:26,060
And we're going to write our first VB script.

18
00:01:26,060 --> 00:01:27,590
So I'm just going to make a comment.

19
00:01:27,590 --> 00:01:30,050
Notice this green just like in SQL.

20
00:01:31,460 --> 00:01:34,010
And this is the Hello World script.

21
00:01:34,010 --> 00:01:40,910
And it prints out Hello World to debug.

22
00:01:40,910 --> 00:01:43,070
And I'm just going to right click.

23
00:01:43,070 --> 00:01:48,530
And from my object list I'm going to choose my runtime dot trace.

24
00:01:48,620 --> 00:01:51,800
And we're going to be going over these functions in the course.

25
00:01:51,800 --> 00:01:54,140
So if you haven't used this before don't worry about it.

26
00:01:54,140 --> 00:02:00,830
HMI runtime dot trace basically just prints out statements from a script into a debug console.

27
00:02:00,830 --> 00:02:02,510
So we're going to print out.

28
00:02:03,780 --> 00:02:04,770
Hello World.

29
00:02:04,770 --> 00:02:11,070
And we're going to concatenate that with a carriage return and line feed and just click okay.

30
00:02:11,610 --> 00:02:15,720
The debug console we could either use the AP diag application.

31
00:02:15,720 --> 00:02:21,210
But for now on the standard pallet under Smart Objects I'm just going to grab an application window.

32
00:02:21,210 --> 00:02:21,960
Pull this out.

33
00:02:21,960 --> 00:02:24,630
This is basically a debug console.

34
00:02:24,630 --> 00:02:27,570
We're going to highlight global script and click okay.

35
00:02:27,570 --> 00:02:32,370
And then GSC diagnostics at Script Diagnostics will click okay.

36
00:02:32,370 --> 00:02:37,140
And it's just going to look basically like a big gray rectangle with GSC diagnostics.

37
00:02:37,140 --> 00:02:42,390
And we're going to save this screen as my first screen.

38
00:02:42,390 --> 00:02:43,740
Click save.

39
00:02:43,740 --> 00:02:45,960
And then we'll hit the run time button.

40
00:02:46,590 --> 00:02:50,190
And when the runtime window comes up we can click the button.

41
00:02:50,190 --> 00:02:53,250
And there is our Hello World script.

42
00:02:53,700 --> 00:03:00,600
Coming up next we're going to begin writing some SQL code to execute from Visual Basic script using

43
00:03:00,600 --> 00:03:02,250
ActiveX Data Objects.

44
00:03:02,250 --> 00:03:04,290
I will see you in the next lecture.
