Search found 33 matches

by Master_X
09 Jan 2024, 10:22
Forum: Gaming Scripts (v1)
Topic: Default sound device switcher
Replies: 1
Views: 828

Default sound device switcher

Hi, I updated my super simple default sound device switch script to a GUI interface with config file. It uses a programm from nirsoft called soundvolumeview (but the command line version). The "problem" before this was the windows sound window had to pop up for a short moment minimizing any game. So...
by Master_X
07 Aug 2023, 09:39
Forum: Ask for Help (v1)
Topic: Copied AutoHotkeyU64.exe icon changes
Replies: 4
Views: 371

Re: Copied AutoHotkeyU64.exe icon changes

If I wasn't clear enough. Press Win+R and paste ie4uinit -show

This should fix this, at least it does for me with Windows 10.
by Master_X
07 Aug 2023, 09:28
Forum: Ask for Help (v1)
Topic: Need Help Binding Ctrl + Shift to Numpad2
Replies: 13
Views: 714

Re: Need Help Binding Ctrl + Shift to Numpad2

Code: Select all

Numpad2::^+
Does not work?!

And what you try to do?
by Master_X
07 Aug 2023, 04:56
Forum: Ask for Help (v1)
Topic: Temp AHK file does not get deleted and checks KeyState only once Topic is solved
Replies: 8
Views: 709

Re: Temp AHK file does not get deleted and checks KeyState only once Topic is solved

Then how about this #SingleInstance, Force Name_Of_The_Temporary_File := "Close CMD Window Entitled ''TEST TITLE'' When Pressing Of ''a'' Is Detected.ahk" FileDelete, %Name_Of_The_Temporary_File% Code_For_The_Temporary_File = ( #Persistent SetTitleMatchMode, 2 ~q:: Loop { if WinExist("TEST TITLE ahk...
by Master_X
06 Aug 2023, 18:59
Forum: Ask for Help (v1)
Topic: Can I suspend a script by running a specific command using Windows' Run command dialog box?
Replies: 4
Views: 277

Re: Can I suspend a script by running a specific command using Windows' Run command dialog box?

I was wrong. Parameters work without the .exe. But if you installed ahk from main site you get a compile(gui) option in your right click menu. Very handy. Here's what you kinda need. But it won't use the current script it will close the old one and start again with suspend on if you add -s. #SingleI...
by Master_X
06 Aug 2023, 18:47
Forum: Ask for Help (v1)
Topic: Temp AHK file does not get deleted and checks KeyState only once Topic is solved
Replies: 8
Views: 709

Re: Temp AHK file does not get deleted and checks KeyState only once Topic is solved

Does this work as you wish? #SingleInstance, Force Code_For_The_Temporary_File = ( #Persistent SetTitleMatchMode, 2 ~q:: Loop { if WinExist("TEST TITLE ahk_exe cmd.exe") WinClose else break } FileDelete, `%A_ScriptName`% ExitApp ) Name_Of_The_Temporary_File := "Close CMD Window Entitled ''TEST TITLE...
by Master_X
06 Aug 2023, 17:46
Forum: Ask for Help (v1)
Topic: Temp AHK file does not get deleted and checks KeyState only once Topic is solved
Replies: 8
Views: 709

Re: Temp AHK file does not get deleted and checks KeyState only once Topic is solved

For your pressing q closing all windows. Does this work? I did not test

Code: Select all

SetTitleMatchMode, 2

~q::
	Loop
	{	WinClose, TEST TITLE ahk_exe cmd.exe
		if not WinExist, TEST TITLE ahk_exe cmd.exe
		break
	}
	FileDelete, , %Name_Of_The_Temporary_File%
	ExitApp
by Master_X
06 Aug 2023, 17:23
Forum: Ask for Help (v1)
Topic: Can I suspend a script by running a specific command using Windows' Run command dialog box?
Replies: 4
Views: 277

Re: Can I suspend a script by running a specific command using Windows' Run command dialog box?

I don't see any command line parameters working if you use the script to start. It has at least to be an executable file. But maybe tell me a little more what you want to archieve Also I just looked for suspend in ahk documentation. You can use something like this to toggle suspend or has it to be t...
by Master_X
06 Aug 2023, 17:13
Forum: Ask for Help (v2)
Topic: Try catch errors Topic is solved
Replies: 1
Views: 267

Try catch errors Topic is solved

I read somewhere a block that gets executed does not continue after catching an error. Can confirm this :D I fixed my script already but seems a bit weird for me. I think there is another way to execute the block and not using 2 try and 2 catch. Or is there something I can add to completely ignore t...
by Master_X
06 Aug 2023, 05:21
Forum: Ask for Help (v1)
Topic: Unable to take activation away from LibreOffice window
Replies: 10
Views: 624

Re: Unable to take activation away from LibreOffice window

Basically you mean it's stuck opening the last Libre window you activated with mousewheel even though mouse is over another program? You can double click the ahk icon in taskbar to see the executed lines also you can use strg+v there or choose view-variables to see what they currently are and if som...
by Master_X
06 Aug 2023, 04:58
Forum: Ask for Help (v1)
Topic: Help with the script
Replies: 1
Views: 183

Re: Help with the script

You can use this to start and stop with one key. And for real even if you are noob, autohotkey has such good documentation for your random example go on https://ahkde.github.io/docs/v1/lib and type random in the search box, everything needed most of the time with examples on the bottom you find ther...
by Master_X
06 Aug 2023, 04:44
Forum: Ask for Help (v1)
Topic: PrintScreen
Replies: 3
Views: 320

Re: PrintScreen

eh idk but copy and paste this PrintScreen:: run, control.exe Return should work totally fine Edit: I copied your full script, created the same folders. For me also this works too. Edit2: Maybe use KeyHistory to view the pressed key inside ahk if you press print like this. You start press print and ...
by Master_X
06 Aug 2023, 04:32
Forum: Ask for Help (v1)
Topic: how to ignore the ghost key? Topic is solved
Replies: 8
Views: 595

Re: how to ignore the ghost key? Topic is solved

Tbh, I would buy another keyboard but thats me. disable e by holding w would be #If GetKeyState("w", "P") e::return #If Since it's a hardware thing, you cannot convert the input in any way. As far I understand the keyboard key w+d gives the computer the e input like if you press e. So you can only h...
by Master_X
06 Aug 2023, 04:22
Forum: Ask for Help (v2)
Topic: search file
Replies: 3
Views: 298

Re: search file

So I think iniread/write would be fine then. Also I would add another edit or FileSelectFolder prompt to the GUI to change the path. So for example: Edit: You have to change FileCopy, C:\*%searchfor%*.pdf, C:\%searchfor%.pdf to your desired path of course. startover: IniRead, path, %temp%\test, path...
by Master_X
05 Aug 2023, 16:41
Forum: Ask for Help (v1)
Topic: ImageSearch or PixelSearch dont work at second monitor
Replies: 7
Views: 440

Re: ImageSearch or PixelSearch dont work at second monitor

maybe try an exorbitant amount of pixels to search like 10000x10000 if this gives you the desired coordinates. But back to what you said. If you turn off scaling and everything else is the same your script works as you wish? So you used one screenshot of that 100% scale and in the other scenario ano...
by Master_X
05 Aug 2023, 16:21
Forum: Ask for Help (v1)
Topic: how to ignore the ghost key? Topic is solved
Replies: 8
Views: 595

Re: how to ignore the ghost key? Topic is solved

My first thought was also it's a hardware problem so what to do. If computer really recognizes the pressed E key you could remap E to be W+D pressed via autohotkey. Since I don't have any keyboards with these problems I cannot test anything. Only problem in any case... you cannot use your E key I ju...
by Master_X
05 Aug 2023, 16:10
Forum: Ask for Help (v2)
Topic: search file
Replies: 3
Views: 298

Re: search file

I can only answer for v1 if you want. So you want a gui to enter a text. A PDF file containing that text in the name should be the only result and it should get copied and renamed to the gui text input? (so no multiple files to look through). For the txt file this is also possible but I only used in...
by Master_X
05 Aug 2023, 15:55
Forum: Ask for Help (v1)
Topic: ImageSearch or PixelSearch dont work at second monitor
Replies: 7
Views: 440

Re: ImageSearch or PixelSearch dont work at second monitor

I just tried imagesearch with 150% scaling, absolutely no problem. a:: ImageSearch, AusgabeVarX, AusgabeVarY, 1, 1, 1920, 1080, hehe.png msgbox %AusgabeVarX% %AusgabeVarY% Since you talk about different screens. Create new images with the correct screen attached. I noticed imagesearch and pixelsearc...
by Master_X
05 Aug 2023, 15:44
Forum: Ask for Help (v1)
Topic: how to ignore the ghost key? Topic is solved
Replies: 8
Views: 595

Re: how to ignore the ghost key? Topic is solved

simplest idea comes to mind is

Code: Select all

e::
e as defined hotkey which is disabled as input key without any modifiers. Ever tried that?
by Master_X
05 Aug 2023, 04:57
Forum: Ask for Help (v2)
Topic: Simple question about WinClose Topic is solved
Replies: 3
Views: 291

Re: Simple question about WinClose Topic is solved

Okay this seems a v1 - v2 issue difference. I just fixed the script to be completely v2 and now it works fine WinClose "Gesponserte Sitzung ahk_class #32770 ahk_exe TeamViewer.exe" Edit: I don't really get it, just tried v1 again and also works now. But I tried exactly this line already. Whatever Wi...

Go to advanced search