cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
userIt0WEc3sFl
Constellation

samsung notebook 9 S pen button to mouse right-click

Samsung are utterly deaf to users. On stylus button click notebook call program AirCommandLauncher.exe . It is useless for artists.
I wrote a program which has only one function - call a system event of right-click. This programm will not work correctly for all soft. For the purposes I need, it works great. I'm too lazy to edit bugs. You can change the functionality yourself. For this, I enclose the source code at the end. But in most cases it will be a solution (for example Blender, corel, explorer and more). So, create buckup of original file "AirCommandLauncher.exe". You can find it on the following path.

C:\Program Files (x86)\Samsung\Air Command\AirCommandLauncher.exe

This will help you restore everything. And put my program there and replace this file.

 

Source code on vb.net:

 

Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Module Main
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal dwData As Integer, ByVal dwExtraInfo As Integer)
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10
Public Sub Main()
Call mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0)
Call mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0)
End
End Sub

End Module


My AirCommandLauncher.exe you can find here
https://www.dropbox.com/s/96rp414cc5b88me/Stylus.zip?dl=0