Search found 226 matches

by zvit
29 Apr 2024, 11:52
Forum: Ask for Help (v2)
Topic: Unable to use Func() Topic is solved
Replies: 2
Views: 394

Re: Unable to use Func() Topic is solved

You can do this in v2 but without the Func syntax. Examining the documentation shows the way. https://www.autohotkey.com/docs/v2/lib/Func.htm#Bind V1: BoundFunc := Func.Bind(Param1, Param2, ...) V2: BoundFunc := FuncObj.Bind(Param1, Param2, ...) Example Ok, thanks! I already completed the script us...
by zvit
29 Apr 2024, 11:09
Forum: Ask for Help (v2)
Topic: Unable to use Func() Topic is solved
Replies: 2
Views: 394

Unable to use Func() Topic is solved

No AI can figure this out, and they all say that v2 supports Func(). But when I try to use it in any way, e.g., MyMenu.Add(index, Func("ShowMenuWrapper")) ShowMenuWrapper := Func("ShowMenu").Bind(catToShow . "\\" . index) MyMenu.Add(index, ShowMenuWrapper) I get the same error: Expected 0 parameters...
by zvit
23 Jan 2023, 15:01
Forum: Ask for Help (v1)
Topic: RegExReplace help Topic is solved
Replies: 5
Views: 444

Re: RegExReplace help Topic is solved

works great, thanks! Even ChatGPT couldn't figure it out.
by zvit
23 Jan 2023, 13:57
Forum: Ask for Help (v1)
Topic: RegExReplace help Topic is solved
Replies: 5
Views: 444

Re: RegExReplace help Topic is solved

Thanks! But I don't use AHK 2.0. Any way to do this in v1.1.34.04?
by zvit
23 Jan 2023, 13:30
Forum: Ask for Help (v1)
Topic: RegExReplace help Topic is solved
Replies: 5
Views: 444

RegExReplace help Topic is solved

I have example text like this: Satellite: A type of spacecraft which orbits around a planet or other celestial body. Sputnik was the world's first satellite. Orbit: The path a satellite takes around a planet or other celestial body. Sputnik orbited the Earth. Space: The area beyond Earth's atmospher...
by zvit
07 Dec 2022, 21:45
Forum: Ask for Help (v1)
Topic: Help with the transposing script please.
Replies: 3
Views: 298

Re: Help with the transposing script please.

Sorry, wrong forum :-) I don't know how to delete a post.
by zvit
20 Oct 2022, 05:52
Forum: Ask for Help (v1)
Topic: AHK vs Visual Studio - opening Explorer or Opus
Replies: 7
Views: 603

Re: AHK vs Visual Studio - opening Explorer or Opus

My problem was that `WinGetActiveTitle` retrieves the entire path for Opus, while for Explorer, it only retrieves the folder name. The fix is easy, but I'll have to get used to the data Opus sends. Results from this script: d:: WinGetClass, class, A WinGetActiveTitle, MyWin MsgBox, WinGetClass is:`n...
by zvit
19 Oct 2022, 15:23
Forum: Ask for Help (v1)
Topic: AHK vs Visual Studio - opening Explorer or Opus
Replies: 7
Views: 603

Re: AHK vs Visual Studio - opening Explorer or Opus

Ok, here's a reply that I got on the Opus form, and it works! I just replaced all the words "explorer" with "explore."

AHK's documentation suggests using explore, not explorer:
Run, explore %A_ProgramFiles%
by zvit
19 Oct 2022, 05:58
Forum: Ask for Help (v1)
Topic: AHK vs Visual Studio - opening Explorer or Opus
Replies: 7
Views: 603

Re: AHK vs Visual Studio - opening Explorer or Opus

For example, I have an AHK script that gets the active window title, adds part of it to two new file names, a .docx, and .xlsx, and copies the files to the active folder. I just ran this script, and in Opus it doesn't work (no files are copied,) but in Windows Explorer it works fine. I know the labe...
by zvit
19 Oct 2022, 05:50
Forum: Ask for Help (v1)
Topic: AHK vs Visual Studio - opening Explorer or Opus
Replies: 7
Views: 603

Re: AHK vs Visual Studio - opening Explorer or Opus

From Opus: While Directory Opus Pro has an Explorer Replacement option, this is to replace File Explorer, not to replace the entire Windows shell. https://resource.dopus.com/t/can-opus-replace-the-file-open-save-dialogs-other-programs-use/36127 If Opus replaces Windows Explorer, I wonder why AHK isn...
by zvit
19 Oct 2022, 05:05
Forum: Ask for Help (v1)
Topic: AHK vs Visual Studio - opening Explorer or Opus
Replies: 7
Views: 603

AHK vs Visual Studio - opening Explorer or Opus

The following AHK script opens a folder: Run, Explorer %FolderToCheck% The following is VB code in Visual Studio 2022 that opens a folder: Process.Start("explorer.exe", GlobalClass_VSA.PATH_FullRawProject_VSA) AHK opens the folder in Windows Explorer, and VS opens it in Opus. As I read, Opus does no...
by zvit
12 Oct 2022, 09:28
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

@GEV - how does adding a timeout help here? AHK sees WinWait, Save As,, 30 the same as WinWait, Save As - unresponsive,, 30 . As I recall, the problem was that even though the window was unresponsive, it still showed as active to @zvit's code. How does a timeout help - the unresponsive window will ...
by zvit
12 Oct 2022, 09:24
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

GEV wrote:
12 Oct 2022, 09:18
Try Mouse And Keyboard Macro Recorder
I tried it. Unfortunately, that also uses the depreciated IfWinNotActive
by zvit
12 Oct 2022, 09:12
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

Wow, it worked perfectly! 160 files took less than 5 minutes (3 minutes of those was waiting for unresponsive time) I suspect it was the depreciated IfWinNotActive I used. Does anyone know of an AHK script recorder that doesn't use depreciated functions as AutoScriptRecorder || from Larry Keys does?...
by zvit
12 Oct 2022, 08:55
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

I'm going to try WinWaitActive, Export puzzle,, 15, so it doesn't wait for the good windows. Will report back.
by zvit
12 Oct 2022, 08:47
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

When it becomes unresponsive, it actually says "unresponsive" in the window title. If that word actually becomes part of the Window's title, maybe before every send, I can have AHK look for that word in the title and wait more if it does? That's a band-aid, but what do you think?
by zvit
12 Oct 2022, 08:45
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

Re: WinWait alternitive Topic is solved

I should have mentioned, I already use that. Here's the wait part of my code: WinWait, Save As, IfWinNotActive, Save As, , WinActivate, Save As, WinWaitActive, Save As, I guess an unresponsive window is still active the eyes of AHK? p.s. Maybe it's because I'm using the Deprecated IfWinNotActive. I'...
by zvit
12 Oct 2022, 08:27
Forum: Ask for Help (v1)
Topic: WinWait alternitive Topic is solved
Replies: 13
Views: 1571

WinWait alternitive Topic is solved

The documentation for WinWait says: "Waits until the specified window exists". "Exists" is not enough for me in this situation. I need to know when a window is ready and responsive. Here's the issue: Using my loop code, I open hundreds of files, one at a time, export them into a certain format, and ...
by zvit
05 Oct 2022, 08:40
Forum: Ask for Help (v1)
Topic: Run cmd with parameters Topic is solved
Replies: 3
Views: 712

Re: Run cmd with parameters Topic is solved

I found a similar post here: https://stackoverflow.com/questions/64305524/autohotkey-run-program-as-admin-not-working

And using my Everything search, I found the real shortcuts, that when running them as you said, works great.
Thanks!

Image
by zvit
05 Oct 2022, 08:27
Forum: Ask for Help (v1)
Topic: Run cmd with parameters Topic is solved
Replies: 3
Views: 712

Re: Run cmd with parameters Topic is solved

The shortcut is just the regular cmd.exe. Without the parameters, it just opens the regular cmd window (not the anaconda one)

Image

Go to advanced search