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


R

Rafael R.

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
 
Ad

Advertisements

M

Mick Hardy

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.
 
R

Rafael R.

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: (e-mail address removed)
 
M

Mick Hardy

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.
 
R

Rene

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 .?
(e-mail address removed)
Thanks
 
M

Mick Hardy

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.
 
J

Jeff

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.
 
M

Mick Hardy

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.
 
S

Sajeer

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
 
M

Mark

Could you send me the customization docs? I was looking for it in google but
only partial info was found.
My email is (e-mail address removed)

Thanks in advance
 
C

Cyfluthrin

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 = (e-mail address removed)

Thanks in advance.
 
Ad

Advertisements

M

Mano

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

Thanks
Mano
 
R

ren

I'm starting on RMS world and would really appreciate if you could send me
the documentation too.
email: (e-mail address removed)

Many thanks!
Ren
 
I

ISSAM

Hi Sajeer
h r u ?
could you please send me a copy of the customization docs ?
(e-mail address removed)
thank you
 
R

RicoTowers

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: (e-mail address removed)

Thank you
 
R

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: (e-mail address removed)

Thank you
 
W

Willi

Hi Sajeer,
i would appreciate if you could send me also the customization guide.
My email: (e-mail address removed)

Thanks a lot!
Willi
 
P

paulo

I hope you can send me also the guide

My email (e-mail address removed)


Thanks
Paulo


Willi said:
Hi Sajeer,
i would appreciate if you could send me also the customization guide.
My email: (e-mail address removed)

Thanks a lot!
Willi




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

The message was checked by ESET Smart Security.

http://www.eset.com

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

The message was checked by ESET Smart Security.

http://www.eset.com
 
Ad

Advertisements

N

nbulusanjr

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
Could you send the documentation please. I badly needed it for educational purpose only. Thank you!
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

hooks 1
InitialiseTransaction Hook 2
Event hook 3
Hook at print time. Hook #1 4
Hook AddItem 1
Addin Hooks 2
SavePurchaseOrder Hook 2
Hook Help 0

Top