Search found 4021 matches

by Administrator
Sun Aug 28, 2016 1:37 pm
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

I don't think it has to do with resolution, as that's not taken into any computation in MicroMacro at all; it's just making raw calls to the Windows API. It certainly could be related to issues with your video card, but that seems a bit odd to me. I mean, I've got an integrated card and 2 dedicated ...
by Administrator
Sun Aug 28, 2016 12:58 pm
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

I'm not able to duplicate the issue still. Testing on Windows 10 pro x64, dual 1080p monitors. This is the slightly modified script I'm testing with: local hwnd; local winX, winY, wWidth, wHeight; function macro.init() hwnd = window.find("Untitled"); printf("Targeted %s\n", window.getTitle(hwnd)); w...
by Administrator
Tue Aug 23, 2016 11:44 pm
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

Try dropping this executable in your folder, overwriting the original, then run it. It'll dump extra info to the log on a getPixel() call. Post your log here for review.
by Administrator
Sun Aug 21, 2016 11:57 pm
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

Is the window you're trying to read from fully visable (ie. on top of all other windows, or at least not covered by another)? Since it uses a screenshot, it will read from whatever is on the screen rather than what is rendered to the window. That is, if I remember how getPixel() works.
by Administrator
Sun Aug 21, 2016 9:05 pm
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

I remember fixing some issues with those functions a long time ago, and I doubt that is the cause of this but just to make sure, which version are you using? Can you also specify if it is broken on both of your computers, or only on one or the other?
by Administrator
Sun Aug 21, 2016 11:46 am
Forum: MicroMacro general & support
Topic: Odd issue with getPixel using 2 different pcs
Replies: 16
Views: 8516

Re: Odd issue with getPixel using 2 different pcs

What do you mean by "it doesn't work"? Does it give incorrect results? An error message? Could you provide a copy of a log file to see if maybe it is failing to set the debug mode or something? Do you have any sort of anti-virus or other software that could be interfering with the access of screen d...
by Administrator
Mon Aug 08, 2016 8:25 pm
Forum: MicroMacro general & support
Topic: OpenCV and MicroMacro
Replies: 51
Views: 8857

Re: OpenCV and MicroMacro

Yes that's exactly right. It could be used for any sort of object recognition, though isn't the most efficient way to go about things.
by Administrator
Sun Aug 07, 2016 7:29 pm
Forum: MicroMacro general & support
Topic: how to hold multiple keys at once
Replies: 8
Views: 1261

Re: how to hold multiple keys at once

Well I do have approximate knowledge of many things! For efficiency, what have you tried? Have you considered flipping some memory flags to try and indicate that a certain key is pressed (often there will be a variable for keydown states; might be useful to touch this). Or you could even NOP/JMP som...
by Administrator
Sat Aug 06, 2016 12:29 pm
Forum: MicroMacro general & support
Topic: how to hold multiple keys at once
Replies: 8
Views: 1261

Re: how to hold multiple keys at once

My best guess is it has something to do with how the game is reading the key input. I've seen a ton of games that use GetKeyState() or GetAsyncKeyState() for modifiers (Shift, Control, Alt) and Enter. It is poor form on their part, but it's functional. These functions are built into the win32 librar...
by Administrator
Wed Aug 03, 2016 6:49 pm
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 8955

Re: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

Ah, yeah. I failed to rebuild the x64 binary on that package. Because of that it's outdated. But because there's been so many bug fixes and such, I've decided to increment the version number and re-uploaded the 1.94 packages. Try that.
by Administrator
Wed Aug 03, 2016 1:11 pm
Forum: Everything else
Topic: player direction
Replies: 3
Views: 1022

Re: player direction

I think I would probably go with the first option, as it seems to represent a unit vector more easily, which you can then convert to an angle (in radians) using sine & cosine, as we did in RoM.
by Administrator
Wed Aug 03, 2016 12:56 pm
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 8955

Re: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

Should have been in for some time. It's in the process module, so filename = process.getModuleFilename(procHandle) The process handle should, of course, be obtained by calling process.open(). local windowId = window.find("Untitled - Notepad"); local procId = process.findByWindow(windowId); local pro...
by Administrator
Tue Aug 02, 2016 11:23 pm
Forum: Runes of Magic
Topic: bad argument #1 to 'upper'
Replies: 4
Views: 700

Re: bad argument #1 to 'upper'

Seems like one of the keys you've set in your settings is invalid, but that's my first guess.
by Administrator
Tue Aug 02, 2016 8:57 am
Forum: Runes of Magic
Topic: bad argument #1 to 'upper'
Replies: 4
Views: 700

Re: bad argument #1 to 'upper'

What's on line 307 of that file for you? Have you made any modifications?
by Administrator
Sun Jul 31, 2016 8:35 pm
Forum: Announcements
Topic: MicroMacro HTTPD mini-server library; adding web-GUI to your scripts
Replies: 6
Views: 8955

MicroMacro HTTPD mini-server library; adding web-GUI to your scripts

Today, I'm releasing what I've got in place of the new HTTPD library that will come with MicroMacro. Essentially, it allows you to run a small (yet powerful) web-server right in your script with only a few lines of code. The purpose of it is to allow a simple interface for interacting with your scri...
by Administrator
Thu Jul 28, 2016 11:24 am
Forum: MicroMacro general & support
Topic: MM2 reading files
Replies: 4
Views: 1344

Re: MM2 reading files

Thanks for pointing that out. I'll have to fix that after work. And one of these days I need to post here about the new library I've got going and/or maybe do a short video demo (it's super exciting, I promise! I just haven't had time nor the energy to finish it). I don't believe there's any way to ...
by Administrator
Sun Jul 24, 2016 10:51 pm
Forum: MicroMacro general & support
Topic: how to hold multiple keys at once
Replies: 8
Views: 1261

Re: how to hold multiple keys at once

Does it catch the shift and the enter by themselves, yet fail to see them in combination? Or does it just not see enter at all?
by Administrator
Sun Jul 24, 2016 9:34 pm
Forum: MicroMacro general & support
Topic: how to hold multiple keys at once
Replies: 8
Views: 1261

Re: how to hold multiple keys at once

I believe that depends on the specific way that application tries to read inputs. I'd try using the virtual methods instead. This jams the synthetic keypresses into the target application's input queue.
by Administrator
Sat Jul 16, 2016 3:52 pm
Forum: MicroMacro general & support
Topic: OpenCV and MicroMacro
Replies: 51
Views: 8857

Re: OpenCV and MicroMacro

The shutdown issue should be fixed in one of my latest commits. Since then I've not had any issue with it, and in fact have been working on a neat little side project that I'll discuss more soon.