Search found 161 matches

by emp00
Today, 06:50
Forum: Ask for Help (v2)
Topic: Activate Chrome by profile (v1v2 conversion)
Replies: 0
Views: 25

Activate Chrome by profile (v1v2 conversion)

Dear Team, I found this AHV v1 script on stackoverflow which is doing exactly what I need -> activating a specific chrome profile when running multiple chrome profiles at the same time. Problem - using v1v2 quickconvert the conversion of the last line "Return ComObject(9, pacc, 1), ObjAddRef(pacc)" ...
by emp00
28 May 2024, 07:51
Forum: Ask for Help (v2)
Topic: Run browser on "hidden" desktop for background automation task
Replies: 0
Views: 130

Run browser on "hidden" desktop for background automation task

Dear Team, I would like to programmatically start a browser session (e.g, Edge app mode) and send some keystrokes via AHK. Goal: The script shall take a full page screenshot, e.g. for Edge this is quite simply achieved with this keystroke: Ctrl-Shift-S, 2x Tab, Enter, 5x Tab, Enter -> this sends a b...
by emp00
24 May 2024, 10:53
Forum: Ask for Help (v2)
Topic: Ocr.ahk
Replies: 9
Views: 803

Re: Ocr.ahk

Yes it is possible. OCR.FromRect(...).Text outputs the text without linebreaks, but you can loop over OCR.FromRect(...).Lines , get Line.Text and concatenate them with a linebreak. I am trying to achieve exactly this (getting the OCR'ed text with line breaks from an image) --> can you show me how t...
by emp00
20 May 2024, 13:35
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 661

Re: Reopen Last closed window script (v1 -> v2) Topic is solved

Thanks @just me - confirmed working! Brilliant. :-)
by emp00
19 May 2024, 05:37
Forum: Ask for Help (v2)
Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
Replies: 9
Views: 661

Reopen Last closed window script (v1 -> v2) Topic is solved

Dear Team, I am looking for a script to "simply" reopen the last closed explorer window via hotkey.
Found this v1 script dated Q3/2022 by @teadrinker : viewtopic.php?p=484659#p484659

Has anybody successfully ported this to v2 already? Thanks for sharing!
by emp00
22 Apr 2024, 14:22
Forum: Ask for Help (v2)
Topic: Run "i_view64.exe" and other programs moving the mouse cursor?!
Replies: 7
Views: 922

Re: Run "i_view64.exe" and other programs moving the mouse cursor?!

If your system language is English, go into Control Panel (not Settings) and search for mouse . Then under Ease of Access Center, select "Change how your mouse works". You should find a setting "Activate a window by hovering over it with the mouse". Turn this off. Having this setting enabled causes...
by emp00
21 Apr 2024, 16:53
Forum: Ask for Help (v2)
Topic: Run "i_view64.exe" and other programs moving the mouse cursor?!
Replies: 7
Views: 922

Re: Run "i_view64.exe" and other programs moving the mouse cursor?!

I checked further: Actually, this does not happen when the Desktop is in focus! But it always happens when any window/program is currently in focus. This is the boundary condition - you need to have e.g. notepad.exe running, it's window active/in focus and then you press one of the hotkeys . The mou...
by emp00
21 Apr 2024, 16:40
Forum: Ask for Help (v2)
Topic: Run "i_view64.exe" and other programs moving the mouse cursor?!
Replies: 7
Views: 922

Re: Run "i_view64.exe" and other programs moving the mouse cursor?!

I would fix the syntax error and then post your revised script. The effect of moving the mouse cursor has nothing to do with the script that you posted. There could be other scripts or programs that move the cursor. Syntax error fixed. Please test yourself, of course you need to adjust the paths......
by emp00
21 Apr 2024, 16:30
Forum: Ask for Help (v2)
Topic: Run "i_view64.exe" and other programs moving the mouse cursor?!
Replies: 7
Views: 922

Run "i_view64.exe" and other programs moving the mouse cursor?!

Dear Team, I use hotkeys to start several programs with Run . Found this strange effect -> Run starts the program and moves the mouse cursor to the just opened window , which I don't like! I want the mouse cursor to stay where it is when I press the hotkey. I'm on Win11 with AHK 2.0.13. This does no...
by emp00
21 Apr 2024, 05:24
Forum: Ask for Help (v2)
Topic: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved
Replies: 6
Views: 419

Re: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved

Please try this script, it sends Ctrl+1 to all existing Brave Browser windows without losing the focus of the current window. Thank you very much! It works, so far - tested under several conditions, seems to be reliable! THANKS!! Fyi, I checked the Hwnds array, at least in my case (Brave running wi...
by emp00
20 Apr 2024, 14:48
Forum: Ask for Help (v2)
Topic: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved
Replies: 6
Views: 419

Re: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved

Unfortunately the above was NOT working reliably - ControlSend obviously has frequent problems with inactive chromium windows :-( In the end I created this quite complex script for a simple task - this now works, but it flickers the windows due to the WinActivate switching action between two windows...
by emp00
20 Apr 2024, 12:45
Forum: Ask for Help (v2)
Topic: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved
Replies: 6
Views: 419

Re: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved

I made it !! :-)

This does the trick with "just" two lines - looks a little bit overdone, but it works! Can this be further simplified to just one line?

Code: Select all

ControlFocus("Chrome_RenderWidgetHostHWND1", "ahk_exe brave.exe")
ControlSend("^{1}", "Chrome_RenderWidgetHostHWND1", "ahk_exe brave.exe")
by emp00
20 Apr 2024, 12:39
Forum: Ask for Help (v2)
Topic: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved
Replies: 6
Views: 419

Re: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved

controls, you can use :arrow: WinGetControls . Ok, using WinGetControls I found that ahk_exe brave.exe has the controls "Chrome_RenderWidgetHostHWND1", "Chrome_RenderWidgetHostHWND2" etc.; Using this information I added "Chrome_RenderWidgetHostHWND1" to the script but now it throws Error: Target co...
by emp00
20 Apr 2024, 10:50
Forum: Ask for Help (v2)
Topic: Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved
Replies: 6
Views: 419

Send keypress to inactive Brave browser (chromium, change Tab hotkey for inactive browser window) Topic is solved

Dear Team, I'm trying to set up a simple hotkey-script to send Ctrl-1 to a running but inactive Brave browser instance in order to activate Tab No. 1. Found out that a single ControlSend does not work in such cases but here I found the following v1 script: "This is the seamless way to do it in Chrom...
by emp00
14 Apr 2024, 05:28
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59568

Re: UIA v2

@emp00 I was not aware that Vivaldi had a Home button. Unfortunately that means there is no reliable way to get the navigation buttons in Vivaldi, as they have no discernible characteristics (besides the Name property, but that is locale-specific and will change if the user uses another language). ...
by emp00
13 Apr 2024, 08:20
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59568

Re: UIA v2

I am experiencing an issue to the UIA_Browser method "Reload()". My very simple script below is supposed to press the browser's Reload button - script is activated via a hotkey in my main AHK script. I'm using the Vivaldi browser. I explicitly would like to initiate "Reload()" and not an "F5" keypre...
by emp00
15 Jan 2024, 15:08
Forum: Ask for Help (v2)
Topic: Upload / Sync a few local files to dropbox folder Topic is solved
Replies: 5
Views: 654

Re: Upload / Sync a few local files to dropbox folder Topic is solved

Dear Team - I finally solved my task described above as follows: - Found and installed this nice tool: https://freefilesync.org (Donationware; Portable version requiring no admin rights) - Unfortunately it does not work with Dropbox, however Google Drive cloud synchronization with various modes work...
by emp00
12 Jan 2024, 15:54
Forum: Ask for Help (v2)
Topic: Upload / Sync a few local files to dropbox folder Topic is solved
Replies: 5
Views: 654

Re: Upload / Sync a few local files to dropbox folder Topic is solved

If you do actually have a mapped drive somehow or a valid network path to your target folder on Dropbox, then this might actually be easy and just a matter of checking the file times and then copying the file with the newer time to the other directory. Being logged into Dropbox does not necessarily...
by emp00
11 Jan 2024, 14:58
Forum: Ask for Help (v2)
Topic: Upload / Sync a few local files to dropbox folder Topic is solved
Replies: 5
Views: 654

Upload / Sync a few local files to dropbox folder Topic is solved

Dear Team, I have a free dropbox account and use it via browser drag&drop. Question: Is there an AHK script available that I can initiate via a hotkey to check if one specific local file is older or newer than the dropbox equivalent in a specific dropbox-folder and then either upload or downloads th...
by emp00
30 Dec 2023, 17:13
Forum: Scripts and Functions (v2)
Topic: A simple date-entry tool with monthCal that shows US holidays
Replies: 6
Views: 1498

Re: A simple date-entry tool with monthCal that shows US holidays

kunkel321 Thanks for your efforts on compiling this gem of a script! I would like to contribute a small improvement for calculation of movable holiday dates (month/date) before or after a fixed date with a defined negative or positive delta, e.g. "X days before" or "Y days after". More specifically...

Go to advanced search