Search found 506 matches

by newbieforever
17 Nov 2020, 10:02
Forum: Ask for Help (v1)
Topic: Controls in an Explorer window
Replies: 4
Views: 424

Re: Controls in an Explorer window

Sorry, mikeyww, my question was not precise enough. My script should know "by itself", after it is startet on a PC with a specific Windows 10 version, the control name of the content pane. Until recently, I used the GetWinVer() function to determine the Windows version, believing that if the value i...
by newbieforever
17 Nov 2020, 09:09
Forum: Ask for Help (v1)
Topic: Controls in an Explorer window
Replies: 4
Views: 424

Controls in an Explorer window

I need to determine the control name of the main part of the Explorer window that lists the contents of the selected folder. In Windows 10 this name was DirectUIHWND3 until recently, but sometime recently it was changed (in a new version, certainly from 1909 on) to DirectUIHWND2 . What would be the ...
by newbieforever
01 Jun 2020, 03:32
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

... but I disagree about it being an "enormous improvement" ... Your opinion about the worth of the feature? I am not expert enough to present the advantages as conclusively, briefly and concisely as you can with the counterarguments. I try to express myself precisely, but unfortunately that someho...
by newbieforever
31 May 2020, 06:04
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

Dear lexikos, thank you for your detailed answer. I must confess that I do not understand your basic rejection, but I appreciate that you have taken so much trouble with my request. But, of course, I have now realized that I am completely and finally in a lost cause. PS: I wanted to make the topic r...
by newbieforever
31 May 2020, 05:53
Forum: Off-topic Discussion
Topic: A Speed Competition ;-)
Replies: 6
Views: 3012

Re: A Speed Competition ;-)

OK, I am overwhelmed by the great interest in my competition and the underlying question. I also understand that I am in a lost cause here. Therefore I hereby declare the competition closed. Finally, I would like to present my own "smart method" using an example. On my old Surface 3 (Win 10), this s...
by newbieforever
06 May 2020, 03:50
Forum: Off-topic Discussion
Topic: A Speed Competition ;-)
Replies: 6
Views: 3012

A Speed Competition ;-)

. May I present and initiate a funny, weird, but also serious competition here? By means of AHK a tool for the determination of all prime numbers < 10**6 shall be created. Conditions: - The tool must be compiled. - The executable must not be larger than 400 kB when compressed. - Only AHK features ma...
by newbieforever
05 May 2020, 02:28
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

Is there a problem with using the ExecScript function that's in the documentation for AHK_L? Besides requiring the AutoHotkey executable somewhere on the PC to execute it, ... Again, you ignore the fact that this point (a new switch /e or /scr) is only about extending the capabilities of compiled s...
by newbieforever
04 May 2020, 14:26
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

You don't need to write a new code when you can just the Hotkey command with new parameters to create new Hotkeys. Are you saying that with the currently available resources of AHK you can write a script that would only be 400 kB in size when compiled (and compressed) and would do exactly what my d...
by newbieforever
04 May 2020, 10:36
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

Thanks, nnnik! Defining ad hoc Hotkeys and highly dynamic code are already a thing without /e. /e could be used in peoples script and would break them on addition (mentioned by lexikos implicitly). Could you briefly explain what you mean by that? There are downsides to compiling and those downsides ...
by newbieforever
04 May 2020, 09:09
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Re: Command line switch to execute different script than compiled one Topic is solved

@lexikos, thanks for your answer! I am not an AHK expert, but: Could it be that you are "logically" unfair to this proposal? ;) You practically only make arguments against compiling scripts, which should not be the question here. Do "standalone" and "single cabinet" in the area of AHK not have a rai...
by newbieforever
03 May 2020, 05:24
Forum: Ask for Help (v1)
Topic: Running AHK script and Task Manager
Replies: 0
Views: 756

Running AHK script and Task Manager

Hi! My question referrs to non-compiled scripts. If an AHK script is lauched via something like this: Run, C:\Test\AutoHotkey.exe c:\Test\ScriptX.ahk , it is listed in the Task Manager e.g. as an 'AutoHotkey Unicode 32-bit' process. Renaming the interpreter file e.g. to ScriptX.exe doesn't change th...
by newbieforever
03 May 2020, 05:10
Forum: Ask for Help (v1)
Topic: Process, Close, ScriptX.ahk
Replies: 12
Views: 1668

Re: Process, Close, ScriptX.ahk

Thanks to all!!!
by newbieforever
02 May 2020, 11:07
Forum: Ask for Help (v1)
Topic: Process, Close, ScriptX.ahk
Replies: 12
Views: 1668

Process, Close, ScriptX.ahk

Hi!

An AHK script is lauched via something like this: Run, C:\Test\AutoHotkey.exe c:\Test\ScriptX.ahk.

Is there a way to close the process of this script by specifying the name of the process, 'ScriptX.ahk'?

This seems not to work: Process, Close, ScriptX.ahk.
by newbieforever
30 Apr 2020, 02:13
Forum: Wish List
Topic: Command line switch to execute different script than compiled one Topic is solved
Replies: 15
Views: 5462

Command line switch to execute different script than compiled one Topic is solved

. Passing Command Line Parameters to a Script [v1.1.33+]: The switch /e can be used to specify a script which should be executed instead of the embedded one. Could this not be implemented with minimal effort? (No comparison for example with the introduction of asterisk: [v1.1.17+]: Specify an asteri...
by newbieforever
29 Apr 2020, 09:01
Forum: Scripts and Functions (v1)
Topic: What the hell is Caboodle?
Replies: 17
Views: 3037

Re: What the hell is Caboodle?

Okay, got it - first attachment including ahk-helpfile was too big... Congratulations and thanks for your feedback. I'm sorry, I'm not able to answer your general questions right now... (And I don't see at first sight how your NewName script should work...) I don't see here that there is a problem ...
by newbieforever
29 Apr 2020, 01:09
Forum: Ask for Help (v1)
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 616

Re: Macros for Specific Software (begginer questions)

what does the % sign do in Send % ? Is it like a function call or something to tell it to paste as text? Send Str would mean, send the 3-letter word "Str". If you want to send the value of the variable Str, you have to write Send %Str% (or simpified Send % Str ). You should use extensively the docu...
by newbieforever
28 Apr 2020, 10:08
Forum: Ask for Help (v1)
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 616

Re: Macros for Specific Software (begginer questions)

Here a hotkey is added: Ctrl+Shift+9. Just an example. #If WinActive("ahk_class Notepad") ^9:: Send, Sincerely, Return ^8:: Send, Best regards, Return #If #If WinActive("ahk_exe WordPad.exe") ^7:: Send, How are you? Return ^6:: Send, Really? Return #If ^+9:: ; = Ctrl+Shift+9 Str := "Date: " . A_YYYY...
by newbieforever
28 Apr 2020, 09:56
Forum: Ask for Help (v1)
Topic: Extracting Autohotkey.dll (or other "strange" ideas)
Replies: 8
Views: 1381

Re: Extracting Autohotkey.dll (or other "strange" ideas)

@HotKeyIt

Thank you, I find your answer very comforting. I was seriously thinking that I... :headwall:

This is going to be my last question to you:
How come nobody else here recognizes it?

.
by newbieforever
28 Apr 2020, 09:48
Forum: Scripts and Functions (v1)
Topic: AHKcompiler
Replies: 0
Views: 604

AHKcompiler

AHKcompiler.jpg Very handy also when a shortcut is created on the desktop--drag and drop the script file. An ini file is used to save settings and selections for individual scripts etc. For compression mpress.exe should be available in the program folder. All versions of AHK bin or exe can be used ...
by newbieforever
28 Apr 2020, 09:16
Forum: Ask for Help (v1)
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 616

Re: Macros for Specific Software (begginer questions)

Yes, all of this is achievable, in one script, which basically would look like this: #If WinActive("ahk_class Notepad") ^9:: Send, Sincerely, Return ^8:: Send, Best regards, Return #If #If WinActive("ahk_exe WordPad.exe") ^7:: Send, How are you? Return ^6:: Send, Really? Return #If Here hotkeys are ...

Go to advanced search