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
 Help with actions
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kracov

7 Posts

Posted - 04/18/2019 :  21:53:21  Show Profile
I'm a new user and I'm trying to add an action. Actually I was trying to edit the Refresh gesture action.
This is what I edited:

-- this code sends the F5 key to refresh the window

acSendKeys("^+r")

Where "^+r" is supposed to be CTRL+SHIFT+R. But it actually disables it. I use it for refreshing gmail in the browser.

Rob

USA
2615 Posts

Posted - 04/19/2019 :  03:58:01  Show Profile  Visit Rob's Homepage
I just copied and pasted your acSendKeys("^+r") line and tested in GMail, it seems to reload fine for me.

What do you mean when you say "But it actually disables it."?
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:37:34  Show Profile
Yeah. The gesture doesn't work. And when I try the keyboard command nothing happens. It's fixed by exiting Strokesplus
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/19/2019 :  04:52:03  Show Profile  Visit Rob's Homepage
What keyboard layout are you using? Meaning, is it a non-US English layout?

Do any these behave any differently?
acSendControlDown()
acSendShiftDown()
acSendKeys("r")
acSendShiftUp()
acSendControlUp()

OR

acSendKeyDown(162)  --Left Control
acSendKeyDown(160)  --Left Shift
acSendKeys("r")     --r
acSendKeyUp(160)    --Left Control
acSendKeyUp(162)    --Left Shift

OR

acSendKeyDown(162) --Left Control
acSendKeyDown(160) --Left Shift
acSendKeyDown(82)  --r
acSendKeyUp(82)    --r 
acSendKeyUp(160)   --Left Control
acSendKeyUp(162)   --Left Shift
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:55:18  Show Profile
i dont know about any of that. what preferences file should i send to you and where?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/19/2019 :  04:57:16  Show Profile  Visit Rob's Homepage
Did you try any of the three script sets above? The keyboard layout isn't something within StrokePlus, that would be in Windows.
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  04:58:55  Show Profile
how do i add those scripts?
Go to Top of Page

kracov

7 Posts

Posted - 04/19/2019 :  05:02:17  Show Profile
ohh i see. i added a hotkey in the Hotkeys tab that was conflicting with it. i removed it and the gesture works now

Edited by - kracov on 04/19/2019 05:03:27
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/19/2019 :  05:02:53  Show Profile  Visit Rob's Homepage
Just copy and paste them from above in place of your acSendKeys code. Only copy one set (5 lines) per try, otherwise it would execute all of them. Click Apply or OK then see if the gesture reloads GMail. If not, try the next set of 5 lines.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 04/19/2019 :  05:03:55  Show Profile  Visit Rob's Homepage
Ah, that would probably do it too! Glad you got it figured out.
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