Jump to content

Search the Community

Showing results for tags 'winactivate'.

  • 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 11 results

  1. I have come across a weird issue that I am not sure how to solve. For some reason, whenever I call WinActivate in certain scenarios instead of opening the single window that already exists, it will create a new blank tab. It should be able to be recreated with this: AutoItSetOption("WinTitleMatchMode", 2) Sleep(1000) For $i=0 To 10 WinActivate("Internet Explorer") Next I am not actually doing this in my code, it is just to demonstrate the fact that new tabs keep popping up. Does anyone know why this happens? EDIT: So I am not sure how reproducib
  2. Hi all, I'm having some trouble restoring a program which uses a normal AutoIT-GUI and is used as a ToolKit for our customers to open different (external) tools, check their network connections or ping different destinations. Almost all customers are running this script on Win7 x64. What do I want to do? When the program is already running and the user tries to start it for a second time, it should exit the second instance after activating/restoring the first instance. What did I do to integrate this? I used a little piece of script found on the forums to prevent open
  3. I have a script that opens an editor (Notepad) and inserts text into its window, but the text insertion fails. The WinActivate() does not always give focus to the newly loaded Notepad and the WinMenuSelectItem() fails. Here is my test file: #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=THTracker.ico #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_UseX64=N #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Opt('MustDeclareVars', 1) Opt("
  4. Hi, I'm trying to upload a file with a web browser but I can't select the Open File window to select the file that I want to upload. TL;DR I can't handle the Open File window of Chrome and MS Edge. AutoIt just doesn't find it by its title (in Firefox yes, but not on Chrome and MS Edge). With another software (Selenium Webdriver in Python) I access to a web page with a common HTML5 file uploader and I click on it, but when the Open File window comes up, I want to select a file and press Enter (write the filepath that I give and press Enter key or Open button). I have the idea, an
  5. Hello all I am trying to use this function to detect if a specific window is running. Then for it to activate it and send an ALT+F command to close the window. But I cannot seem to get it to detect the window and subsequently the rest of the code does not work. #include <MsgBoxConstants.au3> Handleit() Func Handleit() If WinExists("[CLASS:MsiDialogCloseClass]","InstallShield") Then WinActivate("[CLASS:MsiDialogCloseClass]","Installshield") Send("!f") Else MsgBox($MB_SYSTEMMODAL, "", "Uhhh..
  6. Hello, I was wondering if it is possible to run more than one script at a time on different windows in order to emulate click and keyboard stroke. As far as I know, it's not possible to have several mouses, so I don't see how this could be achieved. For example, let's say I have a client in one window, and my internet browser in another window. I'd like to run one script on the client window, and another script on the navigator browser simultaneously. Is this possible ? Also how can I get the focus on my browser at the beginning of my script ? I tried winActivate("Mozilla"), without succes
  7. I'm still trying to convert my ahk scripts to au3. I can't find out how to give focus to my Chrome window (or whatever window) if my GUI (created in autoit) is active. Did I miss something? This is my code: WinActivate("[CLASS:Chrome_WidgetWin_1]") WinWaitActive("[CLASS:Chrome_WidgetWin_1]") It activates Chrome but does not give it focus when my GUI is still visible or minimized at the taskbar. I see the Chrome window in front of me but I have to click in it to give it focus, (same if I only use the first line (WinActivate without WinWaitActive)) 1) How can I give focus to the c
  8. I am having some issues with what should be the simplest of scripts. I have a program that records internet tv. If the network drops for some reason, an error window pops up and it will not record anything that is scheduled from that point on until the error is closed. So if this occurs at night when I am sleeping, I could miss recording several tv shows. So here is what I have done. The error windows do not have a title so I am using the window text and WinGetHandle to close. Like this... while 1 sleep(100) if WinExists("","ネットワークに接続できません。") then $handle = WinGetHandle("","ネットワー
  9. Hi Guys. You've all been extremely helpful to me so far. Anyways, I was wondering if there was a way to get winActivate working without using the actual title of the application. The problem for me is that the application I'm trying to script has a title that is constantly changing to indicate which version of a project the user is using. This means, I can't rely on the title to activate the window. I tried using a control ID of the window, but that didn't seem to work...
  10. Hi friends, One of my script uses Winactivate to activate a window. The complete script works perfectly when I'm connected to the system or some one is loged into the system. But the WinActivate command does not work when I execute the script on a scheduled task when no one is connected to the system. The Script correctly unlocks the machine and executes the application but most of the time, fails to activate the window to receive the keys I send through the Send command. ;Execute the Time and attendcence application $_Temp = Run($sApplicationpath) Sleep(2000) WinActivate ( "Time and At
  11. Hey guys, I tried search but most of the topics are a bit too advanced for what I'm looking for, I'm just a simple hobbyist. Anyway, basically my friend constantly leaves his browser open and it really drives me crazy so I'm writing a simple program that, after the computer is out of use for 30 minutes, activates each browser, creates a bookmark folder with everything open, then kills the process. My problem is, the only way I know to activate a window is to use winactivate, but in order to use it properly I think I need to know the name of the window.. gmail, functions, etc etc etc..
  • Create New...