Some what typical - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Some what typical (/Thread-Some-what-typical) |
Some what typical - bfakruddin - 12-09-2010 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. RE: Some what typical - manishbhalshankar - 12-09-2010 You can execute the file by using: ExecuteFile fileName RE: Some what typical - bfakruddin - 12-10-2010 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() 2. Code: Function CANCEL() based on my button click on Application, the vbscript file must be executed... is it possible? |