This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Conflict between Autohotkey and StrokesPlus
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

robertmarkbram

Australia
11 Posts

Posted - 08/13/2012 :  06:13:53  Show Profile  Visit robertmarkbram's Homepage
Hi Rob,

I am using the following short-cut to to close windows:


acSendKeys("{DELAY=50}^{F_4}")


The default close windows is control+w, but not all programs accept that (UltraEdit, for one, uses control+F4 - with control+w toggling word-wrap, which I use a lot).

I am also using Florian Winkelbauer's 4 Clip, an Autohotkey utility which binds F1-F4 to clipboards, so F1+c, F1+v etc for copy/paste to the first clipboard. A sample of the bindings from 4clip are below.


    *F1::SendInput {blind}{F1}
    *F2::SendInput {blind}{F2}
    *F3::SendInput {blind}{F3}
    *F4::SendInput {blind}{F4}

    ; F3 + F$
    F3 & F4::
        Gosub SetDelimiter
    return

    ; F4
    F4 & c::CopyClipboard(4)
    F4 & a::AppendClipboard(4)
    F4 & s::SwapClipboard(4)
    F4 & p::PrintClipboard(4)
    F4 & v::PasteClipboard(c4)
    F4 & b::PasteClipboard(cp4)
    F4 & d::Clear(4)


The problem I find is that when I use the StrokesPlus shortcut, the window closes but then the system is left as though the control key is still depressed: I can press escape and the start menu appears (just as it does when you press control+escape).

I have replicated this on both Windows 7 64 bit and Windows XP 64 bit.

I have confirmed that if I comment out all the F4 bindings in 4 clip, the problem goes away.

I also posted this on StackOverflow.

Any ideas?

Rob
:)

Rob

USA
2615 Posts

Posted - 08/13/2012 :  07:14:22  Show Profile  Visit Rob's Homepage
See if this behaves any differently:
acSendControlDown()
acSendKeys("{F_4}")
acSendControlUp()

...could even add an extra acSendControlUp() if it's still interfering.

Let me know!
Go to Top of Page

robertmarkbram

Australia
11 Posts

Posted - 08/13/2012 :  19:55:41  Show Profile  Visit robertmarkbram's Homepage
OK, that seems to work - thanks Rob!

Rob
:)

[Things are so much easier when everyone is called Rob.]
Go to Top of Page

Rob

USA
2615 Posts

Posted - 08/13/2012 :  20:27:18  Show Profile  Visit Rob's Homepage
Rob,

Rob agrees!

Rob
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000