Search found 78 matches
- 04 Apr 2024, 06:27
- Forum: Ask for Help (v2)
- Topic: Variable scope problem (I think) calling function twice with different parameters
- Replies: 3
- Views: 194
Re: Variable scope problem (I think) calling function twice with different parameters
You see, this is a lesson for me: it's important to pare down the code into a working example that shows the bug. I had just simplified the code without actually creating a clean file that could show the bug. Now that niCode pointed out that the code they was seeing was actually working, I did just ...
- 04 Apr 2024, 06:02
- Forum: Ask for Help (v2)
- Topic: Variable scope problem (I think) calling function twice with different parameters
- Replies: 3
- Views: 194
Re: Variable scope problem (I think) calling function twice with different parameters
I'm not having any issues with your example. Unless I'm misunderstanding what is supposed to happen. I have 4 messages with the blue background and 2 with the black background. Consistently. Hmmm. I simplified the example because the actual code is much longer and more convoluted. I'll try to get i...
- 03 Apr 2024, 19:10
- Forum: Ask for Help (v2)
- Topic: Variable scope problem (I think) calling function twice with different parameters
- Replies: 3
- Views: 194
Variable scope problem (I think) calling function twice with different parameters
I wrote a function some time ago to have a way to display brief, unobtrusive, updatable messages on screen. Then I extended it to be able to display more than one message using different settings for each. That's when my woes started, because that last thing is not working as it should: one set of p...
- 07 Mar 2024, 07:19
- Forum: Ask for Help (v2)
- Topic: Is there a good HTML parser for v2?
- Replies: 2
- Views: 279
Re: Is there a good HTML parser for v2?
Thank you!william_ahk wrote: ↑06 Mar 2024, 07:22Not good, but does the job. It uses mshtml.dll so the HTML has to be parsable by IE.
I was hoping for something more straightforward; I guess I'll have to brush up on COM/the DOM so that I can use this.
- 06 Mar 2024, 05:50
- Forum: Ask for Help (v2)
- Topic: Script for automatically insert text to mp3tag
- Replies: 1
- Views: 122
Re: Script for automatically insert text to mp3tag
It is possible.
Depending on your programming experience, it would be very useful for this case to use the UIA library by Descolada. It would make your script more reliable and fast.
But even without UIA, you can do it.
Use ClipWait for monitoring the clipboard.
Depending on your programming experience, it would be very useful for this case to use the UIA library by Descolada. It would make your script more reliable and fast.
But even without UIA, you can do it.
Use ClipWait for monitoring the clipboard.
- 05 Mar 2024, 17:30
- Forum: Ask for Help (v2)
- Topic: Is there a good HTML parser for v2?
- Replies: 2
- Views: 279
Is there a good HTML parser for v2?
I've been googling and searching these forums and I'm confused as to whether a nice solution exists or not. I've found many posts about particular cases and improvised solutions, but not any general parser that I can use out of the box. I'm not looking to automate my browser (I got that part more or...
- 06 Feb 2024, 10:08
- Forum: Ask for Help (v2)
- Topic: How can I validate string length in a Gui before submitting?
- Replies: 4
- Views: 262
Re: How can I validate string length in a Gui before submitting?
I meant the events for the edit controls. My bad. ツ
- 06 Feb 2024, 06:34
- Forum: Ask for Help (v2)
- Topic: How can I validate string length in a Gui before submitting?
- Replies: 4
- Views: 262
Re: How can I validate string length in a Gui before submitting?
Excellent, thank you!
I hadn't even considered the OnEvent routines. In fact I never used them before.
I hadn't even considered the OnEvent routines. In fact I never used them before.
- 06 Feb 2024, 06:19
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
Got it, thank you! UIA.ElementFromHandle("A") solved the problem.
My match mode is RegEx and I see the title includes a question mark. Hmmm.
My match mode is RegEx and I see the title includes a question mark. Hmmm.
- 06 Feb 2024, 06:04
- Forum: Ask for Help (v2)
- Topic: How can I validate string length in a Gui before submitting?
- Replies: 4
- Views: 262
How can I validate string length in a Gui before submitting?
I'd like to ask the user for a string in a text or edit control (both, in fact) and not let him/her submit the Gui until the string length falls between the acceptable minimum and maximum values. Edit controls have a parameter to set the upper limit for the string length, but I don't see a way to fo...
- 06 Feb 2024, 05:50
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
Descolada do you know why several pages in a website, like this one , can't be found by UIA? I get this message: Error: No matching window found ---- E:\pgm\AHK\func_v2.ahk 500: } 503: { ▶ 504: Return UIA.ElementFromHandle(WinGetTitle("A")) 505: } ---- E:\pgm\AHK\Lib\Misc.ahk 030: Range The current...
- 01 Oct 2023, 16:30
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
@Descolada, I think I misunderstood you. ControlClick()ing the tree does focus the tree. I thought it would focus the article list.
With your code, I can send a tab key so that the article list becomes focused.
Thank you so much! You're the best. ツ
With your code, I can send a tab key so that the article list becomes focused.
Thank you so much! You're the best. ツ
- 30 Sep 2023, 11:31
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
Sadly, it doesn't work in my machine. ¯\_(ツ)_/¯
I'll keep trying options. I installed Acc (also by you!) but the same thing seems to happen.
I'll keep trying options. I installed Acc (also by you!) but the same thing seems to happen.
- 29 Sep 2023, 14:22
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
Hi, sorry for the double post. I have implemented an ugly workaround for controlling RSS Guard, an awesome RSS reader for Windows. In trying to come up with a way to focus on the article list, I found that there seems to be no method that lets me do that. SetFocus() gives an error: Error: (0x8004020...
- 27 Sep 2023, 08:24
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
Thank you!
- 27 Sep 2023, 06:29
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59205
Re: UIA v2
I can't make a piece of example code from the tutorial work. The code is: gn := wap.FindElement({Type:"Button", or:[Name:"Something", Name:"Else"]}) (wap is a UIA object) Lifted from https://github.com/Descolada/UIA-v2/wiki/05.-Conditions It gives me the following error: Error: Missing "]" before ":"
- 10 Aug 2023, 06:56
- Forum: Scripts and Functions (v2)
- Topic: [V2] [Function] Select screen region with mouse
- Replies: 12
- Views: 3315
Re: [V2] [Function] Select screen region with mouse
Pressing Escape while the message box is showing gives me an error (This value of type "String" has no property named "X") but still disables mouse clicks systemwide.
- 30 Jun 2023, 17:10
- Forum: Scripts and Functions (v2)
- Topic: Clip() - Send and Retrieve Text using the Clipboard
- Replies: 4
- Views: 1765
Re: Clip() - Send and Retrieve Text using the Clipboard
Thank you so much! I am a heavy user of this function so I just had to adapt it when I switched to v2. I'm now copying your "official" version. ツ
- 20 Jun 2023, 17:29
- Forum: Scripts and Functions (v2)
- Topic: Turn Folder-Structure into Menu-Structure for File-Selection
- Replies: 2
- Views: 1163
Re: Turn Folder-Structure into Menu-Structure for File-Selection
This will be useful to me. I had searched for good functions for doing this in v1, ended up adapting one and using it extensively. Now I'm trying to port everything I can to v2 so I'll take a look at your function. Thanks!
- 20 Jun 2023, 17:23
- Forum: Scripts and Functions (v1)
- Topic: Clip() - Send and Retrieve Text using the Clipboard
- Replies: 29
- Views: 23708
Re: Clip() - Send and Retrieve Text using the Clipboard
BTW @berban, if you could look at it and ensure it's all correct, it would be helpful for those who made the jump to v2!