Created
July 22, 2016 09:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@[Link("smartremote64")] | |
lib LibSmartRemote | |
fun spawn_client = exp_spawnClient( | |
java_exec: UInt8*, | |
remote_path: UInt8*, | |
root: UInt8*, | |
params: UInt8*, | |
width: Int32, | |
height: Int32, | |
initseq: UInt8*, | |
useragent: UInt8*, | |
javaargs: UInt8*, | |
plugins: UInt8* ) : Pointer(Void) | |
fun mouse_pos = exp_getMousePos( | |
target: Pointer(Void), | |
x: Int32, | |
y: Int32 | |
) | |
end | |
x = LibSmartRemote.spawn_client("java", | |
"dist/", | |
"http://localhost:3030/", | |
",j1", | |
500, | |
500, | |
"s", | |
nil, | |
nil, | |
nil) | |
while true | |
pos_x = 0 | |
pos_y = 0 | |
sleep 3 | |
puts x | |
LibSmartRemote.mouse_pos(x, pos_x, pos_y) | |
puts "#{pos_x},#{pos_y}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment