Jump to content
Simpel

[Workaround] List of HotKeySets

Recommended Posts

Simpel

Hi,

 

I have written a programm offering me a lot of hotkeys to work with windows. All in all there are 40 hotkeys defined now.

Now I made a portable version of it. But in this there are a lot of hotkeys useless. So I had to change some things. But that's not my point.

Because of all these many hotkeys I sometimes know I made a hotkey but what were the keys I have to press.

So I want to make a little help GUI or html or whatever. Now I'm interested to automate my own list of hotkeys.

How can I collect all my hotkeys and necessary keys for this in a list?

 

Regard, Conrad

Edited by Simpel
[workaround]

SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites
BrewManNH

Write them down as you enter them into the script.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites
Simpel

Hi,

now I do it this way:

Global $aH[0][2] ; Array für Hilfe
Global $bPortable = True

If @UserName = "ABCDE" Then $bPortable = False ; all office clients at work

#region - Hotkeys Global ; for all users
HotKeySet("^{F1}","Hilfe")
_ArrayAdd($aH, "STRG F1|Hotkey Hilfe")
HotKeySet("{PAUSE}", "TogglePause")   ; Pause-Taste
_ArrayAdd($aH, "PAUSE|Pause Anhalten Stop")
HotKeySet("^!d","OpenExplorer")  ;Strg-Alt-d
_ArrayAdd($aH, "STRG ALT D|Explorer Arbeitsplatz")
HotKeySet("^!t","OpenTaskManager")  ;Strg-Alt-t
_ArrayAdd($aH, "STRG ALT T|TaskManager")
HotKeySet("^!{SPACE}","Minimize")  ;Strg-Alt-Space
_ArrayAdd($aH, "STRG ALT SPACE|Minimieren Minimize Fenster verkleinern")
HotKeySet("+^!{SPACE}","Maximize")  ;Shift+Strg-Alt-Space
_ArrayAdd($aH, "SHIFT STRG ALT SPACE|Maximieren Maximize Fenster vergrößern")
HotKeySet("^!n","OpenNotepad")  ;Strg-Alt-n
_ArrayAdd($aH, "STRG ALT N|Notepad Editor Wordpad")
HotKeySet("^!r","OpenRechner")  ;Strg-Alt-r
_ArrayAdd($aH, "STRG ALT R|Rechner Taschenrechner")
HotKeySet("^!w","OpenWord")  ;Strg-Alt-w
_ArrayAdd($aH, "STRG ALT W|Word Office12")
HotKeySet("^!e","OpenExcel")  ;Strg-Alt-e
_ArrayAdd($aH, "STRG ALT E|Excel Office12")
HotKeySet("^!i","OpenLaufwerkI")  ;Strg-Alt-i
_ArrayAdd($aH, "STRG ALT I|USB Laufwerk anzeigen öffnen Explorer")
HotKeySet("+^!i","EjectUSB")    ;Shift-Strg-Alt-i
_ArrayAdd($aH, "SHIFT STRG ALT U|USB Laufwerk auswerfen unmounten")
HotKeySet("^!{Right}","MoveRight")
_ArrayAdd($aH, "STRG ALT RECHTS|Fenster rechts verschieben")
HotKeySet("^!{Left}","MoveLeft")
_ArrayAdd($aH, "STRG ALT LINKS|Fenster links verschieben")
HotKeySet("{F5}", "RefreshDispo")   ; F5
_ArrayAdd($aH, "F5|Refresh Dispo Aktualisieren")
HotKeySet("^!m","MediaCenter")  ;Strg-Alt-m
_ArrayAdd($aH, "STRG ALT M|MediaCenter MC")
HotKeySet("^!c","OpenPfad")  ;Strg-Alt-c
_ArrayAdd($aH, "STRG ALT C|Clipboard Zwischenablage Pfad Explorer Kopieren")
HotKeySet("{F10}","RefreshErgebnisse")
_ArrayAdd($aH, "F10|Refresh Aktualisieren Ergebnisse")
HotKeySet("{F11}","RefreshProzesse")
_ArrayAdd($aH, "F11|Refresh Aktualisieren Prozesse")
HotKeySet("+{F10}","ResetPos10")
_ArrayAdd($aH, "SHIFT F10|Reset Zurücksetzen Refresh Aktualisieren Ergebnisse")
HotKeySet("+{F11}","ResetPos11")
_ArrayAdd($aH, "SHIFT F11|Reset Zurücksetzen Refresh Aktualisieren Prozesse")
HotKeySet("^!k","Sonderzeichen")  ;Strg-Alt-k
_ArrayAdd($aH, "STRG ALT K|Kill Sonderzeichen")
HotKeySet("^!{Up}","SortDate")  ;Strg-Alt-Pfeil hoch
_ArrayAdd($aH, "STRG ALT HOCH|Explorer Sortieren Datum")
HotKeySet("^!{Down}","SortName")  ;Strg-Alt-Pfeil runter
_ArrayAdd($aH, "STRG ALT RUNTER|Explorer Sortieren Name")
HotKeySet("^{BREAK}", "KillF5") ;Strg-BREAK beendet mit F5 gestarteten AutoIt-Prozess
_ArrayAdd($aH, "STRG BREAK|AutoIt Abbrechen SciTE")
HotKeySet("+^!e","Details")  ;Shift-Strg-Alt-e
_ArrayAdd($aH, "SHIFT STRG ALT E|Eigenschaften Details Explorer Ansicht")
HotKeySet("+^c", "Copy_no_Format") ;Shift-Strg-c entfernt alle Formatierungen im Clipboard
_ArrayAdd($aH, "SHIFT STRG C|Clipboard Zwischenablage Kopieren Formatierung Killen Löschen")
#endregion

#region - Hotkeys only user ABCDE
If Not $bPortable Then
    HotKeySet("^!l","OpenLotus")  ;Strg-Alt-l
    _ArrayAdd($aH, "STRG ALT L|Lotus Lotus8")
    HotKeySet("^!a","OpenAutoIt")  ;Strg-Alt-a
    _ArrayAdd($aH, "STRG ALT A|AutoIt SciTE Includes")
    HotKeySet("^!f","OpenOrdner")  ;Strg-Alt-f
    _ArrayAdd($aH, "STRG ALT F|Favoriten Ordner Explorer Folder")
    HotKeySet("^!b","OpenBBCode")  ;Strg-Alt-b
    _ArrayAdd($aH, "STRG ALT B|BBCode Tabelle Excel")
    HotKeySet("{ESC}", "LotusESC")   ; ESC
    _ArrayAdd($aH, "ESC|Lotus")
    HotKeySet("^!p","OpenProgrammstart")  ;Strg-Alt-p
    _ArrayAdd($aH, "STRG ALT P|Programmstart")
    HotKeySet("{F6}", "Zoom")   ; F6
    _ArrayAdd($aH, "F6|Zoom BID Lupe Pastebin")
    HotKeySet("+^!s","Auftrag")  ;Shift-Strg-Alt-s
    _ArrayAdd($aH, "SHIFT STRG ALT S|Sofi Auftrag Dispo Blockzeit Rechtsklick")
EndIf
#endregion

#region - Hotkeys only Portable
If $bPortable Then
    TrayTip("Hotkey - Portable", "Der Benutzer ist " & @UserName & ".", 10, 16)
    HotKeySet("^!b","BID")  ;Strg-Alt-b
    _ArrayAdd($aH, "STRG ALT B|BID Fairlight Kopieren MediaCenter MC")
    HotKeySet("^!p","Pastebin")  ;Strg-Alt-p
    _ArrayAdd($aH, "STRG ALT P|Pastebin Abruf")
EndIf
#endregion

#region - Hotkeys old and skipped
;~ HotKeySet("^!y","OpenLaufwerkY")  ;Strg-Alt-y
;~ HotKeySet("^!z","OpenLaufwerkZ")  ;Strg-Alt-z
;~ HotKeySet("#{DEL}","Lock")
;~ HotKeySet("^!u","UngeleseneBeitraege")  ;Strg-Alt-u
#endregion

While 1
    Sleep(100)
WEnd
Exit

Func Hilfe()
    _ArraySort($aH)
    Local $sAbfrage = InputBox("Hotkey - Hilfe", " " & @CRLF & @CRLF & "Bitte den Suchbegriff eingeben:") ; input search string
    Local $aErgebnisIndizies = _ArrayFindAll($aH, $sAbfrage, 0, 0, 0, 1, 1)
    Local $ii = UBound($aErgebnisIndizies)
    Local $aE[$ii][2]
    For $i = 0 To UBound($aErgebnisIndizies) - 1
        $aE[$i][0] = $aH[$aErgebnisIndizies[$i]][0]
        $aE[$i][1] = $aH[$aErgebnisIndizies[$i]][1]
    Next
    If $sAbfrage = "" Then
        _ArrayDisplay($aH, "Hotkey-Hilfe","", 0, Default, "Tasten|Tags")
    Else
        _ArrayDisplay($aE, "Hotkey-Hilfe","", 0, Default, "Tasten|Tags")
    EndIf
EndFunc

_ArrayAdd($aH, KEYS|TAGS to search)

Regards, Conrad

Edited by Simpel

SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • guinness
      By guinness
      Right now the script will exit immediately if I don't pause it somehow (obvious of course).
      I was  curious on people's opinions of how they do it or what option they prefer below? Thanks
      Option 1 (I prefer)
      #include <MsgBoxConstants.au3> HotKeySet('^!p', SomeFunc) ProcessWaitClose(@AutoItPID) Func SomeFunc() MsgBox($MB_SYSTEMMODAL, "Title", "This message box will timeout after 10 seconds or select the OK button.", 10) EndFunc Option 2 (in the help file)
      #include <MsgBoxConstants.au3> HotKeySet('^!p', SomeFunc) While Sleep(100) WEnd Func SomeFunc() MsgBox($MB_SYSTEMMODAL, "Title", "This message box will timeout after 10 seconds or select the OK button.", 10) EndFunc Option 3
      #include <MsgBoxConstants.au3> HotKeySet('^!p', SomeFunc) While 1 GUIGetMsg() ; Use the internal sleep WEnd Func SomeFunc() MsgBox($MB_SYSTEMMODAL, "Title", "This message box will timeout after 10 seconds or select the OK button.", 10) EndFunc  
    • Ascer
      By Ascer
      1. Description.
      Udf working with MSDN System.Collections.ArrayList. Allow you to make fast operations on huge arrays, speed is even x10 better than basic _ArrayAdd.  Not prefered for small arrays < 600 items. 2. Requirements
      .NET Framework 1.1 - 4.5 (on this version Microsoft destroy old rules) System Windows 3. Possibilities.
      ;=============================================================================================================== ; UDF Name: List.au3 ; ; Date: 2018-02-17, 10:52 ; Description: Simple udf to create System Collections as ArrayList and make multiple actions on them. ; ; Function(s): _ListCreate -> Creates a new list ; _ListCapacity -> Gets a list size in bytes ; _ListCount -> Gets items count in list ; _ListIsFixedSize -> Get bool if list if fixed size ; _ListIsReadOnly -> Get bool if list is read only ; _ListIsSynchronized -> Get bool if list is synchronized ; _ListGetItem -> Get item on index ; _ListSetItem -> Set item on index ; ; _ListAdd -> Add item at end of list ; _ListClear -> Remove all list items ; _ListClone -> Duplicate list in new var ; _ListContains -> Get bool if item is in list ; _ListGetHashCode -> Get hash code for list ; _ListGetRange -> Get list with items between indexs ; _ListIndexOf -> Get index of item ; _ListInsert -> Insert a new item on index ; _ListInsertRange -> Insert list into list on index ; _ListLastIndexOf -> Get index last of item ; _ListRemove -> Remove first found item ; _ListRemoveAt -> Remove item in index ; _ListRemoveRange -> Remove items between indexs ; _ListReverse -> Reverse all items in list ; _ListSetRange -> Set new value for items in range ; _ListSort -> Sort items in list (speed of reading) ; _ListToString -> Get list object name ; _ListTrimToSize -> Remove unused space in list ; ; Author(s): Ascer ;=============================================================================================================== 4. Downloads
      List.au3 5. Examples
      SpeedTest _ArrayAdd vs ListAdd SpeedTest ArraySearch vs ListIndexOf Basic usage - crating guild with members  
    • nacerbaaziz
      By nacerbaaziz
      can we  create a list box with  Columns?
      welcome everybody
      Dears I have a question if you let me
      can we  create a list box with  Columns?
      i know we can create a list view with Columns
      but my question is about the list box
      I'm waiting your responses
      Thank you in advance
    • nacerbaaziz
      By nacerbaaziz
      Detect if the focus item is a button or check box
      Hello everyone.
      My dears I have a problem
      When I try to use
      ControlGetFocus function
      it  doesn't recognize the check  boxes.
      The result is that the selector is a button
      Although the specified is a check box
      but I want a way to identify the check boxes.
      Because I want to make a tool that helps screen readers users
      I hope you have the solution.
      Thank you in advance.
       
    • AndreyS
      By AndreyS
      Dear developers and creators of the language, please explain to me why when pressing the combination Crtl + Shift + C from the 5th or the 10th time "sticks / sinks" Ctrl or Shift? And then you need to press Ctrl or Shift again to reset their triggering. I only need to use hot keys like in the example!
      The code is a small example. Its essence is that when a user in the editor selects any number and presses a combination, then it increases by 1. 
      Dim $x HotKeySet("+^c","Calc") While 1 Sleep(10000) WEnd Func Calc() Send("^c") Sleep(50) $x=ClipGet()+1 ClipPut($x) Send("^v") EndFunc I thought that in my program some kind of glitch was searching for a reason for a long time. And it turned out that apparently somehow the work of some functions used in the example is not compatible. 
      Tell me, please, what is the problem?
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.