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

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

Reply to
Rafael R.
Loading thread data ...

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.

Reply to
Mick Hardy

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: snipped-for-privacy@gmail.com

"Mick Hardy" wrote:

Reply to
Rafael R.

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.

Reply to
Mick Hardy

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 .? snipped-for-privacy@thewizz.com Thanks

"Mick Hardy" wrote:

Reply to
Rene

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.

Reply to
Mick Hardy
**********

"Mick Hardy" wrote in message news: snipped-for-privacy@microsoft.com... 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.

Reply to
Jeff

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.

Reply to
Mick Hardy

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

Thanks > I have the customization documents with me if anybody is looking seriously

Reply to
Mark

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 = snipped-for-privacy@gmail.com

Thanks > I have the customization documents with me if anybody is looking seriously

Reply to
Cyfluthrin

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

Thanks Mano

"Sajeer" wrote:

Reply to
Mano

I'm starting on RMS world and would really appreciate if you could send me the documentation too. email: snipped-for-privacy@yahoo.com

Many thanks! Ren

"Sajeer" wrote:

Reply to
ren

Reply to
ISSAM

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: snipped-for-privacy@hotmail.com

Thank you

"Mick Hardy" wrote:

Reply to
RicoTowers

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: snipped-for-privacy@hotmail.com

Thank you

"Sajeer" wrote:

Reply to
RicoTowers

Hi Sajeer, i would appreciate if you could send me also the customization guide. My email: snipped-for-privacy@kirbis.de

Thanks a lot! Willi

"Sajeer" wrote:

Reply to
Willi

I hope you can send me also the guide

My email snipped-for-privacy@gmail.com

Thanks Paulo

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

The message was checked by ESET Smart Security.

formatting link

Reply to
paulo

Reply to
hozay

Hola Rafa pudistes desarrolar el hook. Porfavor ayúdame, yo necesito apre nder, te agradecera mucho compartas tu conocimiento. facilitame un ejemplo y breve explicación de como se hace.

Reply to
saulmurillo

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.