Search found 127 matches

by Lem2001
09 Mar 2024, 06:58
Forum: Ask for Help (v1)
Topic: Can't unhide a hidden window
Replies: 1
Views: 91

Can't unhide a hidden window

I'm trying to run an application hidden, send it some keystrokes while hidden, and then subsequently unhide it. In the Help file it says to use a variable to store the newly launched program's unique Process ID. When I tried doing this the program did launch hidden (I can see it in Task Manager) but...
by Lem2001
22 Nov 2023, 00:43
Forum: Ask for Help (v1)
Topic: Wrapping a variable's output in quotes Topic is solved
Replies: 3
Views: 317

Re: Wrapping a variable's output in quotes Topic is solved

You'll kick yourself when you see this way ... The kicking of self is underway even as we speak!     :headwall: I could have sworn that this was the very first thing I tried (it's the most intuitive and it's how I naturally assumed that it would work). However, for some reason the code that I used ...
by Lem2001
21 Nov 2023, 22:33
Forum: Ask for Help (v1)
Topic: Wrapping a variable's output in quotes Topic is solved
Replies: 3
Views: 317

Wrapping a variable's output in quotes Topic is solved

I have the following code: Run, %pPath% -profile %profilePath% -new-tab "about:config" I need to wrap the two variables (i.e. pPath and profilePath ) in quotes without breaking the variables and turning them into literal strings. How can I do this? I've tried countless different ways but I couldn't ...
by Lem2001
23 Jul 2023, 01:57
Forum: Ask for Help (v1)
Topic: Grayed-out menu item
Replies: 2
Views: 222

Re: Grayed-out menu item

ControlGet does not work for individual menu entries (or at least I don't know how to use it for that). In fact Window Spy doesn't even show a control for a whole menu or context menu (never mind an individual menu entry) so there is no control id to check in the first place. An alternative method s...
by Lem2001
21 Jul 2023, 22:53
Forum: Ask for Help (v1)
Topic: Grayed-out menu item
Replies: 2
Views: 222

Grayed-out menu item

Is it possible to determine whether a menu item is grayed-out or not and then act accordingly? (i.e. perform Action 1 if the specified menu entry is not grayed out, or Action 2 if the specified menu item is grayed-out / disabled). By the way, I'm talking about standard application menus and context ...
by Lem2001
17 Jul 2023, 16:25
Forum: Ask for Help (v1)
Topic: Resetting keys used in Custom Combinations Topic is solved
Replies: 3
Views: 324

Re: Resetting keys used in Custom Combinations Topic is solved

Thank you so much Lexicos for this highly informative and detailed response. It has helped clear up several misunderstandings that I had about hotkey combinations. Custom combinations ignore other modifiers, so the former will activate even if you press Ctrl+Shift+LWin, whereas the latter will only ...
by Lem2001
06 Jul 2023, 11:11
Forum: Ask for Help (v1)
Topic: Resetting keys used in Custom Combinations Topic is solved
Replies: 3
Views: 324

Resetting keys used in Custom Combinations Topic is solved

I like to use hotkey combinations that make the most sense to me and are the most memorable. This sometimes results in me using unusual combinations for hotkeys. In the past when I have used standard keys as modifiers (i.e. keys separated by an ampersand) I encountered various unwanted side effects ...
by Lem2001
22 Dec 2022, 18:09
Forum: Ask for Help (v1)
Topic: Functions and Global Variables
Replies: 8
Views: 1471

Re: Functions and Global Variables

Thanks for clarifying the distinction between ByValue and ByRef. So given that I now have 2 separate functions, and the second function needs to be able to read the value of TimestampedText (and a few other variables) from within the first function (from whichever code block happened to 'fill' the v...
by Lem2001
22 Dec 2022, 16:43
Forum: Ask for Help (v1)
Topic: Functions and Global Variables
Replies: 8
Views: 1471

Re: Functions and Global Variables

Oh, wow. Thank you. I have completely misunderstood what Global _TimestampedText := TimestampedText means and how it works. I have several braced code blocks that are triggered under different conditions. They all end with one of variables being TimestampedText . So when I do a command like ControlS...
by Lem2001
22 Dec 2022, 15:16
Forum: Ask for Help (v1)
Topic: Functions and Global Variables
Replies: 8
Views: 1471

Re: Functions and Global Variables

Thank you so much Chunjee and andymbody for your detailed replies. They were both incredibly helpful, especially seeing as you had so little concrete information to work with. I have now managed to get the code fully working! A couple of different approaches worked: One was making the 2 non-working ...
by Lem2001
21 Dec 2022, 16:45
Forum: Ask for Help (v1)
Topic: Functions and Global Variables
Replies: 8
Views: 1471

Functions and Global Variables

I have a sizeable block of code that I need to use in a few different places. Ordinarily I'd just copy and paste the code into the various sections where it's needed (because it's simpler and I know it will just work). However, I thought I'd try using a function for the first time, and now I have a ...
by Lem2001
21 Dec 2022, 11:45
Forum: Ask for Help (v1)
Topic: Prevent shift key in hotkey affecting shift commands in script Topic is solved
Replies: 2
Views: 362

Re: Prevent shift key in hotkey affecting shift commands in script Topic is solved

Wow, this is so simple and effective! I can't believe that I overlooked this method.

Thank you @ntepa
by Lem2001
21 Dec 2022, 04:23
Forum: Ask for Help (v1)
Topic: Prevent shift key in hotkey affecting shift commands in script Topic is solved
Replies: 2
Views: 362

Prevent shift key in hotkey affecting shift commands in script Topic is solved

I am trying to use a hotkey (^+Z) to run some code that involves selecting text. ; Test Example SendInput, {Shift down} SendInput, {Right 5} SendInput, {Shift up} However, this doesn't work because the shift key in the hotkey interferes with code that selects the text. I tried using $^+Z (which is s...
by Lem2001
16 Dec 2022, 14:08
Forum: Ask for Help (v1)
Topic: Subtracting one string from another Topic is solved
Replies: 6
Views: 419

Re: Subtracting one string from another Topic is solved

Thanks to everyone who replied.

I now have it working,
by Lem2001
16 Dec 2022, 12:25
Forum: Ask for Help (v1)
Topic: Subtracting one string from another Topic is solved
Replies: 6
Views: 419

Subtracting one string from another Topic is solved

I can't think of a better way to word the title but .... If I have a variable String1 containing the text: The quick brown fox jumped over the lazy dog and another variable String2 containing any contiguous segment of String1 e.g. : fox jumped over the How do I remove String2 from String1 so that I ...
by Lem2001
13 Dec 2022, 09:09
Forum: Ask for Help (v1)
Topic: Restoring a previously saved window position Topic is solved
Replies: 3
Views: 245

Re: Restoring a previously saved window position Topic is solved

Yes, I know that. As I stated in my original post, that part is already working fine. The issue that I'm having is using those same dimensions (that were collected by hotkey1) in a different hotkey (hotkey2) which can then toggle back and forth between the two states by repeated pressing of hotkey2....
by Lem2001
13 Dec 2022, 07:26
Forum: Ask for Help (v1)
Topic: Restoring a previously saved window position Topic is solved
Replies: 3
Views: 245

Restoring a previously saved window position Topic is solved

I'm using WinGetPos to obtain the coordinates and dimensions of the current window for various window transformations. Those all work fine, but I'd like to add the option for a separate hotkey that can undo the last window transform by returning the window to its previous state (as determined by Win...
by Lem2001
08 Mar 2022, 06:50
Forum: Ask for Help (v1)
Topic: Apply action only to a certain type of ClassNN control Topic is solved
Replies: 9
Views: 1356

Re: Apply action only to a certain type of ClassNN control Topic is solved

lmstearn wrote:
19 Jan 2022, 22:07
Here's info on the handle or HWND, along with a thread.
Dr. Google also helped out by retrieving @LinearSpoon's contribution to this thread. :)
Thank you @lmstearn. I've now managed to get it working exactly as I wanted.
by Lem2001
19 Jan 2022, 21:45
Forum: Ask for Help (v1)
Topic: Apply action only to a certain type of ClassNN control Topic is solved
Replies: 9
Views: 1356

Re: Apply action only to a certain type of ClassNN control Topic is solved

once you have the handle of the control, use WinGet ... Thanks very much for your reply. I know how to use WinSpy, but I don't understand what you mean by the "handle" of "the control". Spy only shows the class name and there are masses of these combo boxes in this app (and their classNN names cons...
by Lem2001
17 Jan 2022, 18:50
Forum: Ask for Help (v1)
Topic: Apply action only to a certain type of ClassNN control Topic is solved
Replies: 9
Views: 1356

Apply action only to a certain type of ClassNN control Topic is solved

I want to run some code (within a specific application) whenever a ComboBox control has focus, and some different code if a multi-line text edit box has focus. For any other type of control other than these two, nothing should be done. I've looked at GUIControlGet but it only seems to retrieve thing...

Go to advanced search