bartk Posted July 26, 2020 Share Posted July 26, 2020 I'm running my script on my local computer and it works, notepad is active and I'm able to send some text. But when I run the same script on my node there's no action. Why? Connection is set correctly, because opening browser works. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 26, 2020 Moderators Share Posted July 26, 2020 @bartk crystal ball is in the shop this week. Could you please post your code? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
bartk Posted July 26, 2020 Author Share Posted July 26, 2020 2 minutes ago, JLogan3o13 said: @bartk crystal ball is in the shop this week. Could you please post your code? String jacobDllVersionToUse; if (jvmBitVersion().contains("32")){ jacobDllVersionToUse = "jacob-1.19-x86.dll";} else { jacobDllVersionToUse = "jacob-1.19-x64.dll";} File file = new File("lib", jacobDllVersionToUse); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); x.run("notepad.exe"); x.winActivate("Untitled - Notepad"); x.winWaitActive("Untitled - Notepad"); x.send("This is a test"); On my local machine code works and I'm able to send text to notepad, on my Node nothing happens Link to comment Share on other sites More sharing options...
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