Search found 88 matches
- 03 Oct 2022, 17:58
- Forum: Ask for Help (v1)
- Topic: How i can stop hotkey spam ?
- Replies: 5
- Views: 728
Re: How i can stop hotkey spam ?
Hallo, try: Goto, t UP t UP::Hotkey, t , Test , On Test: Hotkey, t , Return Counter += 1 Tooltip, % Counter , 0 , 0 Return: return Yes, it will work, but the request is different, need to change the behavior, for example, how directives do it, in your method you need to resort to constant binds, th...
- 03 Oct 2022, 17:56
- Forum: Ask for Help (v1)
- Topic: How i can stop hotkey spam ?
- Replies: 5
- Views: 728
Re: How i can stop hotkey spam ?
Counter still increases when you hold key, this is not what im askedGEV wrote: ↑03 Oct 2022, 04:07without while loop:Code: Select all
Hotkey, $t, Test, On Hotkey, $t up, NoTest, On return Test: Counter += 1 Tooltip, % Counter, 0, 0 ; Sleep, 300 ; if you want a delay return NoTest: Counter = 0 Tooltip return
- 03 Oct 2022, 01:59
- Forum: Ask for Help (v1)
- Topic: How i can stop hotkey spam ?
- Replies: 5
- Views: 728
How i can stop hotkey spam ?
If you hold T key, counter will increase number, but why, is there any way to prevent it without KeyWait , while , loop etc How to change this behavior ? Hotkey, t , Test , On return Test: Counter += 1 Tooltip, % Counter , 0 , 0 ;KeyWait, t ; This will work, but i want without this method return
- 09 Nov 2021, 13:34
- Forum: Ask for Help (v1)
- Topic: How to get the last running processes for a specific time? Topic is solved
- Replies: 7
- Views: 934
Re: How to get the last running processes for a specific time? Hello ? Anyone ? Topic is solved
You can get info about processes like this: Info := GetProcessesInfo() ; Info is an array of objects like {procName: "AutoHotkey.exe", PID: 3236, crationTime: "20211109195846"} lastFiveSecCreated := "", now := A_Now for k, v in Info { t := now t -= v.creationTime, s if (t <= 5) lastFiveSecCreated ....
- 09 Nov 2021, 13:30
- Forum: Ask for Help (v1)
- Topic: How to get the last running processes for a specific time? Topic is solved
- Replies: 7
- Views: 934
Re: How to get the last running processes for a specific time? Hello ? Anyone ? Topic is solved
But It finds only the last running process and terminates it As I understand, List subcommand of WinGet gives ID numbers of all WINDOWS (and only visible windows if you haven't switched DetectHiddenWindows On ), but not ID numbers of processes. Do you want to close all (visible) windows that were c...
- 09 Nov 2021, 03:22
- Forum: Ask for Help (v1)
- Topic: How to get the last running processes for a specific time? Topic is solved
- Replies: 7
- Views: 934
How to get the last running processes for a specific time? Topic is solved
For example, in the last 5 seconds which processes have been launched, need to get it This code can be modified somehow? Need to close all the processes opened in the last 5 seconds But It finds only the last running process and terminates it WinGet, Wins, List While Win := Wins%A_Index% { WinTime :...
- 08 Nov 2021, 04:18
- Forum: Ask for Help (v1)
- Topic: Get from where file is launched
- Replies: 2
- Views: 400
Re: Get from where file is launched
Hallo, try: ; script 1: Script2FullPath = D:\Programme\Spezial-Autohotkeys\new 4.exe Run, "%Script2FullPath%" "%A_ScriptFullPath%" Return and ; script 2: IF Script1FullPath := A_Args[1] MsgBox,% Script1FullPath Its works, but need make it if first script has this ;Script 1 Run, file.exe In your way...
- 08 Nov 2021, 02:29
- Forum: Ask for Help (v1)
- Topic: Get from where file is launched
- Replies: 2
- Views: 400
Get from where file is launched
When the ahk file is launched, for example from another file, need to get the path of the other file
File 2 is compiled ahk file
File 1 run file 2
In file 2 get fullpath with name from file 1
File 2 is compiled ahk file
File 1 run file 2
In file 2 get fullpath with name from file 1
- 21 Oct 2021, 08:06
- Forum: Gaming Help (v1)
- Topic: PixelSearch in fullscreen game
- Replies: 2
- Views: 572
Re: PixelSearch in fullscreen game
In same game on my system for fullscreen pixelsearch work normal, but for other noneHellbent wrote: ↑20 Oct 2021, 19:27follow this rabbit.
viewtopic.php?f=18&t=91794&p=406000&hilit=imagesearch+fullscreen+game#p406206
- 20 Oct 2021, 19:23
- Forum: Gaming Help (v1)
- Topic: PixelSearch in fullscreen game
- Replies: 2
- Views: 572
PixelSearch in fullscreen game
On some systems, PixelSearch works fine in full screen, and on some it doesn't, why is this happening?
- 03 Aug 2021, 21:30
- Forum: Scripts and Functions (v1)
- Topic: NeutronC - Run GUIs in Chrome!
- Replies: 10
- Views: 3863
Re: NeutronC - Run GUIs in Chrome!
Nice, but how call js function from ahk, without this - it makes no sense, and how hide title bar ?
- 19 Jul 2021, 11:49
- Forum: Ask for Help (v1)
- Topic: {UUID} Win32_DiskDrive or ComputerSystemProduct ?
- Replies: 2
- Views: 375
- 19 Jul 2021, 07:37
- Forum: Ask for Help (v1)
- Topic: {UUID} Win32_DiskDrive or ComputerSystemProduct ?
- Replies: 2
- Views: 375
{UUID} Win32_DiskDrive or ComputerSystemProduct ?
For using key system in code What way is better ? This -> DiskDrive() { for objItem in ComObjGet("winmgmts:").ExecQuery("SELECT * FROM Win32_DiskDrive WHERE not InterfaceType='USB'") return objItem.SerialNumber } Or this -> UUID() { for obj in ComObjGet("winmgmts:{impersonationLevel=impersonate}!\\"...
- 08 Jun 2021, 14:56
- Forum: Ask for Help (v1)
- Topic: Split prefix and hotkey using RegExReplace, need help Topic is solved
- Replies: 2
- Views: 367
Re: Split prefix and hotkey using RegExReplace, need help Topic is solved
This is what I was looking for! Perfect!Rohwedder wrote: ↑08 Jun 2021, 12:38Hallo,
try:Code: Select all
test := "~*Key" RegExMatch(test, "(\W*)(\w*)", M) Msgbox % Prefix := M1 Msgbox % Key := M2
- 08 Jun 2021, 11:42
- Forum: Ask for Help (v1)
- Topic: Split prefix and hotkey using RegExReplace, need help Topic is solved
- Replies: 2
- Views: 367
Split prefix and hotkey using RegExReplace, need help Topic is solved
its possible to get ~* and Key apart ?
test also can be "~Key"
I have only 1 way
test also can be "~Key"
Code: Select all
test := "~*Key"
Msgbox % RegExReplace(test,"\W") ; Will give value -> Key
Code: Select all
test := "~*Key"
Prefix := RegExReplace(test,"\W")
Key := RegExReplace(test,Prefix)
Msgbox % Prefix
Msgbox % Key
- 14 May 2021, 10:19
- Forum: Scripts and Functions (v1)
- Topic: Reduce Flicker dramatically (Double Buffer)
- Replies: 30
- Views: 14467
Re: Reduce Flicker dramatically (Double Buffer)
But if gui have background image this way doesnt work! How make it with background image ???
- 13 May 2021, 10:00
- Forum: Ask for Help (v1)
- Topic: RegExMatch help :) Topic is solved
- Replies: 20
- Views: 1622
Re: RegExMatch help :) Topic is solved
Works perfectboiler wrote: ↑13 May 2021, 09:55Just put s) in front:
Code: Select all
RegExMatch(Text, "s)^\*+\d+\.\d+\.\d+\*+\v*\K.*?(?=\v+\*+\d+\.\d+\.\d+\*+)", new)
- 13 May 2021, 09:37
- Forum: Ask for Help (v1)
- Topic: RegExMatch help :) Topic is solved
- Replies: 20
- Views: 1622
Re: RegExMatch help :) Topic is solved
This worksmikeyww wrote: ↑13 May 2021, 09:34Code: Select all
FileRead, Text, %A_ScriptDir%\test.txt RegExMatch(Text, "s)\*\v+\K.+?(?=\v+\*)", new) SendInput {Text}%new%
RegExMatch(Text, "s)\*\v+\K.+?(?=\v+\*)", new)
This not
RegExMatch(Text, "^\*+\d+\.\d+\.\d+\*+\v*\K.*?(?=\v+\*+\d+\.\d+\.\d+\*+)", new)
- 13 May 2021, 09:34
- Forum: Ask for Help (v1)
- Topic: RegExMatch help :) Topic is solved
- Replies: 20
- Views: 1622
Re: RegExMatch help :) Topic is solved
I know it , but its doesnt work if you read data from fileboiler wrote: ↑13 May 2021, 09:29Instead of assigning the text to Text, replace it with:Code: Select all
FileRead, Text, my file.txt
- 13 May 2021, 09:25
- Forum: Ask for Help (v1)
- Topic: RegExMatch help :) Topic is solved
- Replies: 20
- Views: 1622
Re: RegExMatch help :) Topic is solved
I thought about the approach with just checking the newlines but was thinking you might then say it doesn't work with this: Text= ( ***********1.2.3************ asddqwlkajsfdlksaa eqwijfjzx,mnsdapo 23190-8gdosisahdd ***********3.2.1************ This text doesnt needed 4 This text doesnt needed 5 Th...