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
 Lua Scripts
 General Action Scripts
 How to get mouse button status?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Tet

4 Posts

Posted - 11/02/2015 :  08:23:06  Show Profile
Hi,
I'm trying to make a TabTip caller via LEFT CLICK while Cursor is IBEAM.
currently have:

acDelay(50)
repeat
if acGetMouseCursorType() == "IBEAM"
then acShellExecute("open", "C:\\TeT\\TabTip.exe")
end
acDelay(750)
until acGetMouseCursorType() == ""

After gesture an IBEAM will call TabTip always.

How can I make it call TabTip via LEFT CLICK while IBEAM.
Can't figure how to get mouse button status or register button down?

Rob

USA
2615 Posts

Posted - 11/03/2015 :  13:36:15  Show Profile  Visit Rob's Homepage
In the Preferences tab, check the option Allow Left Click Script.

Then go to the Global Lua tab and see if you already have a function named sp_left_mouse_up(x, y, fwKeys). If you do, just add your call to TabTip in there. If not, simply add the function. Here's what I used for testing and it seemed to work fine for me:
function sp_left_mouse_up(x, y, fwKeys)
	if acGetMouseCursorType() == "IBEAM" then 
		acDisplayBalloonTip("IBEAM", "Hello!", 1) --display a balloon tip
	end
end
Go to Top of Page

Tet

4 Posts

Posted - 11/07/2015 :  18:58:49  Show Profile
Hi Rob.
Wasn't quite what I was after, but it helped me figure it out.

Had to update for the Allow Left Click Script option.

Managed to get my Surface Pro 3 to give me the TabTip when I touch any text/text boxes. It can be gestured on/off (for when using a physical mouse & kbd).

Thanks.
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