Jump to content
bartk

Jenkins autoitX connection

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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...