Search found 9465 matches
- Today, 06:23
- Forum: Bug Reports
- Topic: menu setIcon The obtained icon is incorrect
- Replies: 3
- Views: 162
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...
- Today, 06:16
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2)
- Replies: 4
- Views: 163
Re: Reopen Last closed window script (v1 -> v2)
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...
- Today, 03:04
- Forum: Ich brauche Hilfe
- Topic: aufgeblähtem v2.0 Gui-Skript die Luft ablassen Topic is solved
- Replies: 4
- Views: 375
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...
- Today, 02:43
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 9
- Views: 1022
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 ...
- Yesterday, 07:30
- Forum: Ask for Help (v2)
- Topic: How to use hotkey object functions Topic is solved
- Replies: 6
- Views: 241
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)
}
}
- Yesterday, 07:10
- Forum: Bug Reports
- Topic: OnExist reason is always "0" (v2.0.15)
- Replies: 7
- Views: 443
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
- Yesterday, 06:35
- Forum: Scripts and Functions (v2)
- Topic: CSVtoDict v2
- Replies: 9
- Views: 1022
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") ; <<<<<<<<<<
...
- Yesterday, 03:47
- Forum: Ask for Help (v2)
- Topic: i got a problem by using PixelGetColor function, please help me
- Replies: 2
- Views: 154
Re: i got a problem by using PixelGetColor function, please help me
Did you try it with CoordMode "Mouse", "Screen"?
- Yesterday, 03:18
- Forum: Bug Reports
- Topic: loop parse "CSV" doesn't work for some CSV
- Replies: 9
- Views: 440
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...
- Yesterday, 02:53
- Forum: Bug Reports
- Topic: WinWaitClose blocks Timer call
- Replies: 2
- Views: 103
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: 375
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: 9
- Views: 810
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: 446
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: 1336
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: 446
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: 1542
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...
- 13 May 2024, 02:43
- Forum: Ich brauche Hilfe
- Topic: Tastenkombination funkt. nicht mehr...
- Replies: 2
- Views: 176
- 13 May 2024, 02:29
- Forum: Ich brauche Hilfe
- Topic: aus eins mach drei ? Topic is solved
- Replies: 6
- Views: 444
Re: aus eins mach drei ? Topic is solved
Moin, nach dem Aufruf von CombineRgn wird nur noch die 'kombinierte' Region outer benötigt. Die Region inner kann direkt danach gelöscht werden. Die Region outer geht mit dem Aufruf der Funktion SetWindowRgn in den Besitz des Systems/Fensters über ( Quelle ). Damit ist sie anschließend für das Skrip...
- 13 May 2024, 02:08
- Forum: Ich brauche Hilfe
- Topic: Hotstring sehr zeitverzögert
- Replies: 3
- Views: 141
Re: Hotstring sehr zeitverzögert
Moin, das Skript verhält sich immer gleich, Notepad und vielleicht Win 11 generell verhalten sich anders.
- 12 May 2024, 02:32
- Forum: Ich brauche Hilfe
- Topic: aus eins mach drei ? Topic is solved
- Replies: 6
- Views: 444
Re: aus eins mach drei ? Topic is solved
Stimmt, und deshalb musst Du das Fenster mit der ID hCircle vorher mit Destroy entfernen.glnklein wrote:... , einfach hCircle neu definieren erzeugt ja nun einen 4 kreis
Falls Du die Zeit findest, Deinen Blick einmal auf diese Antwort zu richten, geht es um eine Spielsteuerung?