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
 acSendkeys under win10
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HarryS

11 Posts

Posted - 11/23/2015 :  11:43:44  Show Profile
Upgraded win7 to win10, most things seem to work.
But i have a gesture that triggers a autohotkey script by using acSendKeys("@c")

It worked flawlessly under win7, now it mostly ends up writing the letter c instead of sending the win+c key, but the weird thing is it sometimes work.

Rob

USA
2615 Posts

Posted - 11/24/2015 :  12:59:43  Show Profile  Visit Rob's Homepage
Well, the only thing I can think of is that Windows 10 (actually, Cortana) now captures Win+C, so it could be interfering...?
Go to Top of Page

HarryS

11 Posts

Posted - 11/27/2015 :  10:16:37  Show Profile
I think i solved it, by adding a 10ms sleep to the autohotkey script. Basically strokesplus should just trigger ahk by hitting win+c, and it does, every single time.
But, every other time, it's too slow or something so it also sends a "c", and that messes up the rest of my ahk script that is meant to copy highlighted text and whatnot.

Just to make it less cryptic if someone has similar troubles, here's my ahk script (you have to define defaultbrowser for it to work):
#c::
{
   KeyWait, LWin, T1
   Sleep, 10 ; suspect strokesplus needs this
   Clipboard =
   SendInput, ^c
   ClipWait, 2
   If !(ErrorLevel) {
       Clipboard = %Clipboard%
       If Clipboard Contains www.,http://,.se,.com,.net,.org,.cz,.nu,.co.uk,.info
         Run, %DefaultBrowser% %Clipboard%
       Else  { 
         Clipboard := RegExReplace(Clipboard, "\r?\n"," ")
         StringReplace, Clipboard, Clipboard, `%, `%25, All ; This needs to be at the start 
         StringReplace, Clipboard, Clipboard, %A_Tab%, `%09, All 
         StringReplace, Clipboard, Clipboard, `", `%22, All 
         StringReplace, Clipboard, Clipboard, `#, `%23, All 
         StringReplace, Clipboard, Clipboard,  &, `%26, All 
         StringReplace, Clipboard, Clipboard,  :, `%3A, All  
         StringReplace, Clipboard, Clipboard,  `\, `%5C, All 
         Run, %DefaultBrowser% "www.google.com/search?q=%Clipboard%"
       }
   }
   Return
}

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