Control Message Box
-
Hi I've C# Windows which has some message box to prompt some info. I'm trying to invoke this from DOS (batch file) at that time i just want to skip all the prompt message boxes. Is there anyways to do it from DOS? Thanks
-
Hi I've C# Windows which has some message box to prompt some info. I'm trying to invoke this from DOS (batch file) at that time i just want to skip all the prompt message boxes. Is there anyways to do it from DOS? Thanks
-
Would you mind providing more clarification? Are you trying to invoke an existing application (.exe) from a DOS batch file. Or are you invoking a method within the program.
Im trying to access existing application from DOS. Exactly saying am trying to create virtual directory using the following commands cd C:\WINDOWS\system32 IISVDir.vbs IIsVDir /create "Default Web Site" App C:\Inetpub\wwwroot\App IIsVDir /create "Default Web Site" AppService C:\Inetpub\wwwroot\AppService IIsVDir /create "Default Web Site" ServiceRequest C:\Inetpub\wwwroot\ServiceRequest But for every line it asks confirmation so Im just trying to automate it with some predefined parameters. Thanks ....
-
Hi I've C# Windows which has some message box to prompt some info. I'm trying to invoke this from DOS (batch file) at that time i just want to skip all the prompt message boxes. Is there anyways to do it from DOS? Thanks
If I understand correctly you're trying to close 'popups' that appear from another application, right? In that case you'll need to import some windows dll's (winapi) (I think you'll need the user32.dll, but I'm not sure) that expose the Windows functions like FindWindows, GetDlgText, etc... With those functions you'll need to: 1: Find the correct window (probably need a loop that will redo this every x seconds) 2: if window is open (= encountered in step 1), press the button (Yes, No, OK, Cancel) I don't know the exact function for this, but it exists. avoid closing or killing the msgbox, instead try to let the msgbox handle itself by using one of the closing buttons. You'll have to find the correct functions and signatures on MSDN, but there is a lot of info out there about this topic.
V.
Stop smoking so you can: Enjoy longer the money you save. Moviereview Archive