Search found 6589 matches

by boiler
18 Nov 2020, 07:19
Forum: Ask For Help
Topic: Using "&" Without Blocking?
Replies: 18
Views: 210

Re: Using "&" Without Blocking?

When you say you send Alt & b, do you mean you are sending them using the Send command? Or you just have two separate hotkeys? Are you using !b as Rohwedder suggested? Can you post the exact lines from your script that are causing a problem?
by boiler
18 Nov 2020, 06:47
Forum: Ask For Help
Topic: Move multiple windows with the same name
Replies: 1
Views: 39

Re: Move multiple windows with the same name

Use the List sub-command of WinGet to get a list of all windows that meet the criteria. You can then create a loop and move each one. Example #2 on that page shows how to set up such a loop.
by boiler
18 Nov 2020, 06:42
Forum: Gaming
Topic: Poker
Replies: 7
Views: 119

Re: Poker

mikeyww posted a link to a thread that discusses that exact topic. The suggestions you are seeking appear in that thread.
by boiler
18 Nov 2020, 06:37
Forum: Gaming
Topic: AHK Script for Pokerstars Software / Aurora ?
Replies: 36
Views: 5083

Re: AHK Script for Pokerstars Software / Aurora ?

@SalePepeCumino - See this thread for a discussion on that topic.
by boiler
17 Nov 2020, 20:05
Forum: Ask For Help
Topic: Toggle Auto-Correct Two Consecutive Capitals
Replies: 3
Views: 48

Re: Toggle Auto-Correct Two Consecutive Capitals

You can use a combination of an #If and a Hotkey, If, Expression command where the expression would be a toggle variable (and probably a !WinActive(...) ). It gets complicated since the latter requires the former, and you want to have it both as a toggle and as an IfWinNotActive. You can try using t...
by boiler
17 Nov 2020, 19:42
Forum: Ask For Help
Topic: Do something when I close a file in Notepad
Replies: 17
Views: 330

Re: Do something when I close a file in Notepad

At the OnWin() page, click on the OnWin.ahk link (the big title centered at the top of the post), which takes you to the GitHub page (you can just use the links provided in this sentence instead of going back to the earlier post). In case you have trouble downloading from GitHub, here is a link with...
by boiler
17 Nov 2020, 19:30
Forum: Ask For Help
Topic: Moving Average of a Moving Average Of an Array Topic is solved
Replies: 1
Views: 33

Re: Moving Average of a Moving Average Of an Array Topic is solved

array_source := [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] first_average := moving_average(array_source, 2) last_average := moving_average(first_average, 3) MsgBox, % arrayStr(array_source) "`n" arrayStr(first_average) "`n" arrayStr(last_average) return arrayStr(array) { Str := "" For Index, Value In ar...
by boiler
17 Nov 2020, 18:29
Forum: Ask For Help
Topic: Do something when I close a file in Notepad
Replies: 17
Views: 330

Re: Do something when I close a file in Notepad

You need to download the OnWin library into your AHK user library location, or provide the full path to wherever you put it in your #Include statement.
by boiler
17 Nov 2020, 18:27
Forum: Ask For Help
Topic: Tab function vs tab character
Replies: 4
Views: 82

Re: Tab function vs tab character

How about having the script perform a mouse click in the next field to move the keyboard focus to it? Better yet, see if the app has individual controls so that you can use ControlFocus to move to that field. The first step is seeing if the various fields have unique control names by using the Windo...
by boiler
17 Nov 2020, 16:04
Forum: Ask For Help
Topic: GuiControl set color using variable Topic is solved
Replies: 3
Views: 78

Re: GuiControl set color using variable Topic is solved

You are trying to access the variable Accent outside of its scope (inside a function). You can put global Accent at the top of that function so it can access it. To demonstrate, try the following with and without the global Accent line: RegRead, Accent, HKCU\SOFTWARE\Microsoft\Windows\DWM, Colorizat...
by boiler
17 Nov 2020, 15:15
Forum: Ask For Help
Topic: GuiControl set color using variable Topic is solved
Replies: 3
Views: 78

Re: GuiControl set color using variable Topic is solved

Your accent color variable contains one too many characters. If the first byte (first two characters) is the alpha channel (transparency level), then you need to remove the first two characters: Accent := SubStr(Accent, 3) That should work. Here's a demo: RegRead, Color, HKCU\SOFTWARE\Microsoft\Wind...
by boiler
17 Nov 2020, 15:10
Forum: Ask For Help
Topic: Toggle Auto-Correct Two Consecutive Capitals
Replies: 3
Views: 48

Re: Toggle Auto-Correct Two Consecutive Capitals

This should be better than having to toggle it on and off. Try putting the line below at the top of your script. All subsequent hotkeys created by the Hotkey command will be subject to it.

Code: Select all

HotKey, IfWinNotActive, ahk_exe EXCEL.EXE
by boiler
17 Nov 2020, 12:23
Forum: Ask For Help
Topic: Improving a simple code snippet
Replies: 8
Views: 174

Re: Improving a simple code snippet

Another: str := "C:\MyFiles\AHK All\AHK 07.03.20\B FolderAndFiles" d := [] loop d.Push(str := RegExReplace(str, "^(.*)\\.*", "$1")) until !InStr(str, "\") for k, v in d MsgBox, % v Made mine match the output of: (note the fix at the end) str := "C:\MyFiles\AHK All\AHK 07.03.20\B FolderAndFiles" d :=...
by boiler
17 Nov 2020, 09:32
Forum: Ask For Help
Topic: Can someone convert a gpc script to ahk
Replies: 4
Views: 119

Re: Can someone convert a gpc script to ahk

Oh, then I made a bad assumption that LMB and RMB meant left and right mouse button. Sorry about that. And I think that unfortunately means that native AHK isn’t going to help because it can’t set values for controller buttons. If set_val(PS4_L2, 100) means that you want the AHK script to simulate p...
by boiler
17 Nov 2020, 08:35
Forum: Ask For Help
Topic: Run Putty with the -pw option
Replies: 2
Views: 50

Re: Run Putty with the -pw option

You need to put Gui, Submit, Nohide as the first line of your But: routine so it captures the password entered. You have it immediately after the GUI is displayed which captures it while the entry is blank.
by boiler
17 Nov 2020, 08:19
Forum: Ask For Help
Topic: Can someone convert a gpc script to ahk
Replies: 4
Views: 119

Re: Can someone convert a gpc script to ahk

I'm really confident, but it seems like this would operate the same based on my quick look at GPC. I'm not sure if I interpreted everything correctly. Is it correct that event_press(9) means to move the right controller stick in the x direction (either + or -)? loopFlag := False SetTimer, CheckRX, 5...
by boiler
16 Nov 2020, 22:52
Forum: Ask For Help
Topic: Check if string has Symbols
Replies: 4
Views: 79

Re: Check if string has Symbols

i have tried InStr() but it doesn't works char := "!%" string := "find!" ;i want to detect the '!' char if InStr(string, char) { MsgBox, found the char } someone know how to do this? The reason that doesn't work is that it is looking for the exact string !% to appear (both characters in a row). You...
by boiler
16 Nov 2020, 22:46
Forum: Ask For Help
Topic: Check if string has Symbols
Replies: 4
Views: 79

Re: Check if string has Symbols

That script does work. Are you sure you saved your changes to the script before running it?
by boiler
16 Nov 2020, 22:17
Forum: Ask For Help
Topic: Do something when I close a file in Notepad
Replies: 17
Views: 330

Re: Do something when I close a file in Notepad

aurelius - You might find OnWin() useful for this purpose. You can register the closing of Notepad windows in general as an event to trigger a function, and in that function, the event object will contain the title of the window that closed (among other things). So your script doesn’t have to use l...
by boiler
16 Nov 2020, 19:45
Forum: Ask For Help
Topic: Adding Quotations to AutoCorrect Script Topic is solved
Replies: 3
Views: 66

Re: Adding Quotations to AutoCorrect Script Topic is solved

On my US keyboard, the " character is a shifted ' key, so a " hotkey is already covered by this: keys = ``1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./ Loop Parse, keys HotKey ~+%A_LoopField%, Hoty ; Shifted keys to monitor But it's also not causing a problem for me if I add a " right after the : h...

Go to advanced search