Jump to content

Search the Community

Showing results for tags 'Window focus'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

  • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hey guys, I have another newb question. So far, the only way I know of focusing a window is by using it's title. So if I have a window named "ABCD" and then I want to focus a window called "AD" I have a problem, because substring "AD" is contained within "ABCD". To fix this I tried using the command: Opt("WinTitleMatchMode", 3) API for this command can be seen here: http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm However, I still get the same problem. If I focus "ABCD" first, I can't focus "AD" after. Here is my script so far: ;Alters the method used to search window titles. For more info see also: ;http://www.autoitscript.com/autoit3/docs/functions/AutoItSetOption.htm Opt("WinTitleMatchMode", 3) ; Prompt the user to run the script - use a Yes/No prompt (4 - see help file) Local $answer = MsgBox(4, "Looper tester", "This script will run an infinite loop for a test. Run?") ; Check the user's answer to the prompt (see the help file for MsgBox return values) ; If "No" was clicked (7) then exit the script If $answer = 7 Then MsgBox(0, "AutoIt", "OK. Bye!") Exit EndIf Local $launcherName = "ABCD" Local $appExeName = "AD" ; Run Launcher ShellExecute("somePath") ; Wait for the launcher to become active WinWaitActive($launcherName) MouseMove ( 900, 600) MouseClick ( "left") WinWaitActive($appExeName) WinActivate($appExeName) MouseMove ( 900, 600) MouseClick ( "left") ;Loop stuff ; Finished!What am I doing wrong? Why can't I focus $exeExeName? Thanks in advance! I hope it is clear that this question is about substrings and window focus. This is within the user agreement and forum rules.
×
×
  • Create New...