bartk Posted July 9, 2020 Share Posted July 9, 2020 For example my code is String jacobDllVersionToUse; if (jvmBitVersion().contains("32")){ jacobDllVersionToUse = "jacob-1.18-M2-x86.dll" } else { jacobDllVersionToUse = "jacob-1.18-M2-x64.dll"; } File file = new File("lib", jacobDllVersionToUse); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); x.run("calc.exe"); x.winActivate("Calculator"); x.winWaitActive("Calculator"); //Enter 3 x.controlClick("Calculator", "", "133") ; Thread.sleep(1000); //Enter + x.controlClick("Calculator", "", "93") ; Thread.sleep(1000); //Enter 3 x.controlClick("Calculator", "", "133") ; Thread.sleep(1000); } how to do for example String variable = ("Calculator", "", "133") ; x.controlClick(variable) It’s possible? 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