i made some .BMP inorder to function like a virtual object. my question is to make it function as a push button while recording it shows the script as virtualobject but it does not function.
I am not sure I understand the question. Does the bitmap function as a button when you click on it manually? If not, nothing you do in WinRunner is going to make it do so; all WinRunner can do is simulate a mouse click on that object.
If that is not what you are asking, then you will need to explain in more detail: what does the button do in normal (non-WinRunner) operation, what WinRunner function(s) are you trying to use against that object, and what return values and/or error messages are being returned by those functions?