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.
Well, like I said, I'd make sure that Chrome is open and has the mouse focus, then start clicking,
Code: Select all
>!i::{Up}
>!j::{Left}
>!k::{Down}
>!l::{Right}
RButton & LButton::{Alt}d
Code: Select all
Sleep, 5000
Run, YourOtherScript.ahk ; provided it's in the same dir as the calling file
Code: Select all
^!Left::
Send {Control down}{Alt down}
Send {Left}
Send {Control up}{Alt up}
Code: Select all
Menu, klapmenu_programmas, Icon, Programma 1, %A_ScriptDir%\IconFile.ico