Changes for page 10 Advanced Function

Last modified by Jett on 2025/04/15 09:59

From version 29.1
edited by Hunter
on 2024/05/23 15:27
Change comment: There is no comment for this version
To version 28.1
edited by Hunter
on 2024/04/29 11:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -583,10 +583,10 @@
583 583  
584 584  **Example 1**
585 585  
586 -{{code language="vb"}}
587 -if @W_HSW1073 = 29 then      'Ctrl key value is 29
586 +{{code language="lua"}}
587 +if @W_HSW1073 = 29 then                                            'Ctrl key value is 29
588 588  
589 -    if @W_HSW1074 = 1 or @W_HSW1074 = 2       'Press Ctrl key
589 +    if @W_HSW1074 = 1 or @W_HSW1074 = 2               'Press Ctrl key
590 590  
591 591                @W_HDW1000 = 1
592 592  
... ... @@ -601,12 +601,12 @@
601 601  
602 602  **Example 2**
603 603  
604 -{{code language="Visual Basic"}}
604 +{{code language="lua"}}
605 605  if @W_HSW1073 = 59 and (@W_HSW1074 = 1 or @W_HSW1074 = 2) then              'F1 key value is 59
606 606  
607 -   if @W_HDW1000 = 1 then                                                                 'Combination Ctrl + F1
607 +   if @W_HDW1000 = 1 then                                                                                          'Combination Ctrl + F1
608 608  
609 -         @W_HDW2000 = @W_HDW2000 + 1                                  'Function of combination key is HDW2000 + 1
609 +         @W_HDW2000 = @W_HDW2000 + 1                                                                  'Function of combination key is HDW2000 + 1
610 610  
611 611      endif
612 612  
... ... @@ -615,12 +615,12 @@
615 615  
616 616  **Example 3**
617 617  
618 -{{code language="vb"}}
619 -if @W_HSW1073 = 60 and (@W_HSW1074 = 1 or @W_HSW1074 = 2) then            'the value of F2 is 60
618 +{{code language="lua"}}
619 +if @W_HSW1073 = 60 and (@W_HSW1074 = 1 or @W_HSW1074 = 2) then              'the value of F2 is 60
620 620  
621 -   if @W_HDW1000 = 1 then                                                     'Combination Ctrl + F2
621 +   if @W_HDW1000 = 1 then                                                                                          'Combination Ctrl + F2
622 622  
623 -            @W_HDW2000 = @W_HDW2000 - 1                                  'Function of combination key is HDW2000 - 1
623 +            @W_HDW2000 = @W_HDW2000 - 1                                                                'Function of combination key is HDW2000 - 1
624 624  
625 625    endif
626 626  
... ... @@ -629,7 +629,7 @@
629 629  
630 630  **Example 4**
631 631  
632 -{{code language="vb"}}
632 +{{code language="lua"}}
633 633  if AsString(@W_HSW1078) = "a" and (@W_HSW1074 = 1 or @W_HSW1074 = 2) then          'Page up
634 634  
635 635      if @W_HSW13 > 0 then
... ... @@ -643,7 +643,7 @@
643 643  
644 644  **Example 5**
645 645  
646 -{{code language="vb"}}
646 +{{code language="lua"}}
647 647  if AsString(@W_HSW1078) = "b" and (@W_HSW1074 = 1 or @W_HSW1074 = 2) then          'Page down
648 648  
649 649      @W_HSW13 = @W_HSW13 + 1