Search found 27104 matches

by mikeyww
Yesterday, 15:51
Forum: Ask for Help (v1)
Topic: How to check if Gui is empty before showing it?
Replies: 2
Views: 202

Re: How to check if Gui is empty before showing it?

Hello,

This is simple because the script controls the GUI. Therefore, your script always knows exactly what controls have been added. You can track that with a variable, use GuiControlGet, etc.
by mikeyww
Yesterday, 15:22
Forum: Ask for Help (v1)
Topic: Mac Parallel & Win11 Issues
Replies: 8
Views: 307

Re: Mac Parallel & Win11 Issues

Sounds good, boiler! :)
by mikeyww
Yesterday, 14:57
Forum: Ask for Help (v1)
Topic: Mac Parallel & Win11 Issues
Replies: 8
Views: 307

Re: Mac Parallel & Win11 Issues

Not parallel to anything, but running AHK on Win 11. If you do not see a MsgBox, then perhaps you have other scripts running or the key is already being used or mapped to something else. V2 is not a solution to this issue, so I would not waste time on that with respect to this issue, at least for no...
by mikeyww
Yesterday, 10:57
Forum: Ask for Help (v1)
Topic: Mac Parallel & Win11 Issues
Replies: 8
Views: 307

Re: Mac Parallel & Win11 Issues

Welcome to this AutoHotkey forum!

I had no trouble with the following.

Code: Select all

#Requires AutoHotkey v1.1.33.11
CapsLock::CapsLock
CapsLock & 2::MsgBox
If you are new to AHK, I recommend using its current version, which is v2, instead of this older deprecated version that is no longer developed.
by mikeyww
Yesterday, 10:53
Forum: Ask for Help (v2)
Topic: Only a number (RegExMatch?)
Replies: 9
Views: 264

Re: Only a number (RegExMatch?)

True if Value is a positive integer, an empty string, or a string which contains only the characters 0 through 9. Other characters such as the following are not allowed: spaces, tabs, plus signs, minus signs, decimal points, hexadecimal digits, and the 0x prefix.
by mikeyww
Yesterday, 08:52
Forum: Ask for Help (v2)
Topic: Only a number (RegExMatch?)
Replies: 9
Views: 264

Re: Only a number (RegExMatch?)

Code: Select all

#Requires AutoHotkey v2.0
x := '123'	; Correct
digitsOnly := '^\d+$'
x := 'A12'	; Wrong info
x := ''	; Wrong info
MsgBox RegExMatch(x, digitsOnly)
by mikeyww
Yesterday, 06:02
Forum: Ask for Help (v2)
Topic: tray icons usage Topic is solved
Replies: 9
Views: 319

Re: tray icons usage Topic is solved

Hello, These seem to be questions about how Windows uses icons, rather than anything to do with AHK. I'm not an icon expert but can offer the following comments. Icon files use a specialized format that may contain not just one image but a set of related images of various sizes, integrated into a si...
by mikeyww
Yesterday, 05:52
Forum: Ask for Help (v1)
Topic: Help ahk search color and generate parametre.ini
Replies: 5
Views: 276

Re: Help ahk search color and generate parametre.ini

Welcome to this AutoHotkey forum! Below are a few tips to get you started with your debugging process. The length and complexity of your script might slow your troubleshooting, so I would think about shortening and simplifying, and testing specific parts of the script systematically. To avoid hiding...
by mikeyww
08 May 2024, 06:24
Forum: Ask for Help (v2)
Topic: How to send website URL to clipboard besides showing a Msgbox
Replies: 1
Views: 144

Re: How to send website URL to clipboard besides showing a Msgbox

Hello,

To refer to a variable, you would use url instead of "url".

Explained: Storing values in variables
by mikeyww
07 May 2024, 15:24
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

Sorry I'm not more directly helpful here, but I cannot directly test this and do not use PowerShell a lot. If you uncomment the MsgBox, however, I think you will see that the quotation marks surrounding HID are misplaced-- I think. I cannot tell you the right command line because I do not know what ...
by mikeyww
07 May 2024, 14:12
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

You might want to adapt one of the existing AHK scripts that runs a PowerShell script.

viewtopic.php?p=461481#p461481

viewtopic.php?f=76&t=82830
by mikeyww
07 May 2024, 14:09
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

It appears to me that you have not quoted your device properly. What is your exact command line that works in a Windows batch file? It is surely not this one, which you would have seen with the MsgBox. "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "PNPUTIL /disable-device /deviceid "my...
by mikeyww
07 May 2024, 13:54
Forum: Ask for Help (v2)
Topic: Remapping Asus laptop Fn keys
Replies: 9
Views: 535

Re: Remapping Asus laptop Fn keys

A simple approach is stated in my first post: you could write a script that detects the opening of MyASUS. It could then close the window and do something different.
by mikeyww
07 May 2024, 13:43
Forum: Ask for Help (v2)
Topic: Remapping Asus laptop Fn keys
Replies: 9
Views: 535

Re: Remapping Asus laptop Fn keys

As I mentioned, you could try replacing the program. It is AsusMyASUS.exe in your AppsFolder, but my advice would be to use a different hotkey instead of attempting to do this.

You might want to read the cited posts as a way to learn more about the answer to your question.
by mikeyww
07 May 2024, 13:31
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

You can experiment and use the approach that works. With your original attempt, I would put the full path to your program in double quotation marks. You will see an example of that in the documentation that I have cited. Any variables defined within your script would be used as unquoted expressions....
by mikeyww
07 May 2024, 13:09
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

I think you will need to try it. You have the right idea. A general point of guidance would be like this. Take a command line that would work in Windows. Put single quotation marks around it. Insert *RunAs inside the first quotation mark. Insert Run before the entire quoted string. You may need to f...
by mikeyww
07 May 2024, 12:55
Forum: Ask for Help (v2)
Topic: run command line as admin
Replies: 15
Views: 831

Re: run command line as admin

As I mentioned, AHK can run an individual command line as admin. Instead of specifying the script as the target of your "Run *RunAs" function call, you can specify any other command line.

Go to advanced search