* Autohotkey not working in V7.0.7

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
Gowermick
Megastar
Posts: 1704
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Autohotkey not working in V7.0.7

Post by Gowermick »

Have just updated to V7.0.7 via Help\Check for Updates, and now find My Autohotkey (AH) shortcuts no longer work when inputting dates or text, although I can enter them manually, just not via AH!

AH is sending the text ok, as It is received ok by Notepad, so any ideas why it isn't received by FH?
Any AH text that I enter into Notepad, can be copied and pasted from there into FH, but I can't get AH to paste it directly into FH!

Some of my shortcuts are shown below

^4::
Send, 7 Jun 1841
return
^5::
Send, 30 Mar 1851
return
^6::
Send, 7 Apr 1861
return
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com
User avatar
jimlad68
Megastar
Posts: 921
Joined: 18 May 2014 21:01
Family Historian: V7
Location: Sheffield, Yorkshire, UK (but from Lancashire)
Contact:

Re: Autohotkey not working in V7.0.7

Post by jimlad68 »

Just tested all mine and they work fine, and that includes

+NumpadEnter::Send, {Enter}=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-={Enter}
and
#7::
Send, s{Left}{Up 7}{enter}^D
!{space}x
Return
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
avatar
Gowermick
Megastar
Posts: 1704
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Autohotkey not working in V7.0.7

Post by Gowermick »

Thanks Jim.
Your reply and something I read in new features, prompted me to restart FH, et voila, they now work again :D
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com
avatar
Gowermick
Megastar
Posts: 1704
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Autohotkey not working in V7.0.7 [Solved]

Post by Gowermick »

According to Ros at CP, when FH restarts during upgrade, it does so in Admin mode, and it could have been that causing the problem.
My restart opened it in normal mode, hence Autohotkey acted as it usually does!

Thanks Ros
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com
User avatar
jimlad68
Megastar
Posts: 921
Joined: 18 May 2014 21:01
Family Historian: V7
Location: Sheffield, Yorkshire, UK (but from Lancashire)
Contact:

Re: Autohotkey not working in V7.0.7

Post by jimlad68 »

For info I have found that for some programs, standard autohotkey (AHK) does not work; e.g. everything search and ultrasearch, possibly because they themselves need to run as admin. This would concur with "According to Ros at CP, when FH restarts during upgrade, it does so in Admin mode". I think this is only a problem on later versions of Windows, extra security etc. So the only option is to run your AHK script as Admin. I include this in my script:

Code: Select all

if not A_IsAdmin
    Run *RunAs "%A_AhkPath%" "%A_ScriptFullPath%" 
see this for discussion, note that for me not all options worked, but the above does
https://www.autohotkey.com/boards/viewtopic.php?t=21278
see post 01 Oct 2018, 12:11 by DRocks
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68
avatar
Gowermick
Megastar
Posts: 1704
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Autohotkey not working in V7.0.7

Post by Gowermick »

Thanks Jim, I’ll bear that in mind for the future, in case it happens again in another program.
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com
Post Reply