1 / 30

Obsydian Tips & Techniques

Doctor Obsydian doctoro@synon.com AKA : Adrian Slade Principal Pattern Engineer aslade@synon.com. Obsydian Tips & Techniques. Schedule. Part 1 - ActiveX Choosing a script Script techniques Script gotcha’s Debugging Script help resources Part 2 - Creative Meta Code Global properties

Download Presentation

Obsydian Tips & Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Doctor Obsydian doctoro@synon.com AKA : Adrian Slade Principal Pattern Engineer aslade@synon.com ObsydianTips & Techniques

  2. Schedule • Part 1 - ActiveX • Choosing a script • Script techniques • Script gotcha’s • Debugging • Script help resources • Part 2 - Creative Meta Code • Global properties • Function calls • Using with ActiveX

  3. ActiveX - Choosing A Script • JScript • Live script • VB script • Visual Basic

  4. ActiveX - Script Techniques 1 • Source code or file • #External <file name> • Setting properties • Supercedes the API’s • Set one or many in a script • Pass and manipulate values as parameters

  5. ActiveX - Setting Properties

  6. ActiveX - Script Techniques 2 • Source code or file • Setting properties • Reacting to events • Events are script subroutines • Retained by the engine • Call API the at start of function

  7. ActiveX - Reacting To Events

  8. ActiveX - Script Techniques 3 • Source code or file • Setting properties • Reacting to events • Interacting with the Action Diagram • Runtime supplied methods for Values and Events

  9. ActiveX - Action Diagram

  10. ActiveX - Script Techniques 4 • Source code or file • Setting properties • Reacting to events • Interacting with the Action Diagram • Calling methods • Parameters are optional

  11. ActiveX - Calling Methods

  12. ActiveX - Script Techniques 5 • Source code or file • Setting properties • Reacting to events • Interacting with the Action Diagram • Calling methods • Creating objects • Does not need an ActiveX • Specific to an object model

  13. ActiveX - Creating Objects

  14. ActiveX - Script Gotcha’s • Value type • The ‘SET’ instruction • Function parentheses • Unsupported objects • Event parameters have no effect • Event processing out of sequence • Visual Basic for Applications and Visual Basic 5.0

  15. ActiveX - Debugging • Can be difficult • Use MsgBox “a string or value” • Learn to use Dev Studio in debug mode • Check parentheses and SET instruction • Use the Test mode in the panel designer • Windows Scripting Host?

  16. ActiveX - Script Help Resources • Microsoft • VB script tutor • Product help files • Visual Basic • ActiveX supplier • Help files • VBscript for Dummies • Learn the Object Model

  17. Useful Web Addresses • www.synon.com/LavaLounge/TechnicalCorner/Dr_O/ • www.microsoft.com/VBscript/ • www.microsoft.com/JScript/ • www.microsoft.com/vbscript/us/vbstutor/vbstutor.htm • www.webadvisor.com/vbscript.html • www.vbscripts.com/ • www.microsoft.com/sitebuilder/ • www.amazon.com • www.shersoft.com • www.download.com • www.vbextras.com

  18. Questions So Far ?

  19. Creative Meta Code • Examples to spark your imagination - I hope. • Code taken from real working functions

  20. Meta - Global Properties • Only works for client C++ • Makes data available to all functions • within an .EXE’s call graph

  21. Meta - Global Properties 1

  22. Meta - Global Properties 2

  23. Meta - Function Calls • Only works for client C++ • Driven by the model • No parameters allowed

  24. Meta - Function Calls 1

  25. Meta - Function Calls 2

  26. Meta - With An ActiveX • Loads images into an ImageList • Model driven • Gets the image name from the NAME object • Gets the image location from the Narrative of the NAME object

  27. Meta - With An ActiveX

  28. Meta - With An ActiveX

  29. Any More Questions ?

  30. ObsydianTips & Techniques Doctor Obsydian doctoro@synon.com AKA : Adrian Slade Principal Pattern Engineer aslade@synon.com

More Related