|
Post by Steve on Jul 28, 2019 3:37:57 GMT
What has been added to the update?New Features:1. New Action 'File Copy' See www.turnssoft.com/conditions.html#filecopy2. New Action 'File Create' See www.turnssoft.com/conditions.html#filecreate3. New Action 'File Delete' See www.turnssoft.com/conditions.html#filedelete4. New Action 'File Hash' See www.turnssoft.com/conditions.html#filehash5. New Action 'File Move' See www.turnssoft.com/conditions.html#filemove6. New Action 'Remote' See www.turnssoft.com/conditions.html#remote See www.turnssoft.com/remote.htmlImprovements:1. Core base application .NET version has been upgraded to .NET 4.5.2 - This allows the application code base to use a greater level of functionality available within the framework - Windows 7 might need to update the .NET framework to version 4.5.2 ( docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies#net-framework-452) 2. Enforcement of TLSv1.2 for upgrade checking to minimousemacro.com4. STRING operator 'starts with' and 'ends with' added to string comparison options - 1 | IF | STRING VARIABLE | %date_dddd% | STARTS WITH | Sat | DEFINE STRING VARIABLE | %STRING%::%date_dddd%
5. Can now define up to 1000 of each internal STRING, INTEGER, BOOLEAN, and DECIMAL variables 6. Internal date variable %DATE_WEEKOFMONTH%, %DATE_WEEKOFYEAR%, and %DATE_QUARTER% have been added 7. Internal %HASH% variable added with the FILE HASH Action. HASH captures the file hash value returned 8. Internal %REMOTE% variable added with the REMOTE Action. REMOTE captures the incoming remote message sent from an MMM peer. 9. %CLIPBOARD% can now be defined by the DEFINE STRING VARIABLE action as an alternative to COPY TO CLIPBOARD 10. Condition IF FILE MD5 HASH has been replaced with IF FILE HASH with options for multiple hash types 11. .mmmacro file association has been reworked for inline Windows UAC
Fixes: 7. Fixed Keypress word output failing for parentheses, brackets, and some other special characters 8. Fixed 'Options - Macro Edit' replace feature (ctrl+alt+h). This has been replaced by an option selection
|
|
|
Post by zeak on Jan 27, 2020 21:57:40 GMT
any chance getting you to take a quick look at screen recognition (either text or image) when you get some free time.
|
|
|
Post by Steve on Jan 28, 2020 5:14:14 GMT
any chance getting you to take a quick look at screen recognition (either text or image) when you get some free time. Zeak do you mean something to detect changes in text or images on the screen other than the pixel conditions? Do you have an example on how this might look?
|
|
|
Post by zeak on Jan 28, 2020 22:18:00 GMT
01 Module ImageFunctions 02 Public Declare Function PrintWindow Lib "user32" Alias "PrintWindow" (ByVal hwnd As IntPtr, ByVal hDC As IntPtr, ByVal nFlags As UInt32) As Boolean 03 Public Function FindImage(ByVal ImageString As String) As Boolean 04 GetHandle() 05 Dim Bitmap As Bitmap = New Bitmap(620, 334) 06 Dim g As Graphics = Graphics.FromImage(Bitmap) 07 Dim hwndb As IntPtr = g.GetHdc 08 Dim bool As Boolean 09 PrintWindow(hWnd, hwndb, 0) 10 g.ReleaseHdc() 11 Dim Image As Bitmap = New Bitmap(ImageString) 12 Bitmap.Save("Print.bmp") 13 For I = 0 To Bitmap.Width - 1 14 For J = 0 To Bitmap.Height - 1 15 If Bitmap.GetPixel(I, J) = Image.GetPixel(0, 0) Then 16 bool = Compare(I, J, Bitmap, Image) 17 If bool = True Then 18 Return True 19 End If 20 End If 21 Next 22 Next 23 End Function 24 Public Function Compare(ByVal X As Long, ByVal Y As Long, ByVal pixel As Bitmap, ByVal pixela As Bitmap) As Boolean 25 Dim xx, xy As Long 26 Dim cx As Long = X 27 Dim cy As Long = Y 28 Dim exitf, Match As Boolean 29 For cy = Y To Y + pixela.Width - 2 30 For cx = X To X + pixela.Height - 2 31 If xx >= pixela.Height - 1 Then 32 xx = 0 33 xy += 1 34 ElseIf xy >= pixela.Width - 1 Then 35 Compare = True 36 exitf = True 37 Exit For 38 End If 39 On Error Resume Next 40 Dim pixel1 As Color = pixel.GetPixel(cx, cy) 41 Dim pixel2 As Color = pixela.GetPixel(xx, xy) 42 xx += 1 43 Match = (pixel1.R = pixel2.R) And (pixel1.G = pixel2.G) And (pixel1.B = pixel2.B) 44 If Match = False Then 45 exitf = True 46 Exit For 47 End If 48 Next 49 If exitf = True Then 50 Exit For 51 End If 52 Next 53 Match = False 54 If Compare = True Then 55 clickx = (cx - X) / 2 56 clicky = (cy - Y) / 2 57 End If 58 End Function 59 End Module www.dreamincode.net/forums/topic/125431-find-image-on-screen/I've been thinking if you select a image from file, and then select a range on the screen for it to look for that image. Actions could be to click in the middle of the found image or to output its location. or for the text one, you type what text you are looking for and select a range on screen for it to look. then perform the same type of actions as find image.
|
|
|
Post by Steve on Feb 21, 2020 22:49:24 GMT
the OCR is actually pretty cool. I might actually take a bit of time on this one. It could really add some functionality to our macro's. Thanks again zeakAnyone want to help me write it? lol no really...
|
|
|
Post by cyberchipz on Feb 26, 2020 1:32:28 GMT
So, I guess it's about time I asked this, what are you using to Create your code, and to be sure, it's BASIC right, or a specific flavor? And does it compile or just run from an integrated environment.
I mean to say, that I'm definitely fluent in BASIC, I understand what you're up to immediately... Could I also ask what reference material you have on the system calls.
I believe I could be of help in this little project, even MMM, if Steve was willing... I would just need to know what you're using, so I could see what I have, or need to get. I mean, I've really fallen in love with this little project and it would be an honor to be able to help! Anyway, let me know, and I will definitely send some code for approval or examination to see if I can produce something useful.
I can say with some certainty it would take me a while to learn Steves methodologies in the MMM program; but, it doesn't look too complicated. :-)
I welcome any thoughts on this! Naturally, I would have to prove myself! That's a given.
TTY L8r)
Chip.
|
|
|
Post by Steve on Feb 26, 2020 5:58:08 GMT
So, I guess it's about time I asked this, what are you using to Create your code, and to be sure, it's BASIC right, or a specific flavor? And does it compile or just run from an integrated environment. I mean to say, that I'm definitely fluent in BASIC, I understand what you're up to immediately... Could I also ask what reference material you have on the system calls. I believe I could be of help in this little project, even MMM, if Steve was willing... I would just need to know what you're using, so I could see what I have, or need to get. I mean, I've really fallen in love with this little project and it would be an honor to be able to help! Anyway, let me know, and I will definitely send some code for approval or examination to see if I can produce something useful. Hi Chip, yep its Visual Basic targeted specifically at the .NET v4 framework. I do all my development and compiling within Visual Studio. I'll PM you if you don't mind and hopefully we can get something sorted out. It would be great to have you contribute.
|
|
|
Post by cyberchipz on Feb 27, 2020 7:19:40 GMT
I believe I already have that... old version. The newer ones got more expensive... If I don't, or can't find it, I'll certainly pick it up when pension starts... I can't live without being able to code, and I love how .net let's us mix and match languages. I'm also proficient in MSBasic... I write... (cough) have written... a lot of code in Excel and Access. Though TBH I'm a bit rusty... have to look up words and syntax online a lot when I first start after a break like this.. about two years. But, it's second nature to me. but, I love Visual Basic and it's quirky little IDE.
I've written quite a few 1000s of line solo novels. lol Thank goodness for my prolific commentary... last time I picked up an old piece of code... I thanked me for making so many comments. But, it felt like I was watching the movie Memento which if you haven't seen, I highly recommend... a bizarre piece of work about a guy with a brain injury which prohibits him from making new memories.. he tattoos information onto himself to remember his "goals" and leaves himself prolific notes. but... well no spoilers... I will say it's a hard watch at time... because it is unconventional... the movie runs from the end... to the beginning... and it's quite the ride. Most people either love or hate it. I love it. Thought a couple of time about cutting and pasting it into the right order... lol but, it does capture in the viewer the sense of memory loss. Warning: requires at times *intense* concentration to follow! One might want to take notes... ;-)
BTW, I recall reading some issues with v4 of .net... some issues with security... in fact any 32bit is considered 'unsafe'. I could try to find that info, if you are not aware... still, a *lot* of people still use it. But, we've (Microsoft) come a long way in isolating code while running in just the last two years. Plus, they've almost completely handled the channel crosstalk security issue in the process and motherboard issues that the Russians use to capture code/passwords/state changes internally.
I'm a bit worried about this game I play... one thing it does, weird... is *sometimes* when playing it, using MMM... when a Message Prompt appears... the game is detecting it, and acts like it received something. I noticed this because while playing... the game will, when the user clicks an action, or the character on screen does something, the game emits a little sound... (normal behavior) like a grunt of effort. But, *sometimes* while running MMM, when code pops a message prompt... the game will *grunt*. It's intermittant. Meaning, it doesn't happen all the time; but when it does, it doesn't stop.. until the server boots me for a restart and I have to reload. It will disappear for a while... and *can* return later... sometimes not at all... but something definitely up with that! Not sure... the game may have access to some system call or something it's using to detect activity... probably mostly legit activity; but, definitely a concern for me. However, my justification is, to them, I have a (cough) legit process running in the background while I play... and it gives me messages to handle about that process... I think that's vague enough. None of their business...
Again... Just because you're paranoid, it doesn't mean they're *NOT* out to get you! ;-) But, I figure they like us spending money... though I'm very frugal... so maybe they overlook it. But, when I'm doing something that they EXPECT me to sit and click for an hour... (HA) and I use MMM... well. If they permanently kick me... I'm willing to stop playing. Just can't handle that kind of boredom! lol
|
|
|
Post by zeak on Aug 4, 2020 22:04:38 GMT
Hi Steve, It seems that since I have updated to version 8.0, I am getting three copies of MMM open on windows start instead of the usual one. I have checked all the settings in MMM and my system startup settings and I cannot see anything out of the ordinary. MMM is set to startup from my Start Menu/Programs/Startup folder due to being restricted and unable to use MMM's in-program startup with windows. in the Start Menu/Programs/Startup folder, I only have shortcuts for the programs that I wish to open. but when I have a look at this once the windows has finished starting up, for some reason there is a non shortcut copy in the folder. I'm not sure what can be done or even if it's MMM that is causing it.
|
|
|
Post by Steve on Aug 5, 2020 2:26:20 GMT
Hi Steve , It seems that since I have updated to version 8.0, I am getting three copies of MMM open on windows start instead of the usual one. I have checked all the settings in MMM and my system startup settings and I cannot see anything out of the ordinary. MMM is set to startup from my Start Menu/Programs/Startup folder due to being restricted and unable to use MMM's in-program startup with windows. in the Start Menu/Programs/Startup folder, I only have shortcuts for the programs that I wish to open. but when I have a look at this once the windows has finished starting up, for some reason there is a non shortcut copy in the folder. I'm not sure what can be done or even if it's MMM that is causing it. Weird The only thing I can think of is that maybe you have 'Startup enabled' within the MMM settings, a shortcut in your startup folder, and the saved 'file association' exe somewhere that triggers a startup also. Check MMM settings, maybe clear them all including file association (settings - uninstall), tack down exactly what you have in your startup locations (msconfig), and go from there.
|
|
|
Post by zeak on Aug 5, 2020 6:50:12 GMT
Weird The only thing I can think of is that maybe you have 'Startup enabled' within the MMM settings, a shortcut in your startup folder, and the saved 'file association' exe somewhere that triggers a startup also. Check MMM settings, maybe clear them all including file association (settings - uninstall), tack down exactly what you have in your startup locations (msconfig), and go from there. So everything within MMM is as it should be, Startup enabled is turned off, I have the File association turned off. And unfortunately I do not have access to msconfig on these computers, we run thin clients with remote access setups.
|
|
|
Post by Steve on Aug 9, 2020 5:42:12 GMT
Hmmm ok. MMM version 8 did change the way it works with file association to bring in UAC when applying and removing the settings but has not changed startup. Maybe it's something with your user profile. You say your using thin clients. Does it happen when you log in on a different client? I guess I'm leaning toward maybe some issues with your windows user profile..? hard to say really.
|
|