Search found 91 matches

by elbitjusticiero
29 Sep 2024, 08:04
Forum: Scripts and Functions (v1)
Topic: Radial menu scripts
Replies: 365
Views: 208323

Re: Radial menu scripts

It would be wonderful if this could be ported to AHK v2.
by elbitjusticiero
25 Sep 2024, 05:33
Forum: Ask for Help (v2)
Topic: Problem with displaying functions in the MsgBox window Topic is solved
Replies: 6
Views: 242

Re: Problem with displaying functions in the MsgBox window Topic is solved

Code: Select all

hWnd ?    explorerHwnd := WinExist(winTitle ' ahk_id' hwnd)
        : ((!explorerHwnd := WinActive(winTitle)) && explorerHwnd := WinExist(winTitle))
I'm confused by this section of code. What condition are you trying to test, and what do you want to assign to?
by elbitjusticiero
24 Aug 2024, 14:05
Forum: Ask for Help (v2)
Topic: Different hotkeys for different keyboards Topic is solved
Replies: 7
Views: 417

Re: Different hotkeys for different keyboards Topic is solved

Yes, when I say "error prone" I mean it would be easier for me to make mistakes. Just a minute ago I discovered that when writing the double condition in my code, I missed a backslash in one of the window names (I'm using RegEx mode for SetTitleMatchMode) and that made the hotkey not work in my lapt...
by elbitjusticiero
23 Aug 2024, 14:54
Forum: Ask for Help (v2)
Topic: Different hotkeys for different keyboards Topic is solved
Replies: 7
Views: 417

Re: Different hotkeys for different keyboards Topic is solved

Thank you! I had thought of that way of doing things, but I expected there would be some method that was less error prone. I have several hotkeys for some windows and I will have to add each one separately inside each #HotIf. I thought I could insert some conditional inside the main #HotIf so that I...
by elbitjusticiero
23 Aug 2024, 11:45
Forum: Ask for Help (v2)
Topic: Different hotkeys for different keyboards Topic is solved
Replies: 7
Views: 417

Re: Different hotkeys for different keyboards Topic is solved

Thank you, Mike! I am at work right now and I can't test your code, but wouldn't that mean that the gathernPNcontent() function would fire up even if the "blablabla" window is not active? What I want to do is this: whenever the "blablabla" window is active, the function gatherPNcontent() fires up wh...
by elbitjusticiero
23 Aug 2024, 07:58
Forum: Ask for Help (v2)
Topic: Different hotkeys for different keyboards Topic is solved
Replies: 7
Views: 417

Different hotkeys for different keyboards Topic is solved

I'm trying to adapt some code I have to work in two different computers, and one of them is a laptop with a different key arrangement, so I'd like to have the same functions assigned to different keys on each computer. I have stored the keyboard name in a global variable on each system, so that's th...
by elbitjusticiero
20 Aug 2024, 18:26
Forum: Ask for Help (v2)
Topic: How to draw lines around the edges of the currently active window to highlight it?
Replies: 32
Views: 2014

Re: How to draw lines around the edges of the currently active window to highlight it?

Maybe this can help?

I haven't checked, maybe it's the same thing you're working with, I just saw it the other day and faved it to return to it later.
by elbitjusticiero
18 Aug 2024, 06:57
Forum: Ask for Help (v2)
Topic: Is it possible to have AHK v1 and v2 hotkeys in the same file? Topic is solved
Replies: 2
Views: 277

Re: Is it possible to have AHK v1 and v2 hotkeys in the same file? Topic is solved

Thank you, Mike! How are you always so fast? 8-) I know that a v1 script can run a v2 script, in fact that's how I have my system set up: the default AutoHotkey.ahk runs AutoHotkey2.ahk so both scripts are always loaded. Each one #includes the relevant libraries and individual .ahk files for program...
by elbitjusticiero
18 Aug 2024, 06:48
Forum: Ask for Help (v2)
Topic: Is it possible to have AHK v1 and v2 hotkeys in the same file? Topic is solved
Replies: 2
Views: 277

Is it possible to have AHK v1 and v2 hotkeys in the same file? Topic is solved

About half of my AHK code base is still in v1 even though I only use v2 for new code. My intention is to convert all v1 code into v2 but there are some useful functions by other people that haven't been ported so it will take a while. Since my files are organized by program (hotkeys for Opera, for W...
by elbitjusticiero
31 Jul 2024, 05:57
Forum: Scripts and Functions (v2)
Topic: Turn Folder-Structure into Menu-Structure for File-Selection
Replies: 5
Views: 1943

Re: Turn Folder-Structure into Menu-Structure for File-Selection

I copied and pasted the function in my function library, and I used the example you give, literally, with the only change being the string for the path I want to turn into a menu. I get this error: Error: Variable not found. Specifically: theHandlerFunction ---- E:\pgm\AHK\func_v2.ahk 050: filePath ...
by elbitjusticiero
30 Jul 2024, 16:33
Forum: Scripts and Functions (v2)
Topic: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1
Replies: 12
Views: 3962

Re: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1

OK, I've been testing this and I already love it, but I will point out three things: 1. I think the name of the property is wrong in the documentation: it should be .buttonText instead of .button . 2. This code: MsgBox2("¿Publicar?", "¿Publicar?" , "icon:question,txtColor:blue,fontFace:Verdana,fontS...
by elbitjusticiero
29 Jul 2024, 07:13
Forum: Scripts and Functions (v2)
Topic: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1
Replies: 12
Views: 3962

Re: Msgbox2 - customizable msgbox - 2021/07/25 - beta.1

It looks very cool, but I can't use it because I get this error on calling the function: Error: Expected a Number but got an empty string. ---- E:\pgm\AHK\MsgBox2.ahk 303: If WinExist("ahk_id " this.parent) 304: WinGetPos(&pX, &pY, &pW, &pH, "ahk_id " this.parent) ▶ 305: this.curMon := this.MonitorF...
by elbitjusticiero
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: 267

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 ...
by elbitjusticiero
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: 267

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...
by elbitjusticiero
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: 267

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...
by elbitjusticiero
07 Mar 2024, 07:19
Forum: Ask for Help (v2)
Topic: Is there a good HTML parser for v2?
Replies: 2
Views: 420

Re: Is there a good HTML parser for v2?

william_ahk wrote:
06 Mar 2024, 07:22
Not good, but does the job. It uses mshtml.dll so the HTML has to be parsable by IE.
Thank you!

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.
by elbitjusticiero
06 Mar 2024, 05:50
Forum: Ask for Help (v2)
Topic: Script for automatically insert text to mp3tag
Replies: 1
Views: 214

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.
by elbitjusticiero
05 Mar 2024, 17:30
Forum: Ask for Help (v2)
Topic: Is there a good HTML parser for v2?
Replies: 2
Views: 420

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...
by elbitjusticiero
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: 387

Re: How can I validate string length in a Gui before submitting?

mikeyww wrote:
06 Feb 2024, 06:38
I'm not sure how you envisioned submitting the GUI. OnEvent is probably the most common way. This demonstration script shows how to get a control's contents without submitting the GUI, but if you have many controls, submitting may be preferred.
I meant the events for the edit controls. My bad. ツ

Go to advanced search