Search found 63 matches

by StefOnSteroids
20 May 2019, 07:07
Forum: Ask For Help
Topic: launch
Replies: 18
Views: 876

Re: launch

SonGokuBg wrote:
20 May 2019, 06:59
can't decribe it. open chrone and click on some pixels
Well, like I said, I'd make sure that Chrome is open and has the mouse focus, then start clicking,
Try to use https://autohotkey.com/docs/commands/WinWaitActive.htm before you start clicking.
by StefOnSteroids
20 May 2019, 06:50
Forum: Ask For Help
Topic: launch
Replies: 18
Views: 876

Re: launch

I can only speak for my machine: All kind of things fire up after booting, it would be hit or miss to start clicking right away, not making sure the clicks happen on the object I want to focus on BEFORE I start clicking. Your case may be different, ofc. But since your code doesn't work, it may help ...
by StefOnSteroids
20 May 2019, 06:20
Forum: Ask For Help
Topic: launch
Replies: 18
Views: 876

Re: launch

I don't think it's a good idea to just start clicking when your machine comes up.
First you want to make sure that the focus is on the right window.
What are you trying to accomplish with these mouse-clicks?
by StefOnSteroids
11 May 2019, 21:54
Forum: Ask For Help
Topic: Some Basic Regex group Capture / Non-Capture Questions Topic is solved
Replies: 10
Views: 818

Re: Some Basic Regex group Capture / Non-Capture Questions Topic is solved

String := "Hello World" MsgBox, % RegExReplace(String, "(Hello\s)(World)", "$1") MsgBox, % RegExReplace(String, "(?:Hello\s)(World)", "$1") Both messages return the first group. And yet, the first "captured" group in the second example is "World" and not "Hello ", because the first group does not e...
by StefOnSteroids
11 May 2019, 10:49
Forum: Ask For Help
Topic: Change the way Caps Lock works
Replies: 5
Views: 447

Re: Change the way Caps Lock works

Still don't grasp what it is specifically, exactly, that you want it to do. Here some random starters to give you an idea: Turn it into another Shift key: CapsLock::Shift Have it greet you with a message: CapsLock:: msgbox Hello return Make it type text into the active window: Capslock:: Send, Best ...
by StefOnSteroids
11 May 2019, 10:10
Forum: Ask For Help
Topic: Change the way Caps Lock works
Replies: 5
Views: 447

Re: Change the way Caps Lock works

The script you refer to does something very specific, as far as I can tell (being quite a noob myself). It seems to me that this script programs a user function that does certain things depending on whether the toggle state of the CapsLock key is off or on. If you tell me what it is that you want to...
by StefOnSteroids
11 May 2019, 09:17
Forum: Ask For Help
Topic: Change the way Caps Lock works
Replies: 5
Views: 447

Re: Change the way Caps Lock works

Not sure what you mean by " will allow it to work otherwise" - if you simply want the CapsLock toggle to be always off, this should do the trick: https://www.autohotkey.com/docs/commands/SetNumScrollCapsLockState.htm If this doesn't help your case, it may help to specify what exactly you intend to u...
by StefOnSteroids
05 May 2019, 15:13
Forum: Ask For Help
Topic: What RegEx flavor to use?
Replies: 5
Views: 373

Re: What RegEx flavor to use?

Thank you both.
I really appreciate your help.
by StefOnSteroids
05 May 2019, 12:50
Forum: Ask For Help
Topic: What RegEx flavor to use?
Replies: 5
Views: 373

Re: What RegEx flavor to use?

Thank you.
Since I'm trying to learn to fish myself, where do I find this information? So I won't have to ask again in future versions. Is there something similar to A_AhkVersion for RegEx?
by StefOnSteroids
05 May 2019, 10:46
Forum: Ask For Help
Topic: What RegEx flavor to use?
Replies: 5
Views: 373

What RegEx flavor to use?

To construct my regex patterns with a 3rd-party helper tool, I first have to pick the correct flavor: 1) PCRE 8.21 2) PCRE 8.36-8.39 UTF-32 3) PCRE 8.40-8.42 UTF-8 4) PCRE2 10.21-10.22 5) PCRE2 10.30-10.31 What do I pick? My ahk version is 1.1.30.03 ahk-help only mentions PCRE without further specs....
by StefOnSteroids
29 Apr 2019, 11:05
Forum: Ask For Help
Topic: word substitution is doubling the first letter
Replies: 1
Views: 179

Re: word substitution is doubling the first letter

if I type Greg, I get gGreg or Helen, I get hHelen. This seems to only happen in onenote. Are you saying, this applies to ALL words you type? Or just with Greg and Helen? Do you have a hostring for Helen defined in your script? this has been happening for about 2 months. So you're saying your scrip...
by StefOnSteroids
29 Apr 2019, 01:58
Forum: Ask For Help
Topic: Very Confused about commands, any help appreciated
Replies: 2
Views: 259

Re: Very Confused about commands, any help appreciated

Try putting the right side into curly braces, like this:

Code: Select all

>!i::{Up}
>!j::{Left}
>!k::{Down}
>!l::{Right}

RButton & LButton::{Alt}d
by StefOnSteroids
28 Apr 2019, 09:44
Forum: Scripts and Functions
Topic: Radial menu scripts
Replies: 133
Views: 52760

Re: Radial menu scripts

Sometimes I activate it too close to a screen border to see the whole menu. When I try to grab it in the center and drag it elsewhere it immediately disappears. Is there a way to change this? So I can click-grab the center with the left mouse and drag it away from the edge of the screen? My settings...
by StefOnSteroids
28 Apr 2019, 08:42
Forum: Ask For Help
Topic: A script call for another scenario
Replies: 1
Views: 203

Re: A script call for another scenario

Code: Select all

Sleep, 5000
Run, YourOtherScript.ahk     ; provided it's in the same dir as the calling file
by StefOnSteroids
27 Apr 2019, 08:29
Forum: Ask For Help
Topic: Place prompt in hotstring text
Replies: 7
Views: 534

Re: Place prompt in hotstring text

Thanks again.
Also @Odlanir for pointing it out.
by StefOnSteroids
26 Apr 2019, 23:58
Forum: Ask For Help
Topic: I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too
Replies: 3
Views: 349

Re: I set alt+up:: to do something, but it fires on pressing alt+ctrl+up too

My only idea is a clumsy one: If your intended behavior is the default for the Ctrl+Alt key combos in you app, restore it back to its default:

Code: Select all

^!Left::
Send {Control down}{Alt down}
Send {Left}
Send {Control up}{Alt up}
Do the same for the other three directions.
by StefOnSteroids
26 Apr 2019, 23:41
Forum: Ask For Help
Topic: Place prompt in hotstring text
Replies: 7
Views: 534

Re: Place prompt in hotstring text

Impressive, thank you both, Osprey and Ridwan . Although neither approach offers a speed advantage, they're much more flexible and comfortable to handle. No need anymore to count and recount the chars before I finally get it right. I like the idea of tucking it away in a function and letting ahk tak...
by StefOnSteroids
26 Apr 2019, 14:51
Forum: Ask For Help
Topic: Place prompt in hotstring text
Replies: 7
Views: 534

Place prompt in hotstring text

After ahk has inserted my replacement text, I want to start typing at a certain position, not at the end of the replacement text. Other than stepping dozens of chars left again {Left 25} , is there a better way to position the prompt? I was thinking of some kind of placeholder like ::text1:: ( After...
by StefOnSteroids
25 Apr 2019, 11:27
Forum: Ask For Help
Topic: Menu with more then 1 submenu's
Replies: 9
Views: 683

Re: Menu with more then 1 submenu's

I think you have to attach the icon with a sepearate line for each icon.
Try something like this:

Code: Select all

Menu, klapmenu_programmas, Icon, Programma 1, %A_ScriptDir%\IconFile.ico
by StefOnSteroids
25 Apr 2019, 11:07
Forum: Scripts and Functions
Topic: Radial menu scripts
Replies: 133
Views: 52760

Re: Radial menu scripts

... 8.14.20 means that there will be 8 items in first ring, 14 in second and 20 items in third ring. If ItemLayoutPerRing is not specified, default value of 6.12.18.24 applies. Thanks for confirming that the code does indeed work the way it indicates. Here's the catch: I did not actually have 3 rin...

Go to advanced search