Search found 85 matches

by fade2gray
10 Feb 2023, 12:55
Forum: Ask for Help (v1)
Topic: Simple change to Gui breaks functionality
Replies: 2
Views: 313

Simple change to Gui breaks functionality

This simple Gui just disables the checkboxes and changes their background colour when the button is clicked. After inserting a couple of tabs, the checkboxes still get disabled, but the background colour doesn't change. Can anyone tell me what's up? Simple Gui Gui, add, Text,, Some stuff here Gui, a...
by fade2gray
08 Dec 2022, 15:39
Forum: Ask for Help (v1)
Topic: Unable to output result from diskpart to text file.
Replies: 6
Views: 453

Re: Unable to output result from diskpart to text file.

I haven't to be honest, Mikey. What format would that take?
by fade2gray
08 Dec 2022, 15:01
Forum: Ask for Help (v1)
Topic: Unable to output result from diskpart to text file.
Replies: 6
Views: 453

Unable to output result from diskpart to text file.

Code: Select all

RunAs, %ComSpec% /c ""diskpart /s" "C:\path_to\folder name with spaces\commands.txt" > "C:\path_to\folder name with spaces\output.txt""
commands.txt simply contains

Code: Select all

list disk
exit
output.txt is created, but is just an empty file.

What am I doing wrong?
by fade2gray
02 Jun 2022, 13:56
Forum: Ask for Help (v1)
Topic: Fill marquee control to 100%?
Replies: 3
Views: 397

Fill marquee control to 100%?

Came up with the following after scraping the forums, but can't figure how to fill the bar. Is it possible? Gui, +AlwaysOnTop Gui, Add, Progress, HwndMrq -0x1 +0x8 Gui, Add, Button,, Do Stuff Gui, Show return ButtonDoStuff: DllCall("User32.dll\SendMessage", "Ptr", Mrq, "Int", 0x40A, "Ptr", 1, "Ptr",...
by fade2gray
02 Jun 2022, 13:46
Forum: Ask for Help (v1)
Topic: Command to drill down through Windows control panel?
Replies: 3
Views: 385

Re: Command to drill down through Windows control panel?

Late getting back to you on this Mikey. Thanks for your code, It works, but with a couple of caveats. The explorer panel must be set to 'Tiles' view. Can't have more than one physical adapter connected. Which Is why I was hoping for a command line option, giving either the adapter name/index as a pa...
by fade2gray
28 Apr 2022, 07:00
Forum: Ask for Help (v1)
Topic: Command to drill down through Windows control panel?
Replies: 3
Views: 385

Command to drill down through Windows control panel?

Hi, I'm hoping to find a command, or series of commands, that can get me here with a single MsgBox/Gui button click, without having to do all the clicking around in the control panel and intervening dialogues. IPDialogue.png All the necessary info to select the required network adapter can be found ...
by fade2gray
12 Apr 2022, 14:02
Forum: Ask for Help (v1)
Topic: How can I utilize these icons in a Gui? Topic is solved
Replies: 3
Views: 526

Re: How can I utilize these icons in a Gui? Topic is solved

@flyingDman Thanks. A bit after the fact, but I eventually found the relevant info here. 👍
by fade2gray
12 Apr 2022, 11:48
Forum: Ask for Help (v1)
Topic: How can I utilize these icons in a Gui? Topic is solved
Replies: 3
Views: 526

How can I utilize these icons in a Gui? Topic is solved

I adapted this example in the documentation to list the three icons I'd like to use, but can't figure how to use them as icons in a Gui's picture controls without first having to extract them from the dll file. Gui, Add, ListView, w42, Icons ImageListID := IL_Create(3) LV_SetImageList(ImageListID) I...
by fade2gray
18 Mar 2022, 09:15
Forum: Ask for Help (v1)
Topic: Hide command console when using RunWaitOne() example Topic is solved
Replies: 34
Views: 4295

Re: Hide command console when using RunWaitOne() example Topic is solved

It does, but thanks for the link - good for future reference.

Edit: @teadrinker My above solution actually caused me problems. Thank you for providing the link to SKAN's RunCMD.
by fade2gray
18 Mar 2022, 06:10
Forum: Ask for Help (v1)
Topic: Hide command console when using RunWaitOne() example Topic is solved
Replies: 34
Views: 4295

Re: Hide command console when using RunWaitOne() example Topic is solved

teadrinker Having to remind my self how to achieve this again, I stumbled on the following, courtesy Dieisson Silva dos Santos ... MsgBox % RunWaitOne("dir " A_ScriptDir) RunWaitOne(command) { DetectHiddenWindows On Run %ComSpec%,, Hide, pid WinWait ahk_pid %pid% DllCall("AttachConsole", "UInt", pi...
by fade2gray
19 Feb 2022, 09:55
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 38139

Re: new vscode extension allows advanced AHK V1/V2 debugging

You could try asking in the extension's GitHub repository.
by fade2gray
13 Oct 2021, 11:29
Forum: Ask for Help (v1)
Topic: Find state of radio buttons in a non AHK GUI Topic is solved
Replies: 2
Views: 348

Re: Find state of radio buttons in a non AHK GUI Topic is solved

Thanks Mikey.

Lack of practice and failing memory - I forgot about the information that can be gleaned from ControlGet. :oops:
by fade2gray
13 Oct 2021, 08:36
Forum: Ask for Help (v1)
Topic: Find state of radio buttons in a non AHK GUI Topic is solved
Replies: 2
Views: 348

Find state of radio buttons in a non AHK GUI Topic is solved

Is it possible to find the state of radio buttons and check boxes in Notepad++ Find GUI, for example?

Notepad++RadioButtons.PNG
Notepad++RadioButtons.PNG (12.83 KiB) Viewed 348 times
Windows Spy doesn't reveal anything, but is it possible to do using a dll call or some such?

Thanks for any pointers.
by fade2gray
13 Apr 2021, 06:42
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 38139

Re: new vscode extension allows advanced AHK V1/V2 debugging

boiler wrote:
12 Apr 2021, 12:17
You can create multiple indents simply by highlighting multiple lines and pressing the Tab key.
Well, I never... 👍
by fade2gray
13 Apr 2021, 06:37
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 38139

Re: new vscode extension allows advanced AHK V1/V2 debugging

DaveT1 The regular expressions \\s*\\;\\s*Region\\b and \\s*\\;\\s*endRegion\\b are, for all intents and purposes, 'identical' to \\s*\\;\\s*sReg\\b and \\s*\\;\\s*eReg\\b , the only difference being the 'names' of the tags have been changed. if you to change them to... "folding": { "markers": { "s...
by fade2gray
12 Apr 2021, 11:29
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 38139

Re: new vscode extension allows advanced AHK V1/V2 debugging

This would be the correct method for a folding region (without the brackets if not required).

FoldingRegion.png
FoldingRegion.png (2.85 KiB) Viewed 9056 times

...but if inserting multiple indents is preferred, using Shift+Ctrl+Alt with up/down arrow keys to create multiple cursors (column mode) might help.
by fade2gray
11 Apr 2021, 17:46
Forum: Visual Studio Code
Topic: new vscode extension allows advanced AHK V1/V2 debugging
Replies: 70
Views: 38139

Re: new vscode extension allows advanced AHK V1/V2 debugging

doubledave22 & boiler Don't know if this is what you're looking for - the extension vscode-autohotkey-plus-plus provides the ability to create folding blocks of code and collapsing block comments without the need for indentation. ;region These tags will create a folding region of code that doesn't ...
by fade2gray
03 Feb 2021, 08:52
Forum: Suggestions on Documentation Improvements
Topic: v2 Documentation: StrReplace example #2 is missing CaseSense parameter Topic is solved
Replies: 1
Views: 814

v2 Documentation: StrReplace example #2 is missing CaseSense parameter Topic is solved

NewStr := StrReplace(Haystack, SearchText [, ReplaceText, CaseSense, OutputVarCount, Limit := -1])

MyString := StrReplace(MyString, "`r`n`r`n", "`r`n", ReplaceCount)
by fade2gray
31 Jan 2021, 12:25
Forum: Ask for Help (v2)
Topic: How to implement Gui.Destroy()? Topic is solved
Replies: 3
Views: 650

Re: How to implement Gui.Destroy()? Topic is solved

@kczx3 Thanks, I haven't really got a great understanding of objects, methods and callbacks etc. in v1 yet, but I have a working v1 gui that I'm struggling to convert to v2, which is a requirement for a personal project I'm attempting.

Go to advanced search