GithubHelp home page GithubHelp logo

focusborderhide's Introduction

FocusBorderHide

Remove a focus border (usually a white dotted line in common controls)

image

simple utility script to remove active focus border if present. Please note, they come back as soon as the control creates it again when selections change via keyboard etc.

Included is 2 implementations;

  1. via users keyboard inputs
  2. via WindowsEventHook - Selection change

Each will attempt to circumnvent the focus border ever existing. However the event hook approach is technically superior.

Eg1:

"moving" with arrowkeys in a listview will create the focus border again.

This can easily be scripted away in conjunction with an event hook or a keyboard hook for example to the arrowkeys.

Eg1a:

~LButton:: ~Right:: ~Left:: ~Down:: ~Up:: (instr(ContTitlGetActive(),"syslistview32")|| instr(ContTitlGetActive(),"msctls_trackbar32")? FocusLineHide())

return,

eg2: Hookinit: HookSc:= dllcall("SetWinEventHook","Uint",0x8006,"Uint",0x8006,"Ptr",0,"Ptr" , ProcSc_:= RegisterCallback("onSel",""),"Uint",0,"Uint",0,"Uint",0x0000) ;0x8006 - Selection Changed. return,

onSel(HookCr="",eventCR="",hWnd="",idObject="",idChild="",dwEventThread="") { return,(instr(ContTitlGetActive(),"syslistview32")|| instr(ContTitlGetActive(),"msctls_trackbar32")? FocusLineHide()) }

focusborderhide's People

Contributors

wolfman616 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.