Search found 88 matches

by djuga
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...
by djuga
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 ?

GEV wrote:
03 Oct 2022, 04:07
without 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
Counter still increases when you hold key, this is not what im asked
by djuga
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
by djuga
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 ....
by djuga
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...
by djuga
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 :...
by djuga
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...
by djuga
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
by djuga
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 none
by djuga
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?
by djuga
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 ?
by djuga
19 Jul 2021, 11:49
Forum: Ask for Help (v1)
Topic: {UUID} Win32_DiskDrive or ComputerSystemProduct ?
Replies: 2
Views: 375

Re: {UUID} Win32_DiskDrive or ComputerSystemProduct ?

swagfag wrote:
19 Jul 2021, 09:24
neither of these deals with "protection" in any sort of capacity. the question doesnt make sense
Sorry for my english, im edited my ask
by djuga
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}!\\"...
by djuga
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

Rohwedder wrote:
08 Jun 2021, 12:38
Hallo,
try:

Code: Select all

test := "~*Key"
RegExMatch(test, "(\W*)(\w*)", M)
Msgbox % Prefix := M1
Msgbox % Key := M2
This is what I was looking for! Perfect! :dance:
by djuga
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"

Code: Select all

test := "~*Key"
Msgbox % RegExReplace(test,"\W") ; Will give value -> Key
I have only 1 way

Code: Select all

test := "~*Key"
Prefix := RegExReplace(test,"\W")
Key := RegExReplace(test,Prefix)
Msgbox % Prefix
Msgbox % Key
by djuga
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 ???
by djuga
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

boiler wrote:
13 May 2021, 09:55
djuga wrote: This not
RegExMatch(Text, "^\*+\d+\.\d+\.\d+\*+\v*\K.*?(?=\v+\*+\d+\.\d+\.\d+\*+)", new)
Just put s) in front:

Code: Select all

RegExMatch(Text, "s)^\*+\d+\.\d+\.\d+\*+\v*\K.*?(?=\v+\*+\d+\.\d+\.\d+\*+)", new)
Works perfect
by djuga
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

mikeyww wrote:
13 May 2021, 09:34

Code: Select all

FileRead, Text, %A_ScriptDir%\test.txt
RegExMatch(Text, "s)\*\v+\K.+?(?=\v+\*)", new)
SendInput {Text}%new%
This works
RegExMatch(Text, "s)\*\v+\K.+?(?=\v+\*)", new)

This not
RegExMatch(Text, "^\*+\d+\.\d+\.\d+\*+\v*\K.*?(?=\v+\*+\d+\.\d+\.\d+\*+)", new)
by djuga
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

boiler wrote:
13 May 2021, 09:29
Instead of assigning the text to Text, replace it with:

Code: Select all

FileRead, Text, my file.txt
I know it :lol: , but its doesnt work if you read data from file
by djuga
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...

Go to advanced search