Script sometimes doesn't work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jd1001
Posts: 4
Joined: 18 Sep 2016, 01:06

Script sometimes doesn't work

24 Oct 2016, 14:07

Hi,

I have a very simple script for closing and re-opening browser tabs but sometimes the re-opening part of it doesn't work. Instead of re-opening a tab it would close one when I press alt+\. For it work correctly again I would have to reload the script. What could be the reason for that?
My script is

Code: Select all

$^\::
sendinput ^+t
return

$\::
sendinput ^{F4}
return
The same happens when I use XButton1 (backwards button on mouse). It only sometimes work, and I'd have to reload it to get it work again.
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Script sometimes doesn't work

25 Oct 2016, 09:46

The behavior you are describing is usually the result of problems in the code (such as a missing Return, or a typo somewhere, etcetera). If the code you posted is your entire script, then I see no reason for you to be having this type of trouble - however, since the code you posted does not mention ALT or XButton1 anywhere in it and you specifically mentioned issues with hotkeys involving them, I must assume the code you posted is not your entire script.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: macromint, peter_ahk and 342 guests