Sign in to follow this  
Followers 0
masutsimon

Clic with wacom stylus

1 post in this topic

#1 ·  Posted (edited)

Hey, this is not the first time i come on this forum but i must recreate an account..

I ve searched for many hours why the mouse doesn t click when i write my script :

HotKeySet("k", "Click1")
HotKeySet("x", "_Exit")
Global $X=56
Global $Y=143
opt("MouseClickDelay",15)
opt("MouseClickDownDelay",15)
opt("MouseClickDragDelay",250)

Func Click1()
Sleep(15)
MouseClick ("left", $X, $Y,2,15)
EndFunc

While 1
Sleep(100)
WEnd

Func _Exit()
Exit
EndFunc

This is a really easy script but i tried different version with double click, sleep, ... etc. The problem is come from the two devices, mouse and stylus which are incompatible with my script. If i only use my stylus, it moves the cursor to the location and doesn t click at all. If i move my mouse manually before pressing the "k" key, it works well. So stylus desactivate the left mouse click and i m really tired cause i spend a lot of time in it and i didn t find a solution. That s why i m asking some help here.

Thank you. Notice in the past, i have already used a script and have success. 

Edited by JLogan3o13
Added Code Formatting

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0