how do you get input on mouse click from the monitor i know it possible because you can paint with the monitor i just can find the code to do it
5 replies to this topic
#1
Posted 15 April 2013 - 10:25 AM
#2
Posted 15 April 2013 - 10:35 AM
Mouse clicking is only possible on an advanced computer.
This snippet will wait until a click:
Event is 'mouse_click'
button is wich butten you clicked -> 1 left; 2 right; 3 scroll thingie
x and y is the postion where is clicked on the screen
This snippet will wait until a click:
local event, button, x, y = os.pullEvent('mouse_click')
Event is 'mouse_click'
button is wich butten you clicked -> 1 left; 2 right; 3 scroll thingie
x and y is the postion where is clicked on the screen
#3
Posted 15 April 2013 - 10:41 AM
its also possible on Adv, monitors too because you can paint on Adv. monitors with the program paint
#4
Posted 15 April 2013 - 10:42 AM
To get clicks from an advanced monitor, do
x - The x position of where the touched.
y - The y position of where the touched.
local event, side, x, y = os.pullEvent("monitor_touch")
side -left, right, top, bottom, front, or back.x - The x position of where the touched.
y - The y position of where the touched.
#5
Posted 15 April 2013 - 10:45 AM
the side in the monitor touch event is the side that the monitor is on the computer.
#6
Posted 15 April 2013 - 10:55 AM
mailmanq, on 15 April 2013 - 10:42 AM, said:
To get clicks from an advanced monitor, do
x - The x position of where the touched.
y - The y position of where the touched.
local event, side, x, y = os.pullEvent("monitor_touch")
side -left, right, top, bottom, front, or back.x - The x position of where the touched.
y - The y position of where the touched.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











