Search found 9469 matches
- Today, 03:01
- Forum: Ask for Help (v2)
- Topic: Make ListView selection toggle individual selection Topic is solved
- Replies: 5
- Views: 319
Re: Make ListView selection toggle individual selection Topic is solved
Hi, one SendMessage might be enough (tested only briefly): WM_LBUTTONDOWN(WP, LP, Msg, Hwnd) { ; LVM_HITTEST (0x1012) => https://learn.microsoft.com/en-us/windows/win32/controls/lvm-hittest Static LVHTI := Buffer(24, 0) Local Item := 0 If (Hwnd == edit_LV_Box.Hwnd) { NumPut("Int", LP & 0xFFFF, "Int"...
- Yesterday, 07:10
- Forum: Ich brauche Hilfe
- Topic: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
- Replies: 5
- Views: 260
Re: WheelUp-, WheelDown-Hotkey wegen defektem Scrollrad - V2 Topic is solved
Moin, in v2 sind auch Hotkeyroutinen Funktionen. Man kann sie für mehrere Hotkeys 'stacken' und mit eigenen statischen Variablen ausstatten. #Requires AutoHotkey v2.0 $WheelDown:: $WheelUp:: { Static PreviousWheel := "" If (PreviousWheel = ThisHotkey) Send("{" . SubStr(ThisHotkey, 2) . "}") Previous...
- Yesterday, 05:06
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1291
Re: CSVtoDict v2
Ok, if you want/have to allow any user to edit CSV files using any editor on any system without defining strict rules, good luck!
- 20 May 2024, 12:18
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
- Replies: 9
- Views: 490
Re: Reopen Last closed window script (v1 -> v2) Topic is solved
Code: Select all
ComObjConnect(Window, "Shell_")
- 20 May 2024, 06:23
- Forum: Bug Reports
- Topic: menu setIcon The obtained icon is incorrect
- Replies: 4
- Views: 373
Re: menu setIcon The obtained icon is incorrect
IconNumber Type: Integer If omitted, it defaults to 1 (the first icon group). Otherwise, specify the number of the icon group to be used in the file. For example, MyMenu.SetIcon(MenuItemName, "Shell32.dll", 2) would use the default icon from the second icon group. If negative, its absolute value is...
- 20 May 2024, 06:16
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
- Replies: 9
- Views: 490
Re: Reopen Last closed window script (v1 -> v2) Topic is solved
Shell_NavigateComplete2() is used to update the current path after navigating in an existing explorer window. My attempt: #Requires AutoHotkey v2.0 Shell := ComObject("Shell.Application") ExistingWindows := Map("LastClosed", "") CollectExistingWindows() Hook := ShellHook(ShellHookProc) !e:: { If !E...
- 20 May 2024, 03:04
- Forum: Ich brauche Hilfe
- Topic: aufgeblähtem v2.0 Gui-Skript die Luft ablassen Topic is solved
- Replies: 4
- Views: 464
Re: aufgeblähtem v2.0 Gui-Skript die Luft ablassen Topic is solved
Moin, Welchen Nährwert hat eigentlich die Formatfunktion in der nachträglich editierten Zeile? Keinen! Ich hatte da rumgespielt und mich dann entschieden, Format doch nicht zu benutzen. Dabei habe ich aber anscheinend nur die Platzhalter ( {} ) und die letzte Klammer entfernt, den Funktionsnamen abe...
- 20 May 2024, 02:43
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1291
Re: CSVtoDict v2
Users could save data from Excel with multi-line quoted values, so the file can have \n and \r\n line endings. Users could edit the CSV file from a text editor, so the file can have all \n (Linux, Mac) or \r\n (Windows) line endings. I ended up writing my own function based on regex that I'm happy ...
- 19 May 2024, 07:30
- Forum: Ask for Help (v2)
- Topic: How to use hotkey object functions Topic is solved
- Replies: 6
- Views: 263
Re: How to use hotkey object functions Topic is solved
A bit more straight:
Code: Select all
#Requires AutoHotkey v2.0
For Key In StrSplit("0123456789")
Hotkey('^' Key, (HK) => A.B(SubStr(HK, -1)))
Class A {
Static B(K) {
ToolTip('+' K '!' K)
}
}
- 19 May 2024, 07:10
- Forum: Bug Reports
- Topic: OnExit reason is always "0" (v2.0.15)
- Replies: 7
- Views: 499
Re: OnExist reason is always "0" (v2.0.15)
Code: Select all
#Requires AutoHotkey v2.0
OnExit(DoExit)
DoExit(o*) {
for k, v in o
MsgBox(v, k)
}
ExitApp 999
- 19 May 2024, 06:35
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 12
- Views: 1291
Re: CSVtoDict v2
@10basetom,
try to change the original CSVtoDict() function to:
try to change the original CSVtoDict() function to:
Code: Select all
CSVtoDict(file)
{
array := Map()
data := StrSplit(FileRead(file), "`r`n") ; <<<<<<<<<<
...
- 19 May 2024, 03:47
- Forum: Ask for Help (v2)
- Topic: i got a problem by using PixelGetColor function, please help me
- Replies: 2
- Views: 179
Re: i got a problem by using PixelGetColor function, please help me
Did you try it with CoordMode "Mouse", "Screen"?
- 19 May 2024, 03:18
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 487
Re: loop parse "CSV" doesn't work for some CSV
Excel is using a single `n to mark line breaks within field contents. This causes problems with Loop Read , because: InputFile ... The file's lines may end in carriage return and linefeed (`r`n), just linefeed (`n), or just carriage return (`r). You better use FileContent := FileRead(...) Loop Parse...
- 19 May 2024, 02:53
- Forum: Bug Reports
- Topic: WinWaitClose blocks Timer call
- Replies: 2
- Views: 132
Re: WinWaitClose blocks Timer call
SetTimer -> Remarks Reliability : A timer might not be able to run at the expected time under the following conditions: ... The timer's function is still running when the timer period expires again. ... The timer has been interrupted by another thread, namely another timed function, hotkey subrouti...
- 18 May 2024, 12:57
- Forum: Ich brauche Hilfe
- Topic: aufgeblähtem v2.0 Gui-Skript die Luft ablassen Topic is solved
- Replies: 4
- Views: 464
Re: aufgeblähtem v2.0 Gui-Skript die Luft ablassen Topic is solved
Moin, dass das "Überschreiben" im Sinne von "Zerstören und neu Erstellen" auch in v1 so nicht funktioniert, kannst Du einfach testen: #Requires AutoHotkey v1.1.33 q::RGB_Guis() RGB_Guis() { Loop 3 { Gui %A_Index%: +AlwaysOnTop -DPIScale -Caption -SysMenu +ToolWindow Gui %A_Index%: Add, Text, cWhite,...
- 18 May 2024, 05:22
- Forum: Wish List
- Topic: A_Downloads might be a nice thing to have at some point.
- Replies: 15
- Views: 1216
Re: A_Downloads might be a nice thing to have at some point.
#Requires Autohotkey v2.0 ; ---------------------------------------------------------------------------------------------------------------------- KF := GetKnownFoldersPaths() ; ---------------------------------------------------------------------------------------------------------------------- Ge...
- 16 May 2024, 05:22
- Forum: Ich brauche Hilfe
- Topic: Probleme mit Listview-Aktualisierung
- Replies: 4
- Views: 465
Re: Probleme mit Listview-Aktualisierung
Moin,
gegen das Zucken kann GuiControl, -Redraw, Liste1 helfen.
LV_Modify() allein funktioniert ja nur, wenn die Anzahl der Zeilen immer gleich bleibt. Wenn das so ist, kannst Du das selbstverständlich auch benutzen.
Dem ListView ist es egal, in welchem Tab er steht, nur das Fenster ist wichtig.
gegen das Zucken kann GuiControl, -Redraw, Liste1 helfen.
LV_Modify() allein funktioniert ja nur, wenn die Anzahl der Zeilen immer gleich bleibt. Wenn das so ist, kannst Du das selbstverständlich auch benutzen.
Dem ListView ist es egal, in welchem Tab er steht, nur das Fenster ist wichtig.
- 15 May 2024, 03:03
- Forum: Spiele
- Topic: PixelSearch Topic is solved
- Replies: 22
- Views: 1386
Re: PixelSearch Topic is solved
Moin @glnklein,
stelle spielbezogene Fragen künftig bitte ausschließlich im Spieleforum. Ich muss mich dann hinterher nicht darüber ärgern, dass ich versucht habe, eine Spielmanipulation zu unterstützen.
stelle spielbezogene Fragen künftig bitte ausschließlich im Spieleforum. Ich muss mich dann hinterher nicht darüber ärgern, dass ich versucht habe, eine Spielmanipulation zu unterstützen.
- 15 May 2024, 02:56
- Forum: Ich brauche Hilfe
- Topic: Probleme mit Listview-Aktualisierung
- Replies: 4
- Views: 465
Re: Probleme mit Listview-Aktualisierung
Moin, gero hat recht. Trotzdem noch ein paar Ergänzungen: Die Beschreibung der ListView-Funktionen findet sich hier: Interne ListView-Funktionen . Alle folgenden ListView-Funktionen arbeiten mit dem Standard-GUI-Fenster des aktuellen Threads (was z.B. mit Gui, 2:Default geändert werden kann). Wenn d...
- 14 May 2024, 02:47
- Forum: Bug Reports
- Topic: Access Is Denied for WinGetProcessName in V2 EXE
- Replies: 18
- Views: 1595
Re: Access Is Denied for WinGetProcessName in V2 EXE
Another faster workaround, based on SKAN's WTSEnumProcesses() - Returns list of running processes : ; #Requires AutoHotkey v2.0 ; ====================================================================================================================== ; Get the names of all processes in the system. ; R...