Search found 16895 matches
- Today, 09:59
- Forum: Ask for Help (v1)
- Topic: global open new tab in chrome
- Replies: 9
- Views: 220
Re: global open new tab in chrome
You can’t put the lines where it assigns the variables app and WinTitle below hotkeys when you combine scripts because they will never execute.
- Today, 05:00
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 9
- Views: 253
Re: Auto unmute a specific program upon launching this program
From what I see, that script doesn’t mute a specific program, but it turns the master volume for your computer to zero, muting everything. It may be triggered by a certain program’s window losing focus, but at first glance, it looks like it’s not doing anything to mute only that program. Is that rig...
- Today, 04:51
- Forum: Ask for Help (v2)
- Topic: Trying to do a image search with V2 scripts - keep getting error
- Replies: 5
- Views: 164
Re: Trying to do a image search with V2 scripts - keep getting error
Definitely use png instead of jpg because jpg is lossy and will not match the image exactly. It could be that the icon is rendered differently every time it is displayed. Or if you have a Windows scaling factor of other than 100%, then that definitely would cause a problem. How did you capture your ...
- Today, 03:47
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 9
- Views: 253
Re: Auto unmute a specific program upon launching this program
No, you’re not understanding what I’m saying. I’m not saying the script would create a shortcut. I’m asking you to describe how you manually unmute the program(s) so that the script can mimic those actions, such as sending whatever keyboard shortcut that program may have built in for muting and unmu...
- Today, 02:45
- Forum: SciTE4AutoHotkey
- Topic: Do regular expressions work?
- Replies: 1
- Views: 145
Re: Do regular expressions work?
This will remove 'LocalizedType:' and everything after it on each line in the file. It will not — mainly because of your incorrect use of the wildcard. Does it have some option that you set where the ^ and $ anchor tokens are relative to individual lines? If not, then it would only match once in th...
- Today, 02:26
- Forum: Ask for Help (v2)
- Topic: Can you re-assign multimedia keys?
- Replies: 3
- Views: 161
Re: Can you re-assign multimedia keys?
Well, as I suggested, it may be to your advantage to use their software to have the keys send a key combination you wouldn’t press on your own so then you can be confident that your AHK script is receiving key presses from that keyboard. I do that with foot pedals so they send something like Shift +...
- Today, 02:21
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 9
- Views: 253
Re: Auto unmute a specific program upon launching this program
It’s very specific to the program, and you haven’t provided any details. How do you manually unmute it? Is there a keyboard shortcut?
- Today, 02:17
- Forum: Ask for Help (v2)
- Topic: Trying to do a image search with V2 scripts - keep getting error
- Replies: 5
- Views: 164
Re: Trying to do a image search with V2 scripts - keep getting error
If your search rectangle is based on a particular window, then yes. If they’re relative to the screen, then the window doesn’t need focus, but it must be visible. And you would need to set the CoordMode:
Code: Select all
CoordMode 'Pixel', 'Screen'
- Yesterday, 21:52
- Forum: Gaming Help (v1)
- Topic: autoclicker for joystick key
- Replies: 1
- Views: 117
Re: autoclicker for joystick key
AHK itself cannot send simulated controller button presses, joystick movements, trigger pulls, etc. You would need to use an advanced method of creating a virtual controller, which you can learn about here.
- Yesterday, 21:37
- Forum: Ask for Help (v1)
- Topic: Cannot pickup data from a file
- Replies: 2
- Views: 168
Re: Cannot pickup data from a file
Since you're acting on Text as a string, you would not initialize it as an object with Text := [] . You could just assign it an empty string: Text := "" Then, you use the expression assignment operator, but then you put % symbols around variables as if it were legacy syntax, which is not correct her...
- Yesterday, 16:05
- Forum: Ask for Help (v2)
- Topic: Script to add plugin to FF
- Replies: 1
- Views: 90
Re: Script to add plugin to FF
This script should work. Good to be confident, I guess. ;) Several things that I spot: Don't send a capital letter for ^t because it can cause it to hold Shift as well. Don't put a space between a function name and the open parenthesis that follows it when calling a function. This is most likely th...
- Yesterday, 13:28
- Forum: Ask for Help (v2)
- Topic: Please help me make a script that will flash my screen while microphone is on
- Replies: 4
- Views: 218
Re: Please help me make a script that will flash my screen while microphone is on
You should be able to use SetTimer and PixelGetColor to display and flash a GUI at the bottom of your screen when that icon turns the color indicating the microphone is on.
- Yesterday, 07:15
- Forum: Ask for Help (v2)
- Topic: Trigger after 5 seconds, error same name as a globa Topic is solved
- Replies: 3
- Views: 143
Re: Trigger after 5 seconds, error same name as a globa Topic is solved
Since you assign a value to hs in the hotkey function, it can’t be assumed that it’s meant to be the global variable of the same name, so declare it as global by adding global hs as the first line inside your hotkey function.
Explained: Global Variables
Explained: Global Variables
- Yesterday, 04:12
- Forum: Ask for Help (v2)
- Topic: Trigger after 5 seconds, error same name as a globa Topic is solved
- Replies: 3
- Views: 143
Re: Trigger after 5 seconds, error same name as a globa Topic is solved
That script does not have any errors, including the one you mentioned because there are no local variables (because it is all global code and no functions). Post a script that actually demonstrates the scenario where the error is encountered, and show the exact details of the error message.
- Yesterday, 04:06
- Forum: Ask for Help (v2)
- Topic: Help me change this code into a v2 one
- Replies: 2
- Views: 204
Re: Help me change this code into a v2 one
I would just suggest as a matter of good practice, don’t use global variables where not necessary, especially where a variable is only used in one function anyway. #Requires AutoHotkey >=v2.0 #SingleInstance Force MaxHotkeysPerInterval := 280 MaxThreadsPerHotkey := 20 MaxThreads := 20 SetKeyDelay -1...
- 02 May 2024, 18:02
- Forum: Ask for Help (v2)
- Topic: monitor/detect certain files in a folder and run a batch script if files found Topic is solved
- Replies: 1
- Views: 182
- 02 May 2024, 13:11
- Forum: Pulovers Macro Creator
- Topic: MsgBox move
- Replies: 8
- Views: 1762
Re: MsgBox move
Its in an area for v2 code, but I believe it is written in v1 If you're referring to PMC in general, then this thread isn't necessarily the place to discuss this, but yes, it is written in v1 and produces v1 code. But it was one of the "editors" that was given a place under the Editors section of t...
- 02 May 2024, 09:22
- Forum: Ask for Help (v2)
- Topic: Explorer doesn't open specified folder
- Replies: 1
- Views: 105
Re: Explorer doesn't open specified folder
I'm guessing that your path isn't really simply C:\folder , and if it has spaces in it, then you need to include quotes around the path as part of the string as described in the Run documentation. What you did does not include the quotes as part of the string but rather are just identifying what's i...
- 02 May 2024, 06:32
- Forum: Ask for Help (v1)
- Topic: save and close Excel2010
- Replies: 17
- Views: 1000
Re: save and close Excel2010
So semicolon in Autohotkey is the equivalent of REM in batch files (....?) Is it not clear from the documentation? and that I tried the "!{F4} (Alt+F4)" code and it did not achieve SAVING. I said it’s the shortcut for closing the application, not for saving. Not sure why you would expect it to save...
- 02 May 2024, 04:43
- Forum: Ask for Help (v2)
- Topic: Get date/time value from TradingView
- Replies: 3
- Views: 300
Re: Get date/time value from TradingView
You could try UIA.