Jump to content

TehnicDream

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by TehnicDream

  1. Ok thy
  2. Hi im new with AutoIT and i have a problem with integration with java i manage to do a script to open skype throw a java app but the problem is that the autoit part only sends text i need to sends things like ENTER and TAB this is the code private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { String jacobDllVersionToUse; if (jvmBitVersion().contains("32")){ jacobDllVersionToUse = "jacob-1.18-M2-x86.dll"; } else { jacobDllVersionToUse = "jacob-1.18-M2-x64.dll"; } try{ File file = new File("lib", jacobDllVersionToUse); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); x.run("Skype", "C:/Program Files (x86)/Skype/Phone", AutoItX.SW_SHOW); x.winActivate("Skype"); x.winWaitActive("Skype"); x.sleep(2000); x.send("{TAB}!n" ); }catch(Exception e){ } } Thy
  3. Ok, sory i will repost ther, Thy
  4. Hy, there is someone that cant help pls ?
  5. Hi again i did it but the problem new is that i cant send tab or somting else only plain text private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { 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("Skype", "C:/Program Files (x86)/Skype/Phone", AutoItX.SW_MAXIMIZE); x.winActivate("Skype"); x.winWaitActive("Skype"); x.sleep(2000); x.send("nu mai merge de aici sau pana aici merge"); x.sleep(1000); x.send("{TAB}!n"); }
  6. Hi, im new to autoit and i have a little problem i have to do a app to start some web pages and some windows base programs oane of them is Skype, the problem is that Skype starts but only in system tray and i do not know how to appear on desktop the code i use is below: public static String jvmBitVersion(){ return System.getProperty("sun.arch.data.model"); } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { 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("C:\\Program Files (x86)\\Skype\\Phone\\Skype.exe"); x.sleep(2000); x.winWaitActive("Skype"); x.winActivate("Skype"); }
×
×
  • Create New...