Jump to content

Search the Community

Showing results for tags 'focus'.

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

  1. When LISTVIEW loses focus,the selected item will turn gray. How can I change It . Let it continue to stay blue Do not gray #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() Local $listview, $button, $item1, $item2, $item3, $msg GUICreate("LISTVIEW", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES) $listview = GUICtrlCreateListView("NO1 |NO2|NO3 ", 10, 10, 200, 150);,$LVS_SORTDESCENDING) $button = GUICtrlCreateButton("BUTTON", 75, 170, 70, 20) $item1 = GUICt
  2. Hi guys what i am trying to do is have My Gui LIve update Out of focus, so i can have this on a 2nd monitor streaming live updates while i continue to work on other screen, i have been googling and looking at other threads about focus and stuff , but they do not seem to match what I'm after, to be clear - i am not wanting to put focus on the GUI for it to auto update values, if you have any positive feed back on the script while you read - i would be more then happy to accept - as im still building my Knowledge of this coding, and stream line is always better
  3. hello sirs, i've created a tool to the blind users, this tool helps the blind to listen to a audio effect when moving between the GUIs controls on they computers where this tool can get the class for the current focus control and play a sound from a folder i've added all the knowne classes, but i found some problems i hope any one can help me. this is the code that i created #include <WinAPISys.au3> Global $h_CurrentHWNDFocus = "", $h_CurrentControlHWNDFocus = "" AdlibRegister("WindowAudioFocus", 50) Func WindowAudioFocus() Local $h_NewHWNDFocus = WinGetHandle("[acti
  4. Update: Download the latest version here. As my first stab at GUI scripting, I'm trying to write a simple graphical interface for Grep for Windows. I have a basic GUI, but I'm stuck on one point and nothing I've tried so far works. The sticking point is that while the Tab key works to move focus from one input control to the next, clicking the mouse on any but the first input does nothing. This seems like a basic feature of GUI functionality that should work out of the box (like Tab), but clearly I'm missing something. I tried (among many other things) Melba23's technique in the post belo
  5. Hello I have an inquiry please when i use the control get focus it don't detect the menu item there are any Method to do that? i'll use that to make a custom screen reader in my program please help me to do that I am waiting for your answers greetings to you Thank you in advance
  6. Hi, I am still really new with AutoIT. We are using it to automate logging into web sites and I have encountered problems with focus. The target web page is configured to put the cursor into the first text field (username) when the page is loaded, and when I run the AutoIT script, which does the log in seems like it is just not starting where I expect it to be. I have been kind of using ToolTip() to kind of help with debugging, but now I am wondering if the calls to ToolTip() are causing the focus to be messed up. For example, at least visually, when the ToolTip() is calle
  7. Hello I designed this code To help the blind Where screen readers users can Identify the sefocus item with audio files In this code i define some elements Unfortunately, I did not know how to define the other elements I am waiting for your initiative to define the other elements Thank you in advance Global $CFocus = "" Func focus($window) Local $focusing = ControlGetFocus($window) Local $handle = ControlGetHandle($window, "", $focusing) If Not ($focusing = $CFocus) Then Switch StringTrimRight($focusing, 1) Case "button" If
  8. Hi Guys, i am working on a translation app. There are a couple of regular input fields with text that the user is supposed to change to a new language. I want to change the color of the input field as soon as the user leaves the input field. Is there a way to do that? I know how to do this with a button, but i don't know how i can work with focus. Has any of you done something like this before? Thanks!
  9. Hi, iam not able to "activate" (the blue border of the edit control should be displayed) the created input control when clicking on a listview item. All i want is, when the edit control is created, it's active (blue border displayed) and you can directly write in it (cursor at the end), but i can't get it work. Can someone help? #include <GuiConstantsEx.au3> #include <GuiListView.au3> #include <GuiImageList.au3> #include <WindowsConstants.au3> #include <GuiEdit.au3> #include <Misc.au3> Global $Debug_LV = False ; Check ClassName being
  10. As the title states, is there a way to detect which inputbox is "selected" like: if IsSelectedForWritingEtc($MyInputBox) then xxxx i was searching some without success, all my results were like how to read or and write to a inputbox. /T
  11. 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
  12. I created a GUI with a few buttons to move the current active window to a part of the screen: (Left, Right, center, LeftTop, LeftBottom, RightTop, RightBottom) When I click on a GUI button I lose the focus of my active window (the window to move). How can I keep the focus on that window while clicking on a GUI button? WinList() can give a list of active, enabled, minimized windows (and more) but there is no time indication. What I want is to go back to the last active window (before using the GUI) or better never losing the focus of that window when I click on a GUI button. Is t
  13. Spotlight + Focus GUI's This is the latest experiment dealing with screen-dimming and focus. The spotlight effect works by dimming the entire screen except the small 'spotlight' area where the mouse is, so that you can focus on and read/work on that area with less eyestrain. Its a work in progress, however I've added some tweaks to it to make it a bit more interesting (and potentially useful!). In my experiments, the Spotlight and Focus GUI's are pretty nice when used in combination with RedShiftGUI (portable version here), an eyestrain-relieving color temperature shifter, or my >Wind
  14. 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
  15. I recently managed to make a ListView sort correctly by clicking on it's columns, it does sort items very well but there's a very annoying thing >_< : every time after the items are sorted out, an item gets focused ! After I click a column, one item gets blue'd, like when its selected, even if its not ! Note that this happens only becuase of this function : _GUICtrlListView_SimpleSort Instead, the _GUICtrlListView_SortItems function is not doing this , but because of my luck,I must use _GUICtrlListView_SimpleSort ( but it is faster ) Here's my script to test to see what I mean: #in
  16. I haven't got any replies so i figured my question was either not worded well or i didn't give an example that you guys could use. So here is the example: cannot backspace in the edit after having clicked in the embedded IE control. How do i either avoid this or take measures to correct for this? ;========================================================================================== #include <ie.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <GuiEdit.au3> ;Mainwindow $WinMain = GUICreate("hello",
  17. Hi there ya'll! What I've got is 2 GUIs being ontop of eachother, one being the others parent. The parent serves mostly as a background as the child is a bit smaller, transparent and contains a set of images/icons. The child GUI also has a scrollbar created by _GUIScrollbars_Generate. The problem I'm having is that in the parent GUI I have an inputbox, created by GUICtrlCreateInput, and as that inputbox got focus I want to be able to scroll the child GUI. I can't set the inputbox in the child instead as I guess it would be too much work moving it as I scroll along. As I'm having it now I ma
  18. Subtitle pretty much says it. This program darkens the screen except for the active window with options accessible through a convenient tray icon. Other options are supported as well, including: active window-change fading controlcustom darkening color (instead of default black)background image choice (faded image over background windows. weird, but ok.)etc...Obligatory Screenshot: Download: WindowDarken.zip (source) Off-topic notes: I have no clue if there are other programs that do something similar, nor did I really check. I didn't really check the forum thoroughly either to see if some
  • Create New...