Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Comment
[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
File

Sandwich


LUA

Reply
- 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
repeat

until not IsMouseButtonPressed(4)
end
end

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
>>36286

source is in SA not atrap sadly


>>36288

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
>>36290
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
>>36291

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
>>36292
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
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.