Script wanted

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Sumsaam
Posts: 4
Joined: 14 May 2024, 06:47

Script wanted

14 May 2024, 07:16

I Want a script code for that Closes the search window immidiately when someone tries to open the search window having title "Find Sales Receipts". Thank you


[Mod action: Topic moved from "Scripts and Functions (v2)" since that sub-forum is for sharing working scripts with others, not for asking for help with your scripts.]
User avatar
boiler
Posts: 17242
Joined: 21 Dec 2014, 02:44

Re: Script wanted

14 May 2024, 07:21

Code: Select all

#Requires AutoHotkey v2.0

loop {
	WinWait 'Find Sales Receipts'
	WinClose
}
Sumsaam
Posts: 4
Joined: 14 May 2024, 06:47

Re: Script wanted

14 May 2024, 08:13

Can i hide or prevent this scrips from closing or can i protect is closing with password
Sumsaam
Posts: 4
Joined: 14 May 2024, 06:47

Re: Script wanted

14 May 2024, 08:32

@boiler its exe is not working and AHK file works only when i run it as administrator
User avatar
boiler
Posts: 17242
Joined: 21 Dec 2014, 02:44

Re: Script wanted

14 May 2024, 08:41

Sumsaam wrote:
14 May 2024, 08:13
Can i hide or prevent this scrips from closing or can i protect is closing with password
I don't know what this means. You mean so others can't close it? For what purpose?

Sumsaam wrote:
14 May 2024, 08:32
its exe is not working
You probably tried to compile it with the wrong AHK binary -- v1 instead of v2.

Sumsaam wrote:
14 May 2024, 08:32
AHK file works only when i run it as administrator
That would be necessary if you are trying to close the window of an elevated process.
Sumsaam
Posts: 4
Joined: 14 May 2024, 06:47

Re: Script wanted

14 May 2024, 10:06

yes i mean others cant close it . hide it from sys tray. and can i set a shortcut key to start or stop this script? thank you for your response
User avatar
xMaxrayx
Posts: 214
Joined: 06 Dec 2022, 02:56
Contact:

Re: Script wanted

14 May 2024, 10:30

man some topics are sus.
-----------------------ヾ(•ω•`)o------------------------------
https://github.com/xmaxrayx/
User avatar
boiler
Posts: 17242
Joined: 21 Dec 2014, 02:44

Re: Script wanted

14 May 2024, 12:18

Sumsaam wrote: yes i mean others cant close it . hide it from sys tray. and can i set a shortcut key to start or stop this script? thank you for your response
I agree that this isn't a subject we will be discussing here. This is what could be used to create malware (no matter what your intentions are for it) -- hidden and can't close it even if you know it's there. Please don't ask about this again.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: No registered users and 28 guests