Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Cory

  1. I believe the best way to do this is to use the Windows Controls commands. You can send a mouse-click event directly to the control. See the Get Control section of the help file.
  2. https://www.onlinehexeditor.com/ This is cool!
  3. I forgot your last question. You can open it with any hex/text editor. I use UltraEdit. I've heard many use NotePad++. You can see much of it in any text editor but only the parts that are plain text. A hex editor will allow you to see what's inside. Below is what the beginning of my file looks like. Left to right hex address, hex values, ASCII representation. You can see much plain text. 00000000h: 4D 45 A0 0F 00 00 B8 9E 03 00 F1 02 00 00 40 06 ; ME ...¸ž..ñ...@. 00000010h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000020h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000030h: 00 00 00 00 29 C2 11 DD 6E 25 E5 40 CE CD 22 0E ; ....)Â.Ýn%å@ÎÍ". 00000040h: D0 4F 99 12 78 25 E5 40 CE CD 22 0E 2A F9 3A 2D ; ÐO™.x%å@ÎÍ".*ù:- 00000050h: 78 25 E5 40 00 00 00 00 00 00 00 00 00 00 00 00 ; x%å@............ 00000060h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000070h: 00 FF FF FF 00 00 00 00 00 00 FF FF FF 00 00 00 ; .ÿÿÿ......ÿÿÿ... 00000080h: 00 00 00 FF FF FF 00 00 00 00 00 00 FF FF FF 00 ; ...ÿÿÿ......ÿÿÿ. 00000090h: 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 FF FF ; .....ÿÿÿ......ÿÿ 000000a0h: FF 00 7B 5C 72 74 66 31 5C 61 6E 73 69 5C 61 6E ; ÿ.{\rtf1\ansi\an 000000b0h: 73 69 63 70 67 31 32 35 32 5C 64 65 66 66 30 5C ; sicpg1252\deff0\ 000000c0h: 64 65 66 6C 61 6E 67 31 30 33 33 7B 5C 66 6F 6E ; deflang1033{\fon 000000d0h: 74 74 62 6C 7B 5C 66 30 5C 66 6E 69 6C 20 54 61 ; ttbl{\f0\fnil Ta 000000e0h: 68 6F 6D 61 3B 7D 7D 0D 0A 5C 76 69 65 77 6B 69 ; homa;}}..\viewki 000000f0h: 6E 64 34 5C 75 63 31 5C 70 61 72 64 5C 66 30 5C ; nd4\uc1\pard\f0\ 00000100h: 66 73 31 36 20 0D 0A 5C 70 61 72 20 7D 0D 0A 00 ; fs16 ..\par }... 00000110h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000120h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000130h: 00 7B 5C 72 74 66 31 5C 61 6E 73 69 5C 61 6E 73 ; .{\rtf1\ansi\ans 00000140h: 69 63 70 67 31 32 35 32 5C 64 65 66 66 30 5C 64 ; icpg1252\deff0\d 00000150h: 65 66 6C 61 6E 67 31 30 33 33 7B 5C 66 6F 6E 74 ; eflang1033{\font 00000160h: 74 62 6C 7B 5C 66 30 5C 66 6E 69 6C 20 54 61 68 ; tbl{\f0\fnil Tah 00000170h: 6F 6D 61 3B 7D 7D 0D 0A 5C 76 69 65 77 6B 69 6E ; oma;}}..\viewkin 00000180h: 64 34 5C 75 63 31 5C 70 61 72 64 5C 66 30 5C 66 ; d4\uc1\pard\f0\f 00000190h: 73 31 36 20 0D 0A 5C 70 61 72 20 7D 0D 0A 00 00 ; s16 ..\par }.... 000001a0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 000001b0h: 00 00 00 04 4D 61 69 6E F7 14 00 4A FA 46 00 F0 ; ....Main÷..JúF.ð 000001c0h: C5 2E 02 04 D4 46 00 0C D4 46 00 70 F7 FE FF FF ; Å...ÔF..ÔF.p÷þÿÿ 000001d0h: FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ÿ............... 000001e0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 000001f0h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000200h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000210h: 00 00 00 00 00 00 00 00 00 CE CD 22 0E 07 A1 A9 ; .........ÎÍ"..¡© 00000220h: E4 1D 29 E5 40 CE CD 22 0E 55 52 4C 00 00 00 00 ; ä.)å@ÎÍ".URL.... 00000230h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000240h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ................ 00000250h: 00 00 00 00 FF FF FF 00 00 00 00 00 00 FF FF FF ; ....ÿÿÿ......ÿÿÿ 00000260h: 00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 FF ; ......ÿÿÿ......ÿ 00000270h: FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ; ÿÿ.............. 00000280h: 00 00 00 00 00 00 00 00 00 00 FF FF FF 00 00 00 ; ..........ÿÿÿ... 00000290h: 00 00 00 FF FF FF 00 00 00 00 00 00 FF FF FF 00 ; ...ÿÿÿ......ÿÿÿ. 000002a0h: 00 00 00 00 00 FF FF FF 00 42 6F 64 79 20 4C 65 ; .....ÿÿÿ.Body Le 000002b0h: 6E 67 74 68 20 42 65 66 6F 72 65 00 00 00 00 00 ; ngth Before.....
  4. YOu might also try importing that corrupt file. I would also compare the size. I've seen corruption where the size of the file is small meaning most of the data was lost making pointless to try and restore.
  5. Did you have backup enabled on MEP? It's enabled by default. You could find one of those files and see if they can be restored. You can find the path in the Preferences > General > Backup.
  6. I don't know for sure but I believe it's a proprietary format, or at least not a common format. You should contact ISS Support. I doubt anyone here can help you.
  7. Start by seeing what the string looks like on your clipboard by pasting it into a text editor. You will want to use Variable Modify String commands to get the text into your desired variables. Then it's like what kunkel321 said. You will want to activate the web window and tab through the fields, pasting each variable as you go.
  8. If you use ASCII File Process it splits the variables for you on the delimiter, a comma. There is a Split command. Please read the help file. It's called "Split String", you can't miss it. Last question is correct. ASCII file process reads line by line like Text File Process, but it splits the row by the delimiter and places them in an array variable of your choice.
  9. I'm sorry, no. That was a long time ago. But the documentation in the help file should be adequate.
  10. I recommend one not use T variables. Make your own variables with useful names. The 4 basic variables are just to help people transition macros from older versions, 3, where one didn't have the ability to create named variables. And when you do, make sure to make it an array if an array is needed with the appropriate number of elements.
  11. I would have used the Script Language Parameters field, but whatever works for you.
  12. Whenever a need gets as tricky as this in MEP, I use a different approach or a different tool.
  13. cldcp00 maybe you could just explain how you got it to work. I don't remember on VBS but in .NET application one passes the command line parameters to the program with each separated by spaces. If the item needs spaces, then enclose in quotes. Then when the program runs they're available in the app using My.Application.CommandLineArgs. This will be an array of string. Each can be accessed like My.Application.CommandLineArgs(0) and My.Application.CommandLineArgs(1). They're zero based. I'm VBS is similar.
  14. If all else fails, you could try a pixel scan with an external script. Another thought is you don't need to move the mouse to get the pixel colors. I wouldn't. I'd scan until I found the correct color then click the mouse at those coordinates. Sorry. I know it still doesn't help any of your other slowness issues.
  15. I don't think I'll be much help, but I had one thought. What is the performance like of that macro on a real Windows 10 machine of the same version (E.G. 1903 (current))? This will help you determine if it's a VM/real issue. Another thought. Run it as an admin. I doubt it will make any difference, but it's quick to try.
  16. One thing I often see suggested it to run MEP with administrator privilege. Have you tried that? There are some posts that describe how to someplace in this forum.
  17. BTW if the path is unique, you can use the clipboard text to activate your macro. E.G. "C:\Desmond Music\Music Library 2018"
  18. I suspect you would be best off using the Copy Path feature in Windows File Explorer. Home tab, Copy Path. Click here.
  19. When one copies something to the clipboard, the type of data is detected and it's stored in a spot for the type of data. So if you copy a graphic, then it's stored as bitmap data. In the case of a file in Explorer or a picture, there is nothing set in the text bucket of the clipboard. When MEP sets a text variable, it uses a method like Clipboard.GetText. And since File Explorer din't set ant text, you get nothing. Which is what you see in MEP. This is the same for most apps. Copy a file in File Explorer and go into Notepad and paste. Notice there's nothing pasted. It's the same issue. Depending on what you're trying to do, there are many different methods to get the file name. But they're too numerous to enumerate. If I knew more about what you are doing, I could make some suggestions.
  20. BTW, in Windows File Explorer one can right click the file with the Shift key depressed and choose "Copy as path" to get the files path. Another cool trick I've used for macros is to create a "Send to" item on the right click menu to send it to an empty folder monitored with MEP. Then MEP grabs it and does whatever I need to have done with it and deletes it after.
  21. I recommend using code boxes when posting code. Also a small sample file helps us. Might get you more answers quicker the easier you make it for others. It works for me. If you're trying to copy a file object in Windows File Explorer, this will not work. If that's not what you're trying to do, what is it that you're copying?
×
×
  • Create New...