Jump to content

Search the Community

Showing results for tags 'set focus without title window'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Found 1 result

  1. Hi Guys, I have integrated autoIT with eclipse and i need to automate one desktop base application. But on the very first screen there is not title and text its a simple image with 4 fields. i need to know how can i set focus on the current window without title and text. Screen shot is mentioned. Please let me know how to set focus on window. package Package; import java.io.File; import java.io.IOException; import junit.framework.Assert; import autoitx4java.AutoItX; import com.jacob.com.LibraryLoader; public class App { public static void main( String args[] ) throws InterruptedException { String jacobDllVersionToUse; //String jacobDllVersionToUse; if (jvmBitVersion().contains("32")) { jacobDllVersionToUse = "jacob-1.18-x86.dll"; } else { jacobDllVersionToUse = "jacob-1.18-x64.dll"; } File file = new File("lib", jacobDllVersionToUse); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); //Launched BRMFO application // String $hWnd = ""; boolean i; x.run("C:\\Program Files\\Craft Silicon\\Bankers Realm MFO\\Bin\\BRealmMFO_R13_89.exe"); Thread.sleep(1000); String brmfo = "x.run(C:\\Program Files\\Craft Silicon\\Bankers Realm MFO\\Bin\\BRealmMFO_R13_89.exe)"; Thread.sleep(12000); x.winActivate("brmfo"); brmfo = x.winGetHandle("[ACTIVE]"); //Assert.assertTrue(x.winExists("brmfo")); // i = x.mouseMove(182, 184); //x.send("{ENTER}"); System.out.println("started"); x.controlClick("", "", ""); x.send("TAB"); //x.send("{ALT}n"); System.out.println("TAB pressed"); Thread.sleep(3000); x.send("8008"); System.out.println("Enter ID"); x.send("{TAB}"); Thread.sleep(3000); x.send("TAB"); Thread.sleep(3000); x.send("112925"); Thread.sleep(3000); x.send("Password0"); Thread.sleep(3000); } private static String jvmBitVersion() { return System.getProperty("sun.arch.data.model"); } } brmfoscreen.docx
  • Create New...