Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some what typical
#1
Not Solved Rolleyes 
Hi All,

I have a vbscript file... I developed some code in vbscript... Now, I need to execute this, by not double clicking the file.

I've one application, script must be executed based on user action,
eg: I'm pressing button on application... based on that click on button, the vbscript file must be execute.

If we use Inputbox or Msgbox in vbscript... based on button click we can do that. But I'm performing action on thirdparty application.
Reply
#2
Not Solved
You can execute the file by using: ExecuteFile fileName
Reply
#3
Not Solved
Hmm...

Executefile "Path of .vbs file"....
where do u keep this line of code? in Test script or component rite...!
But, I don't have QTP here

I hope you didn't get my question...!

Actually My question is...

I've one application... It contains 2 buttons OK and CANCEL.

I have 2 vbscript files...
1.
Code:
Function OK()
msgbox "You Clicked OK, navigation will continue"
End Function

2.
Code:
Function CANCEL()
msgbox "You Clicked on CANCEL, Application will be closed"
End Function

based on my button click on Application, the vbscript file must be executed... is it possible?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)