Search found 444 matches

by newbieforever
01 Jun 2020, 03:32
Forum: Wish List
Topic: Command line switch to execute different script than compiled one
Replies: 14
Views: 1577

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

... 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
Replies: 14
Views: 1577

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

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: Offtopic
Topic: A Speed Competition ;-)
Replies: 2
Views: 858

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: Offtopic
Topic: A Speed Competition ;-)
Replies: 2
Views: 858

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
Replies: 14
Views: 1577

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

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
Replies: 14
Views: 1577

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

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
Replies: 14
Views: 1577

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

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
Replies: 14
Views: 1577

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

@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
Topic: Running AHK script and Task Manager
Replies: 0
Views: 203

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
Topic: Process, Close, ScriptX.ahk
Replies: 12
Views: 650

Re: Process, Close, ScriptX.ahk

Thanks to all!!!
by newbieforever
02 May 2020, 11:07
Forum: Ask For Help
Topic: Process, Close, ScriptX.ahk
Replies: 12
Views: 650

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
Replies: 14
Views: 1577

Command line switch to execute different script than compiled one

. 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
Topic: What the hell is Caboodle?
Replies: 17
Views: 1681

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
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 309

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
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 309

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
Topic: Extracting Autohotkey.dll (or other "strange" ideas)
Replies: 8
Views: 587

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
Topic: AHKcompiler
Replies: 0
Views: 371

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
Topic: Macros for Specific Software (begginer questions)
Replies: 8
Views: 309

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 ...
by newbieforever
28 Apr 2020, 05:50
Forum: Ask For Help
Topic: Extracting Autohotkey.dll (or other "strange" ideas)
Replies: 8
Views: 587

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

No, that is why AutoHotkey_H has the /E (also /Execute) switch to execute a different script than compiled. Thanks a million, HotKeyIt! Forgive me for seeking further approval from you: - Wouldn't that be an enormous improvement of the usage possibilities (for a part of the users)? - Wouldn't this ...
by newbieforever
28 Apr 2020, 03:22
Forum: Ask For Help
Topic: Extracting Autohotkey.dll (or other "strange" ideas)
Replies: 8
Views: 587

Re: Extracting Autohotkey.dll?

An answer from HotKeyIt... what an honor. Thanks a lot! I don't have the deeper knowledge and competence to really judge this (old) question. Nevertheless: (I) In AHK_L there are still two interpreter executables used, AutoHotkey.exe and AutoHotkeySC.bin . The reason for this duality in grey prehist...

Go to advanced search