Jump to content

Recommended Posts

Posted

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.

 

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...