Search found 9 matches

by vIndie
Fri Apr 06, 2012 4:25 pm
Forum: MicroMacro general & support
Topic: getPixel() and dual monitors
Replies: 1
Views: 1859

getPixel() and dual monitors

It doesn't appear that getPixel works correctly on the secondary monitor in dual monitor setup, it returns 255,255,255 regardless of the actual color of the pixel. Here is the code I used to test. function main() while(1) do hwnd = foregroundWindow(); if (hwnd ~= 0) then hdc = openDC(hwnd); if (hdc)...
by vIndie
Sun Apr 01, 2012 3:52 pm
Forum: MicroMacro general & support
Topic: findWindow and class weirdness
Replies: 3
Views: 1964

Re: findWindow and class weirdness

danke! that was it. I think it is a sign I need to go to bed tonight
by vIndie
Sun Apr 01, 2012 2:54 pm
Forum: MicroMacro general & support
Topic: findWindow and class weirdness
Replies: 3
Views: 1964

findWindow and class weirdness

I was making a class to wrap the window related functions: CWindow = class( function(self, windowTitle) self.win = nil; print(self); print(windowTitle); self.title = windowTitle; print(self.title); end ); function CWindow:getWin() print(self); print(self.win); print(self.title); if(self.win == nil) ...
by vIndie
Sun Apr 01, 2012 12:47 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

Was kind of thinking it would be cool if the main parts of MM were written as modules .. keyboard/mouse, memory, etc. then could just use it on standard Lua distribution and mix-and-match the parts you need... guess you can still do that to an extent with MM.
by vIndie
Fri Mar 30, 2012 5:29 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

Not really, no. "default" is always available, so that would be a "valid" encryption key. In the case that you used two different encryption keys, it would just result in a loss of data/malformed packets, but you should* be able to connect. *I'm not entirely sure about this. I e...
by vIndie
Fri Mar 30, 2012 4:11 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

very basic but it works. CNetworkServer = class( function (self) netPushKey("encryptionKey", "12345"); end ); function CNetworkServer:start() listen = netOpenCon("0.0.0.0:62751", "encryptionKey"); if( netListen(listen) ~= 0 ) then printf("Error making con...
by vIndie
Fri Mar 30, 2012 3:51 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

and I'm an idiot...

Code: Select all

listen = netOpenCon("0.0.0.0", "default");
should have been

Code: Select all

listen = netOpenCon("0.0.0.0", "encryptionKey");
does the network provide any kind of error so that I would have known that it was the wrong encryption key?
by vIndie
Fri Mar 30, 2012 3:45 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

client:connect("128.0.0.1:62751"); I think that's your problem there. I think you meant 127.0.0.1. You should also specify the listen port in the server so you can be sure that you are attempting to connect to the right port. Thanks, that was a quick typo because I didnt want to paste my ...
by vIndie
Fri Mar 30, 2012 3:03 pm
Forum: MicroMacro general & support
Topic: Hi all, Is there a command to send and receive TCP messages
Replies: 22
Views: 7624

Re: Hi all, Is there a command to send and receive TCP messa

So I'm trying to create a client/server with MicroMacro but I'm not getting a connection. I've disable windows Firewall so I don't believe that is the problem. The netserver says waiting for connection and the netclient says attempting connection.. Here is the network server code: CNetworkServer = c...