Elipse Knowledgebase

View Articles by Category

There are no sub categories
Add an article to this category

Category » Scriptsrss button

(Page 4 of 14)     Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Next

There were 268 articles found in this category:

  1. questionKB-36264: Creating an object at run time
    Question: How can I create an object on a Data Server at run time? Solution: To do so, you must use the Data Server's AddObject method using the name of the object's class and the value True. For example, to create an Internal Tag using a button on screen, write the following script: Application ...
  2. questionKB-30804: Always executing a script on a certain time
    Question: How can I configure a script to be executed daily on a certain time? Solution: To do so, you must write the script in a TagTimer's event, and configure the tag to be activated daily. We suggest that you do not use the WhileRunning event, because it can decrease the application's perfor ...
  3. questionKB-32928: Displaying the monitor's resolution at run time
    Question: How can I display the monitor's resolution when starting the E3 Viewer? Solution: To do so, you must write a script to retrieve the resolution and then display it. For example: strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & str ...
  4. questionKB-32217: Configuring buttons to be available only for certain users
    Question: How can I configure buttons of a specific screen to be available only for users of a certain group? Solution: To do so, you can write a script in the screen's OnPreShow event, using the Viewer's IsUserMemberOfGroup event to check if the user belongs to the configured group, in addition ...
  5. questionKB-30214: Pulse button on E3
    Question: How can I create a pulse button using the CommandButton object? Solution: To do so, you must write two scripts in events of the CommandButton: one script in the MouseDown event setting the tag's value to 1, and another one in the MouseUp event setting the tag's value to 0. Another opti ...
  6. questionKB-37062: Reading a data block only on a certain instant
    Question: How can I configure a data block to be read only on a certain instant? Solution: To do so, you can enable and disable the I/O Block's AllowRead property via scripts.
  7. questionKB-29029: CommandButton remains pressed after opening modal screen
    Question: On an application, the DoModal() method is used in a CommandButton's script. Why does the button remains pressed on the main screen after opening the modal screen? Solution: This is the normal behavior of the MsForms. To fix the problem, you must configure the CommandButton to be the f ...
  8. questionKB-30415: Increasing the size of the window opened by the ShowDatePicker() method
    Question: Can I increase the size of the window opened by a script using the ShowDatePicker() method? Solution: No, you cannot. The size of this window only increases if the screen's resolution changes.
  9. questionKB-36907: Scripts not being executed
    Question: Why are the scripts not being executed? Solution: This can happen because Windows did not register the file vbscript.dll. To fix the problem, just register it manually.
  10. questionKB-27128: Setting DatePicker's position on screen
    Question: On an application, there is a Frame splitting a screen to half. How can I configure a DatePicker to be opened always in the middle of this screen? Solution: To do so, you must write the following script: Application.ShowDatePicker now To open the DatePicker near a screen object, you mu ...
  11. questionKB-36568: Opening PDF via Viewer
    Question: How can I open a PDF file on the Acrobat Reader via Viewer? Solution: To do so, you must insert a Pick Execute Application on a button setting the PDF file's path. For example: C:\test.pdf
  12. questionKB-26504: Shortcut keys to execute a script on E3
    Question: How can I create shortcut keys to execute a script on E3? Solution: To do so, you must write a script in the OnKeyDown event of the screens where the shortcut keys must work. To get the keys' code, perform a test using the "MsgBox KeyCode" script in the mentioned event.
  13. questionKB-28681: Configuring Message Box to Date/Time format
    Question: When creating a Message Box with the date, a random numeric value is displayed (for example, 39876,8934523). How can I configure the Message Box to the Date/Time format? Solution: To do so, you can use the CDate() method to convert the number to the Date/Time format. For example: time ...
  14. questionKB-36698: Sending values to variables of an SQL Query's filter via scripts
    Question: How can I send values to variables of an SQL Query's by-date filter via scripts? Solution: To do so, you must use the E3Query object's SetVariableValue() method. For example: ' Refers to the SetPoints IniDate = Screen.Item("InitialDateText").Value FinDate = Screen.Item("FinalDateText" ...
  15. questionKB-36647: Checking if an I/O Tag's writing was successfully performed
    Question: How can I check if an I/O Tag's writing was successfully performed? Solution: To do so, you must use the I/O Tag's WriteEx method and test the returned Boolean. If it returns FALSE, there was an error when writing; if it returns TRUE, it was successfully performed.
  16. questionKB-28661: Sending e-mails without a driver using IIS and CDO
    Question: On an application based in CDO-Collaboration Data Objects (tool developed by Microsoft to make it easier sending messages in applications), the IIS - Internet Information Services is used to send e-mails without using the SendMail driver. However, the messages are not being sent, and a ...
  17. questionKB-28807: Configuring the Modal Screen's position
    Question: How can I configure a Modal Screen to be opened on the side of the Button pressed to open it? Solution: To do so, you must use the ToPixelX() method to convert the himetric coordinate to pixels. For example: PositionX = Screen.ToPixelX(X)+ Screen.ToPixelX(Width) PositionY = Screen.ToPi ...
  18. questionKB-28683: Concatenating strings on E3
    Question: How can I concatenate strings on E3? Solution: To do so, you must use the "&" character. For example: variable = "Good " & "morning!".
  19. questionKB-29313: Editing the SelectMenu()'s font
    Question: How can I increase the menu's font created by the SelectMenu() method? Solution: The SelectMenu() method uses the Windows default font size. So, to change the menu's font created by this method, you must change the Windows font via Control Panel.
  20. questionKB-36699: Inserting a line break in an E3 script
    Question: How can I insert a line break in an E3 script? Solution: To do so, you must use an underscore character in the end of the line. For example: vector = Array("Test1", "Test2", "Test3", "Test4",_ "Test5", "Test6", "Test7")
(Page 4 of 14)     Prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Next