Search found 6589 matches

by boiler
19 Nov 2020, 08:15
Forum: Ask For Help
Topic: Problem to read input on an edit field Topic is solved
Replies: 2
Views: 39

Re: Problem to read input on an edit field Topic is solved

You need to grab the current values: ReadInput: ;want to be able to display Hello when FIRST press Gui, Submit, NoHide msgbox, Current input = %edit1% return The reason it works when you type in the Edit box is that you have it submitting after every letter you type. You should just do it the way I ...
by boiler
19 Nov 2020, 07:59
Forum: Ask For Help
Topic: Split - to many lines Topic is solved
Replies: 13
Views: 249

Re: Split - to many lines Topic is solved

It’s because ~= an expression operator, so literal strings, like in the first example, must be quoted. It’s similar to using a continuation section like that with := instead of = . The following works: If "5" ~= " ( \d )" MsgBox, Success The second example uses the legacy assignment operator = , so ...
by boiler
19 Nov 2020, 07:48
Forum: Ask For Help
Topic: Why a code can't run in ”Microsoft Word“ Topic is solved
Replies: 9
Views: 93

Re: Why a code can't run in ”Microsoft Word“ Topic is solved

Is it slow when being assigned text like that? We know it can be slow in completing its paste operation, requiring a delay before clearing or reassigning its contents immediately after sending a paste.
by boiler
19 Nov 2020, 07:42
Forum: Ask For Help
Topic: How to add a 3rd button to a script?
Replies: 26
Views: 564

Re: How to add a 3rd button to a script?

On a side note: is it possible to make this script work on vastly different keyboard layouts? like, if a layout has "wars" instead of "wasd" on the same buttons. So it looks at which button is pressed, not which letter. if that makes sense. There really wouldn’t be any way for a script to treat a k...
by boiler
19 Nov 2020, 00:21
Forum: Ask For Help
Topic: Shift Tab twice Topic is solved
Replies: 5
Views: 90

Re: Shift Tab twice Topic is solved

M4verick wrote:
19 Nov 2020, 00:11
I have no idea what the other poster was trying to do w/ his code.
It was interpreting your post to mean that you wanted the script to Send the Tab key twice when you physically press the Shift key (i.e., a Shift hotkey).
by boiler
18 Nov 2020, 23:57
Forum: Ask For Help
Topic: Block all input to a certain application
Replies: 5
Views: 115

Re: Block all input to a certain application

Maybe someone knows of a way, but it would be better if you can either modify the Python code or rewrite it in AHK so it only works when Photoshop is active.
by boiler
18 Nov 2020, 23:46
Forum: Ask For Help
Topic: Shift Tab twice Topic is solved
Replies: 5
Views: 90

Re: Shift Tab twice Topic is solved

I took it to mean that it does what it’s supposed to but just wants to know if it can be written more efficiently, like this:

Code: Select all

Send, +{Tab 2}
by boiler
18 Nov 2020, 18:36
Forum: Ask For Help
Topic: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved
Replies: 153
Views: 3095

Re: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved

Seems like I have to reclick into the OPAL pacs for it to show up. Once it does its fine. I’m not sure what you’re saying. What is “pacs”? And I’m not really understanding your new approach where you are putting it into a GUI window and why. Is there a reason why the wintitle declaration also have ...
by boiler
18 Nov 2020, 16:20
Forum: Gaming
Topic: Poker
Replies: 7
Views: 119

Re: Poker

But when I use Hotkeys F1, F2, F3 and Mbutton, I would like to use them ALSO when the window under my mouse position is not activated. ...For the first problem I think I could use "MouseGetPos" but I didn't understand how setting up it. Yes, MouseGetPos does help you do that. You can have it activa...
by boiler
18 Nov 2020, 16:08
Forum: Ask For Help
Topic: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved
Replies: 153
Views: 3095

Re: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved

I know some editors there are hot keys to indent properly? I wish there was some form of tutorial on this instead of making you go through hard to read coding. This will certainly help. VS Code and most editors designed for coding will aid you in indenting in various ways. It will automatically tab...
by boiler
18 Nov 2020, 15:50
Forum: Ask For Help
Topic: Mouse switch part 3
Replies: 39
Views: 608

Re: Mouse switch part 3

I recommend the AutoHotkey documentation. It has many examples including the script showcase. I learned only from that, not from any outside books. If you prefer books, you might want to check out Jack Dunning's books. I haven't read them, but I've seen others say good things about them.
by boiler
18 Nov 2020, 15:43
Forum: Ask For Help
Topic: Insert Value in Excel cell depending on what is in another cell Topic is solved
Replies: 5
Views: 127

Re: Insert Value in Excel cell depending on what is in another cell Topic is solved

Have an Excel sheet open with cells A1:A4 containing the words as you described, then run the following script: pairs := {Banana: "monkey", Apple: "horse", Tomato: "deer", Broccoli: "human"} xl := ComObjActive("Excel.Application") for cell in xl.range("A1:A4") cell.offset(0,1).value := pairs[cell.va...
by boiler
18 Nov 2020, 15:32
Forum: Ask For Help
Topic: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved
Replies: 153
Views: 3095

Re: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved

The return at the end of the parsing loop ends the auto-execute section, preventing the code below it from executing. Think about what happens as you follow the code execution starting at the top and going down line by line. When you reach the return , then nothing else will execute unless some othe...
by boiler
18 Nov 2020, 12:18
Forum: Ask For Help
Topic: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved
Replies: 153
Views: 3095

Re: Regular Expressions Get Everything After The Colon and Get the Home Address from This Text Topic is solved

You should have only one script so you can just grab the text from the GUI rather than treating it as a non-GUI window. To combine them, put the stuff from the auto-execute section of one into the auto-execute section of the other, and put the hotkey subroutines below the auto-execute section of the...
by boiler
18 Nov 2020, 09:24
Forum: Ask For Help
Topic: Hotstrings in online emailing Topic is solved
Replies: 7
Views: 109

Re: Hotstrings in online emailing Topic is solved

You might try running your script as administrator, as your browser may be running as an elevated process, preventing it from accepting keystrokes from a non-elevated process. By the way, there is no reason to have two sets of #SingleInstance lines, and there is no reason for there to be a set of th...
by boiler
18 Nov 2020, 09:16
Forum: Ask For Help
Topic: Mouse switch part 3
Replies: 39
Views: 608

Re: Mouse switch part 3

I get the feeling that either autohotkey is not suitable for my "old school lineair programming style.... It’s not AutoHotkey that is not suitable to a linear programming style. It’s the task at hand that requires you to think in an event-driven programming style, no matter what language is used.
by boiler
18 Nov 2020, 09:11
Forum: Ask For Help
Topic: How to get a value from another program
Replies: 21
Views: 475

Re: How to get a value from another program

It’s not just a command that would do it. And what you have to do depends on whether the bet entry box also has a control where the bet size text can be set directly or whether it needs to be sent to it as keystrokes.
by boiler
18 Nov 2020, 08:24
Forum: Ask For Help
Topic: Website Auto fill
Replies: 4
Views: 67

Re: Website Auto fill

The spaces allow for the two literal strings (in quotes) and the variable D to be concatenated as described here . The quotes are not surrounding the D, they are surrounding the strings before and after it. The space is a shortcut for the dot (.) concatenation. The following is equivalent: evaluate(...
by boiler
18 Nov 2020, 08:15
Forum: Ask For Help
Topic: How to make the Gui have no focus?
Replies: 4
Views: 65

Re: How to make the Gui have no focus?

You can create a control that is positioned outside of the GUI window, and therefore not visible or used for anything, and put focus on it.
by boiler
18 Nov 2020, 08:08
Forum: Ask For Help
Topic: Continually appending text in while loop fails after first iteration
Replies: 2
Views: 51

Re: Continually appending text in while loop fails after first iteration

Using the .= operator means that you are assigning as an expression, so this line:

Code: Select all

clipVar .= %currentUser%
should be:

Code: Select all

clipVar .= currentUser
It will be less confusing if you try to always use expressions. For example, use := rather than = for assigning to variables.

Go to advanced search