RajeshRayudu Posted May 15, 2020 Posted May 15, 2020 Hi, I am running an exe file through Autoitx in dotnet core Api. It is working fine in local, but when I deployed in IIS, it is not working. Window is not getting focussed. I tried WinActive command, but no luck. Please help me
Developers Jos Posted May 16, 2020 Developers Posted May 16, 2020 So you seriously think this is enough information for anyone to understand the issue and help you? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
RajeshRayudu Posted May 16, 2020 Author Posted May 16, 2020 Sorry for that. This is the code I have tried. AutoItX.Run("C:\\Program Files (x86)\\RAMAS Risk Calc 4\\RiskCalc.exe", "C:\\Program Files (x86)\\RAMAS Risk Calc 4"); AutoItX.Sleep(15000); AutoItX.WinActivate("Risk Calc", ""); AutoItX.WinSetOnTop("Risk Calc", "", 1); AutoItX.ControlSetText("Risk Calc", "", "[CLASSNN:TSRichEdit1]", "Sending"); AutoItX.Send("Text"); var response = AutoItX.ControlGetText("[Class:TMainForm]", "", "[CLASSNN:TSRichEdit1]"); IntPtr winHandle = AutoItX.WinGetHandle("Risk Calc"); AutoItX.WinKill(winHandle); In localhost, I am getting response as "Sending Text", but in hosted environment, getting empty string as response. Please let me know if you need more information
CarlosFrias Posted July 1, 2021 Posted July 1, 2021 Hi RajeshRayudu Have the same exact problem. AutoIT functions execute when I run from Visual Studio, but not when I deploy it to IIS server. Have you ever got it to work? kind regards. Carlos
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now