If needed could do as the posted code.
Just activating the browser window seems to be the simplest way.
Search found 33 matches
- 01 Jan 2023, 15:35
- Forum: Ask for Help (v1)
- Topic: Show/Hide Taskbar
- Replies: 3
- Views: 397
- 01 Jan 2023, 11:44
- Forum: Ask for Help (v1)
- Topic: Show/Hide Taskbar
- Replies: 3
- Views: 397
Show/Hide Taskbar
From the browser want to run a single CMD command, but to avoid dealing with window focus issues the command is run minimized ( RunWait .. ,, Min ). Prefer one-liners if possible. But still need some feedback to know the command is running without stealing focus from the currently focused browser wi...
- 22 Mar 2022, 12:41
- Forum: Ask for Help (v1)
- Topic: Improving Simple Code
- Replies: 1
- Views: 180
Improving Simple Code
I click the mouse right button for context menus (default) and for selecting between active processes (ShiftAltTab/AltTab), but when the browser is active it must also allow a plugin to activate when holding the mouse right button. The code below works for everything else (so far), but can't activat...
- 19 Nov 2021, 19:34
- Forum: Ask for Help (v1)
- Topic: Firefox & Autohotkey
- Replies: 8
- Views: 1279
Re: Firefox & Autohotkey
The issue was the use of If SubStr(Clipboard, 1, 10) = "..." at the beginning of the section, not realizing the clipboard data is modified, instead of simply evaluating a conditional statement.
Thanks
Thanks
- 15 Nov 2021, 07:30
- Forum: Ask for Help (v1)
- Topic: Firefox & Autohotkey
- Replies: 8
- Views: 1279
Re: Firefox & Autohotkey
Don't have the administrator option on the .ahk file, but set the AutoHotkey executable to run with admin privileges (got UAC confirmation window).
Same results, made no difference.
Same results, made no difference.
- 14 Nov 2021, 09:35
- Forum: Ask for Help (v1)
- Topic: Firefox & Autohotkey
- Replies: 8
- Views: 1279
Firefox & Autohotkey
Code worked fine for years, moving focus from address bar to the first text field in a web page, but for some reason is no longer working with Firefox ESR 78.15.0. Manually entering F6 and then Tab works, but not when doing the same via Autohokey code. Focus is on the address bar and is supposed to ...
- 25 Oct 2021, 16:06
- Forum: Ask for Help (v1)
- Topic: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
- Replies: 6
- Views: 911
Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
Edited the post to mention the use of Task Manager and not relying on the System Tray icon.
That would partially explain it since the code uses #SingleInstance force.
EDIT: The other thing is that AHK is not running with admin priviledges.
Thanks
That would partially explain it since the code uses #SingleInstance force.
EDIT: The other thing is that AHK is not running with admin priviledges.
Thanks
- 25 Oct 2021, 16:02
- Forum: Ask for Help (v1)
- Topic: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
- Replies: 6
- Views: 911
Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
The part I'm not mistaken is that after changing code and the code not working as expected, I've terminated the single instance and ran a new one (besides refreshing several times). It has happened more times than I could justify as it's just my mistake. Next time will pay attention to the task mana...
- 25 Oct 2021, 15:59
- Forum: Ask for Help (v1)
- Topic: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
- Replies: 6
- Views: 911
Re: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
I've noticed this happening before, whenever I change code it takes awhile for the new code to update properly. It doesn't matter if I click "Reload This Script" or quit then run the script again. Now it's not doing it anymore and the computer wasn't rebooted. With AHK not all changes are reflected ...
- 25 Oct 2021, 12:29
- Forum: Ask for Help (v1)
- Topic: Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
- Replies: 6
- Views: 911
Alt+1 & Alt+2 from Numeric Keypad Opening AHK History Window
When I type special characters using (Alt+_) 1 or 2 in the numeric keypad the AHK History window opens. Checked the code several times and there's no reason for the AHK History window to open when pressing Alt+1 or Alt+2 using the numeric keypad. KeyHistory is only used once like this: !3::KeyHistor...
- 14 Jan 2021, 11:39
- Forum: Ask for Help (v1)
- Topic: CMD Command Issue
- Replies: 7
- Views: 364
Re: CMD Command Issue
Yes, in this case the hotkey executes that one line of code and the .reg file consists of one line, too (to fix a silly Windows 10 bug, probably to force people to upgrade). If I notice any issues, I'll use RunWait.
- 13 Jan 2021, 17:19
- Forum: Ask for Help (v1)
- Topic: CMD Command Issue
- Replies: 7
- Views: 364
Re: CMD Command Issue
Thanks for the help. This is working now, no other changes, but I think I tried this before. Sometimes with AHK I need to stop and continue another time for things to work/update. Run cmd.exe /c reg import "C:\Program Files\AutoHotkey\file.reg" I verified the registry and it is changing the value (n...
- 12 Jan 2021, 15:34
- Forum: Ask for Help (v1)
- Topic: CMD Command Issue
- Replies: 7
- Views: 364
Re: CMD Command Issue
No difference. I can enter the command manually and execute it, but from AHK nothing is happening, except that the CMD window opens. Using cmd.exe /k has the same effect. NumPadDot::Run cmd.exe /k " reg import ""C:\Program Files\AutoHotkey\file.reg"" " When using the command manually, the response i...
- 12 Jan 2021, 09:10
- Forum: Ask for Help (v1)
- Topic: CMD Command Issue
- Replies: 7
- Views: 364
CMD Command Issue
The CMD window opens, but nothing happens.
Code: Select all
NumPadDot::Run %ComSpec% "reg import "C:\Program Files\AutoHotkey\file.reg""
- 29 Nov 2020, 18:59
- Forum: Ask for Help (v1)
- Topic: TranscodedWallpaper Renaming Topic is solved
- Replies: 7
- Views: 454
Re: TranscodedWallpaper Renaming Topic is solved
I was using an extra folder after folder "Themes" named "TranscodedWallpaper" that didn't exist.
This works, too:
Thanks for the help!
This works, too:
Code: Select all
FileMove %A_AppData%\Microsoft\Windows\Themes\TranscodedWallpaper, %A_AppData%\Microsoft\Windows\Themes\TranscodedWallpaper.old
- 29 Nov 2020, 16:32
- Forum: Ask for Help (v1)
- Topic: TranscodedWallpaper Renaming Topic is solved
- Replies: 7
- Views: 454
Re: TranscodedWallpaper Renaming Topic is solved
The first code works.
Is it because of the long path? Can you use one line to do the same?
The second code shows #A# in the MsgBox window.
Is it because of the long path? Can you use one line to do the same?
The second code shows #A# in the MsgBox window.
- 29 Nov 2020, 13:30
- Forum: Ask for Help (v1)
- Topic: TranscodedWallpaper Renaming Topic is solved
- Replies: 7
- Views: 454
Re: TranscodedWallpaper Renaming Topic is solved
FileMove doesn't rename the TranscodedWallpaper file (a .jpg without extension) and doesn't give an error (error level 0). Trying to use CMD to bypass any UAC issues gives an error about not finding the path. FileMove %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper\Transco...
- 29 Nov 2020, 09:21
- Forum: Ask for Help (v1)
- Topic: TranscodedWallpaper Renaming Topic is solved
- Replies: 7
- Views: 454
TranscodedWallpaper Renaming Topic is solved
Because Windows 10 is constantly preventing me from changing the wallpaper, wanted a hotkey to rename the file TranscodedWallper (no .jpg extension), but this is not possible with FileMove. I also don't want to give admin rights to the whole script so thought of using Run *RunAs cmd.exe /c ren ... B...
- 25 Apr 2020, 12:06
- Forum: Ask for Help (v1)
- Topic: Why #IfWinNotActive Not Working Topic is solved
- Replies: 4
- Views: 605
Re: Why #IfWinNotActive Not Working Topic is solved
Looking for the equivalent AHK code to do the same so I can use "If !WinActive(ahk_exe Firefox)".
Although, the issue is that it conflicts with the browser's right-click, which is used by gestures addon.
Although, the issue is that it conflicts with the browser's right-click, which is used by gestures addon.
- 25 Apr 2020, 11:06
- Forum: Ask for Help (v1)
- Topic: Why #IfWinNotActive Not Working Topic is solved
- Replies: 4
- Views: 605
Re: Why #IfWinNotActive Not Working Topic is solved
It doesn't work when using ShiftAltTab, but works for MsgBox.
As soon as I change MsgBox for ShiftAltTab it no longer works.
Code: Select all
#IfWinNotActive, ahk_exe Firefox.exe
~RButton & WheelUp::ShiftAltTab
#IfWinNotActive