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
 Bug and Issues
 New Bugs
 Strokes Plus stops catching gestures
 Forum Locked
 Printer Friendly
Author  Topic Next Topic  

Orcus

11 Posts

Posted - 08/17/2020 :  03:48:54  Show Profile
1) My screen Resolution is 1920x1080
2) I have an OpenGL app that is running full screen mode (on nVidia card) and using resolution 1280x1024
3) This app is in Strokes Plus ingored app lists
4) After I run that app and quit it Strokes Plus stops catching gestures outside the screen area 1280x1024. I.e. right part of my screen becomes inactive to catching gestures. Running a gesture in that part of the screen with my Stroke Button (Right MB) doesn't execute the gesture but just presses right mouse button bringing context menu.

When that app is removed from ignored apps, the issue is gone.

I understand that SP is no longer maintained. But is there any simple solution for my problem?
I was thinking about excluding that OpenGL program from ignored list and write my own app that blocks Strokes Plus from catching event of that OpenGL app. Just cannot see the approach to implement that on C++.

Rob

USA
2615 Posts

Posted - 08/19/2020 :  07:28:03  Show Profile  Visit Rob's Homepage
As a test, make a hotkey (or an action) and use this script. After you exit the OpenGL app, execute the hotkey or action and see if the size of the gesture surface area is back to matching the screen size.

Note that there's a 2 second pause, you should see the S+ icon show as disabled during this 2 second period.
--Post WM_DISPLAYCHANGE to S+ window
--This resets the gesture surface area
--Allow 2 seconds after posting to see results
acPostMessage(acFindWindow("STROKESPLUS"),126, nil, nil)
Go to Top of Page

Orcus

11 Posts

Posted - 08/19/2020 :  13:42:48  Show Profile
Yes, that works.
Is it ok to add this command to some frequently used gestures?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 08/19/2020 :  13:55:42  Show Profile  Visit Rob's Homepage
It won't harm anything, but then you have to deal with S+ being disabled for 2 seconds.

I think this script should do it instantly:

local scrnX = acGetSystemMetrics(76)
local scrnY = acGetSystemMetrics(77)
local scrnCX = acGetSystemMetrics(78)
local scrnCY = acGetSystemMetrics(79)
local spWindow = acFindWindow("STROKESPLUS")

acMoveWindow(spWindow, nil, nil, scrnX, scrnY) 
acSetWindowSize(spWindow, nil, nil, scrnCX, scrnCY)
Go to Top of Page

Orcus

11 Posts

Posted - 08/20/2020 :  12:43:39  Show Profile
Unfortunately, the second script isn't working.
Go to Top of Page

Rob

USA
2615 Posts

Posted - 08/31/2020 :  10:14:15  Show Profile  Visit Rob's Homepage
Ah, there's piece of code in the display change that resets some internal variables for the size of the surface area. Try this one, which sends the enable/disable command twice, so it ends up back in the same state as before the script.

local scrnX = acGetSystemMetrics(76)
local scrnY = acGetSystemMetrics(77)
local scrnCX = acGetSystemMetrics(78)
local scrnCY = acGetSystemMetrics(79)
local spWindow = acFindWindow("STROKESPLUS")

acMoveWindow(spWindow, nil, nil, scrnX, scrnY) 
acSetWindowSize(spWindow, nil, nil, scrnCX, scrnCY)

acPostMessage(acFindWindow("STROKESPLUS"),122, nil, nil)
acPostMessage(acFindWindow("STROKESPLUS"),122, nil, nil)
Go to Top of Page

Orcus

11 Posts

Posted - 09/07/2020 :  07:08:35  Show Profile
That's not working too.
Is there a way to disable/enable Strokes+ using SendMessage function (from winuser.h) to the app?
Go to Top of Page

Rob

USA
2615 Posts

Posted - 09/07/2020 :  09:04:43  Show Profile  Visit Rob's Homepage
That's what the last two lines from above do, send the message to toggle enabled, same message that is sent when selecting the menu item from the tray icon.
Go to Top of Page
   Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000