Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists



- Mon, 07 Nov 2016 19:02:44 EST imZrmU2Q No.36284
File: 1478563364717.png -(211453B / 206.50KB, 500x500) Thumbnail displayed, click image for full size. LUA
How do I trigger a script by pressing 2 buttons at the same time?

function OnEvent(event, arg)
if IsMouseButtonPressed(4) then

until not IsMouseButtonPressed(4)

is what i have now but I would like to be able to have the script trigger when I press mousebutton 1 + mousebutton 3
Betsy Wirringwell - Tue, 08 Nov 2016 10:16:16 EST cTA6VBg7 No.36286 Reply
Can you nest the check for the other mouse button in the first one? And stick the repeat or whatever in there?

Also, where is your OP pic from?? Is that a trap?
Barnaby Bluffingfotch - Tue, 08 Nov 2016 11:27:16 EST 5CmZbfbY No.36287 Reply
can't you use the logical AND of the two booleans of mousebutton1 & mousebutton3?
Edwin Greenson - Tue, 08 Nov 2016 12:15:46 EST ftzGhvag No.36288 Reply
The question is why would you want to.
That sounds like some real shit UX
Nathaniel Creffingfetch - Tue, 08 Nov 2016 16:47:36 EST imZrmU2Q No.36290 Reply

source is in SA not atrap sadly


just a quick lua for a mouse pulldown script and I am shit at coding since I have been doing it for about a week.
Isabella Shakecocke - Tue, 08 Nov 2016 22:17:22 EST ftzGhvag No.36291 Reply
I don't know LUA so I can't help, but we aware that 'quick hacks' often have a way of sticking around. Might be better to go with something clickable or a keyboard shortcut instead.
Angus Greendock - Wed, 09 Nov 2016 20:45:19 EST imZrmU2Q No.36292 Reply

its for a g502 mouse the game i am using it in cannot detect these scripts nor would they even bother trying to.
Reuben Dissleson - Fri, 11 Nov 2016 08:30:38 EST 8AGoqQnQ No.36295 Reply
i've never used lua, but, wouldn't this be as simple as
if isMouseButtonPressed(1) and isMouseButtonPressed(2)
Simon Bennermig - Wed, 16 Nov 2016 13:51:25 EST uJY5Antv No.36300 Reply
Who is that cute girl?

Report Post
Please be descriptive with report notes,
this helps staff resolve issues quicker.