I want to learn to do hooks / Quiero aprender a hacer Hooks

Discussion in 'Microsoft Point Of Sale' started by Rafael R., Sep 13, 2006.

  1. Rafael R.

    Rafael R. Guest

    I want to learn to do hooks / Quiero aprender a hacer Hooks

    they can help me with this / me pueden ayudar con esto

    Thanks

    RRA
     
    Rafael R., Sep 13, 2006
    #1
    1. Advertisements

  2. Rafael R.

    Mick Hardy Guest

    It is frustrating as a legitimate licensed user not having access to the
    development documentation but this news group presented enough clues to get
    me started with hooks. It's reasonably straightforward although I can't
    guarantee these tips are the correct way. I've just spent a few hours
    compiling the information I present below so if I save you the few hours,
    it's worth posting. If you're a developer, further customisation should be
    simple.

    In VS2005 or similar, create a new Class Library Project called,
    "TestHookProject"

    Under Project Properties -> Compile Options, tick "Register for COM interop"

    Add a COM reference to "Store Operations Business Rules" (QSRules.dll).
    Note this reference is used to assist in locating properties and methods
    using early binding and should be removed and replaced with late binding
    before release.

    Add a .Net reference to System.Windows.Forms for the messagebox class

    Rename Class1 to TestHook and add the following simple test code

    Imports System.Windows.Forms

    Public Class TestHook

    Public Function Process(ByVal Session As Object) As Boolean

    'Used during development and removed for release
    Dim TempSession As QSRules.SessionClass

    Try

    MessageBox.Show("Transaction Initialised")

    Exit Function

    Catch ex As Exception

    MessageBox.Show(ex.Message)

    End Try

    End Function

    End Class

    You can use the TempSession object for intellisense during development or
    the Object Browser.

    Build your project.

    Modify the RMS registry keys to use your hook.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Retail Management System\Store
    Operations\Hooks

    Increase the Count Key by 1

    In The "Count-1" subkey eg. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Retail
    Management System\Store Operations\Hooks\000

    Caption = Transaction Initialised Hook
    Description = Test Hook
    HookType = 6
    ObjectName = TestHookProject.TestHook
    Parameter = 1

    Restart POS and you should get the messagebox whenever you create a new
    transaction.

    Available hook types.

    0 PostTransaction
    1 PrintReceipt
    2 TenderBegin
    3 ExportAccounting
    4 AddItem
    5 RefreshDisplay
    6 InitializeTransaction
    7 StartPOS
    8 QuitPOS
    9 SavePurchaseOrder
    10 SaveSupplier
    11 SaveCustomer
    12 StartManager
    13 QuitManager
    14 SaveItem
    15 TenderEnd

    Hope this helps but I'll also suggest you seek help and support from your
    Partner as RMS is a very different beast to every other Microsoft product I
    know. I'm quite surprised at the secrecy and lack of documentation or text
    books for us non-Partners.

    Feel free to email me a copy of the "Customization Guide" or "Secret Book"
    I've heard about.
     
    Mick Hardy, Sep 14, 2006
    #2
    1. Advertisements

  3. Rafael R.

    Rafael R. Guest

    Mick

    I have documentation:
    QSBridge FireEvent Commands – 6.15.00 (35 Page)
    it interests to you, I need an example hook in VB6

    please send email:
     
    Rafael R., Sep 15, 2006
    #3
  4. Rafael R.

    Mick Hardy Guest

    Hi Rafael,

    I would appreciate a copy of any documentation you have.

    Hooks in VB6 are even easier than Dot Net because you don't have the cross
    platform problems.

    Create a new ActiveX DLL Project

    Add the following code to Class1

    Option Explicit

    Public Function Process(ByVal Session As Object) As Boolean

    On Error GoTo ErrHandler

    MsgBox "Transaction Initialised!"

    Process = True

    Exit Function

    ErrHandler:

    MsgBox Err.Description

    End Function

    Compile the project and leave it running in the VB6 Environment

    Add the following registry keys and increase the Count
    Caption = Initialize Transaction Hook
    Description = Testing VB6
    HookType = 6
    ObjectName = Project1.Class1
    Parameter = 1

    Restart POS and it should all work. You will have to ALT Tab to the VB6
    Environment to display the message box. Once you've finished developing,
    compile the project and deploy your DLL.

    I strongly recommend ditching VB6 and jumping on the Dot Net band wagon.
    You'll never look back. I was reluctant to change but the code I just wrote
    is the first VB6 code in many years.

    Have Fun.
     
    Mick Hardy, Sep 15, 2006
    #4
  5. Rafael R.

    Rene Guest

    Does any one have this customization guide ???
    I tried the example and it worked , now I would like to try to develope some
    thing to handle serial numbers in transfering items .


    Can you please send it to me .?

    Thanks
     
    Rene, Sep 19, 2006
    #5
  6. Rafael R.

    Mick Hardy Guest

    The Customisation Guide is available to Partners only and I think they are
    keeping it under wraps due to the amount of work and number of exams they
    need to pass to get the rating. I have no idea why Microsoft have made
    development for RMS so exclusive. It is very unlike Microsoft who have been
    leaders with SDKs from the very beginning. I have a VS2005 Team Developer
    with MSDN Premium subscription but I'm not allowed to develop for my fully
    licensed copy of RMS. It sucks.
     
    Mick Hardy, Sep 19, 2006
    #6
  7. Rafael R.

    Jeff Guest

    Mick,

    Hell, they won't even tell _us_ what's happening for the next version to be delivered in 4 months. No alphas or betas.

    Everything is just briefly touched on. We know about 10 things that will happen in RMS/MSPOS 2.0 in very general terms.

    Other divisions often BEG or PAY end-users and/or resellers to test forthcoming products!



    The Customisation Guide is available to Partners only and I think they are
    keeping it under wraps due to the amount of work and number of exams they
    need to pass to get the rating. I have no idea why Microsoft have made
    development for RMS so exclusive. It is very unlike Microsoft who have been
    leaders with SDKs from the very beginning. I have a VS2005 Team Developer
    with MSDN Premium subscription but I'm not allowed to develop for my fully
    licensed copy of RMS. It sucks.
     
    Jeff, Sep 19, 2006
    #7
  8. Rafael R.

    Mick Hardy Guest

    There is a document available from CustomerSource, Support, Knowledge Base,
    Retail Management, Store Operations, Customization, ArticleID 869720. I'm
    not sure if this is the elusive Customization Guide as it is pretty brief but
    it has a number of documents available for download as well. It is labelled
    Partners Only but is available to Customers. It has good info on Hooks and
    COM components.
     
    Mick Hardy, Sep 22, 2006
    #8
  9. Rafael R.

    Sajeer Guest

    I have the customization documents with me if anybody is looking seriously
    for the documentation i will send it to you.

    This information is very much helpfull thanks for your work yaar
    its really apreciable

    Sajeer
    Business Consultant
    HeadStart
     
    Sajeer, Jun 27, 2007
    #9
  10. Rafael R.

    Mark Guest

    Could you send me the customization docs? I was looking for it in google but
    only partial info was found.
    My email is

    Thanks in advance
     
    Mark, Jul 19, 2007
    #10
  11. Rafael R.

    Cyfluthrin Guest

    Sajeer,

    The customization documents would really help me a lot. I have been looking
    for this for months now. Please send me a copy.

    email =

    Thanks in advance.
     
    Cyfluthrin, Sep 23, 2007
    #11
  12. Rafael R.

    Mano Guest

    Sajeer,
    I would appreciate if you cuold send me the customization guide. my
    email is manos at dreamscorp dot com

    Thanks
    Mano
     
    Mano, Oct 20, 2007
    #12
  13. Rafael R.

    ren Guest

    I'm starting on RMS world and would really appreciate if you could send me
    the documentation too.
    email:

    Many thanks!
    Ren
     
    ren, Feb 12, 2008
    #13
  14. Rafael R.

    ISSAM Guest

    Hi Sajeer
    h r u ?
    could you please send me a copy of the customization docs ?

    thank you
     
    ISSAM, Jul 27, 2008
    #14
  15. Rafael R.

    RicoTowers Guest

    Hi Mike,

    I have looking for hooks development documentation and came upton this post.
    If its not too much trouble, would send me a copy of the "Customization
    Guide" or "Secret Book"?

    email:

    Thank you
     
    RicoTowers, Jun 6, 2009
    #15
  16. Rafael R.

    RicoTowers Guest

    Hi Sajeer,

    I just sent an email to Mike; both of u guys have documentation. I'm
    looking into RMS developing. If its not too much trouble, would you send me
    a copy of your Customization documention?

    email:

    Thank you
     
    RicoTowers, Jun 6, 2009
    #16
  17. Rafael R.

    Willi Guest

    Hi Sajeer,
    i would appreciate if you could send me also the customization guide.
    My email:

    Thanks a lot!
    Willi
     
    Willi, Dec 18, 2009
    #17
  18. Rafael R.

    paulo Guest

    I hope you can send me also the guide

    My email


    Thanks
    Paulo



    __________ Information from ESET Smart Security, version of virus signature database 4714 (20091224) __________

    The message was checked by ESET Smart Security.

    http://www.eset.com
     
    paulo, Dec 24, 2009
    #18
  19. Rafael R.

    hozay Guest

    hope its bot to late
    please send me a copy
    thanks
     
    hozay, Apr 12, 2010
    #19
  20. Rafael R.

    nbulusanjr Guest

    Could you send the documentation please. I badly needed it for educational purpose only. Thank you!
     
    nbulusanjr, Feb 28, 2014
    #20
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.