Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Cory

  1. You shoudl be able to put all three chunks together and have it work. Might be a small adjustment needed. And a "Wait for window" between chunks 1 and 2. I use MEP Windows Controls commands in the file-saveas. I highly recommend you learn these as soon as you can. I put off using them because I thought they were advanced and difficult, but they're not. And they give one more capabilities, make your code run so much smoother and everything. Win win win. I kicked myself for a week when I realized I would have save hundreds of hours had I learned them earlier.
  2. I gave you the code to export 4 messages ago. Copy this and paste it into a blank macro to examine it. <VARIABLE SET INTEGER Option="\x00" Destination="%Delay%" Value="300"/> <DELAY Flags="\x02" Time="%delay%"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="%delay%"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <REPEAT START Start="1" Step="1" Count="5" Save="FALSE"/> <TEXT TYPE Action="0" Text="<ARROW DOWN>"/> <DELAY Flags="\x02" Time="%delay%"/> <END REPEAT/> <TEXT TYPE Action="0" Text="<ENTER>"/> Or distill it into this: <KEYSTROKE SPEED Delay="200"/> <TEXT TYPE Action="0" Text="<TAB><ENTER><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN><ARROW DOWN><ENTER>"/> But if you type more after this, which you shouldn't, then you might want to change the keystroke speed back.
  3. Don't try to put my code in your macro. Just example it and make your own commands. Or take all of the code I've send and put it in one new macro file. You will need to do a 'save" command where it will prompt you to create all the variables. If at that point you don't understand a command, then ask me which. Oh! after the command to navigate to the web page, you need a delay. Now you know there's the display text called "command text" and the actual commands, right? I gave you both. Line for line they correspond. I just added the command text for ease of reading here. If you don't realize that the command text isn't the real commands, then in the Script Editor click the view menu and check the box for Direct Editor. Those are the actual command text strings. Not many people edit them directly. But when you copy and paste commands, the code in the direct editor is what's being copied and pasted unless you choose to right click a command and select "Copy command text". So in the normal edito you will see: Text Type (Simulate Keystrokes): Howdy But the actual command string is: <TEXT TYPE Action="0" Text="Howdy"/> If you copy the later, from here, you can paste it into your macro.
  4. The next thing I would do is create a "Get Control" for the file name text field control. Then wait for control to exist, then set the control text to the file you want. Duun. Beware that the SaveAs box might go so fast you won't see it. Make sure to use these options: I haven't tested it, but it should look something like this: Get Control: (CHROME.EXE) Using z-order -> %FileNameField% Get Control: (CHROME.EXE) Using z-order -> %SaveButton% Wait for Control until %FileNameField% "Exists" Text Type (Send Text Directly to Control %FileNameField%): c:\MyFileName.html Mouse Click on Control %SaveButton% <GET CONTROL Flags="1" Program_Name="CHROME.EXE" Class="#32770" Title="Save As" Control="\"DUIViewWndClassName\",\"1\",\"DirectUIHWND\",\"1\",\"FloatNotifySink\",\"1\",\"ComboBox\",\"1\",\"Edit\",\"1\"" Variable="%FileNameField%" Caption="Save As" Partial="FALSE" Wildcards="FALSE"/> <GET CONTROL Flags="1" Program_Name="CHROME.EXE" Class="#32770" Title="Save As" Control="\"Button\",\"22\"" Variable="%SaveButton%" Caption="Save As" Partial="FALSE" Wildcards="FALSE"/> <WAIT FOR CONTROL Control="%FileNameField%" Option="\x00" Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/> <TEXT TYPE Action="2" Control="%FileNameField%" Text="c:\\MyFileName.html"/> <MOUSE CLICK ON CONTROL Clicks="\x01" Control="%SaveButton%" Button="\x00" Center="TRUE"/>
  5. So now you're nearly set. Do what I did in my first post then do the part above. All that's left is saving the file. Oh, in the code above you can reduce the delay amount in the first line. Also you could eliminate the delays and use Keystroke Speed instead. I wanted to be able to mess with them individually for testing. Also then you could consolidate all the text type commands into one command then.
  6. <VARIABLE SET INTEGER Option="\x00" Destination="%Delay%" Value="300"/> <DELAY Flags="\x02" Time="%delay%"/> <TEXT TYPE Action="0" Text="<TAB>"/> <DELAY Flags="\x02" Time="%delay%"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <REPEAT START Start="1" Step="1" Count="5" Save="FALSE"/> <TEXT TYPE Action="0" Text="<ARROW DOWN>"/> <DELAY Flags="\x02" Time="%delay%"/> <END REPEAT/> <TEXT TYPE Action="0" Text="<ENTER>"/> Variable Set Integer %Delay% to 300 Delay: %delay% milliseconds Text Type (Simulate Keystrokes): <TAB> Delay: %delay% milliseconds Text Type (Simulate Keystrokes): <ENTER> Repeat Start (Repeat 5 times) Text Type (Simulate Keystrokes): <ARROW DOWN> Delay: %delay% milliseconds End Repeat Text Type (Simulate Keystrokes): <ENTER> THis is both in code and the command text. Once at the Bookmarks page, this works perfectly for me. Can you try this?
  7. This seems like a lot of effort and time to export the bookmarks. Why write a macro to automate something you're going to do once? Also when you log back into Google after reinstalling, all your bookmarks will still be there if you have sync on.
  8. You don't understand. Open your bookmark manager. Look at the address. All Chrome settings and such ARE a web page with the protocol "chome://". It's not going out ot the web, it's just pointing to its own internal web server. Why can you just try it? Look here. Go to the bookmarks manager and look at the address. Look below. See how the URL is chrome://. If you use "settings" instead of "bookmarks" you get to the Chrome settings. Try it. You're navigating to a web page. I love how people spend so much time writing about how they don't understand and are not willing to try my suggestion instead of taking 30 seconds to do as I say. 🙂 Trust me. Open MEP and create a test macro. Copy that text. Paste it in the editor. Click the debug run button. Chrome should pop up at the bookmarks page.
  9. If your program supports Tab or CSV import, I'd process the file with Text File Process. Each line that begins with something I want, like the URI and title, I'd just write those all out to the Tab/CSV file. But I'm unsure what formats your destination program will accept. BTW, most browsers will automatically import bookmarks from other browsers on your machine. You might want to look at the import features of your destination app if it's a browser.
  10. Once in the Bookmarks page, I see the key sequence as tab, enter, down arrow, down arrow, Enter. From then on it's a normal File Save As dialog. I recommend you use Windows Controls commands in MEP from there if you want to change anything. Remember you don't need to navigate to a folder, you can simply put the whole path in the File Name field.
  11. Would you like me to make you a screen recording off how to paste commands in MEP Script Editor?
  12. Since you didn't specify, I assumed you were going to be importing it into a separate instance of Chrome. What format is expected? It is MEP code. Open MEP macro editor. Paste that in. et voila, a command is born. That command will navigate you directly to the chrome web page that is your bookmarks manager. Why use buttons when you can simply load it like any web page.
  13. Click here. 2004 was available as of 5/27, 99 days ago. Perhaps you have security software that's causing your Windows Update to fail. 2004 was an optional install for me, not a critical update done automatically. I think later it was forced. But I'm not sure. Also don't trust it when it says "You're up to date." and "Last checked" a couple days ago. Many times I've clicked "Check for Update" and 'et voila' now magically it finds one or more that have been available for over a week. I check manually all of my machines this way once a week and I frequently find updates this way. In fact, that's why I do it.
  14. You could also access the file directly. "C:\Users\[userprofile]\AppData\Local\Google\Chrome\User Data\Default\Bookmarks" (no file extension) It's a JSON file so copy it wherever you want. You might be able to just drop it into the destination folder to overwrite it. Or you could use TextFile Process on it to get the bits you want. BTW, this is a cool online JSON viewer.
  15. I recommend you go to the bookmarks URL. <WEBSITE URL="https://chrome://bookmarks/" Wait="FALSE" Default_Browser="TRUE" NoEmbeddedVars="FALSE" _IGNORE="0x000C"/>
  16. I like Samrae's suggestions that posted while I was typing about disabling anti-virus and security software. Turn off as many things as you can to see if a running app is fighting you. Also try running in safe mode. If it doesn't happen there, it's likely a conflict with one of the running processes.
  17. I have not noticed anything abnormal but, I don't do mouse moves. I still experience a problem when my computer has been inactive for a spell that the first time I activate a macro, there's a delay in execution. A second or more. But then it's fine. I also have a long-standing problem of what I call "molasses" where my machine slows to a crawl and doesn't become responsive again until I kill the MEP process. But apparently it's unique to me. Neither of these sound like your problem and my macros are running well.
  18. You're far from the most recent version. Minne is W10 pro version 2004 build 19041.450. I think this is the most recent.
  19. You're welcome. MEP doesn't support Unicode, so years ago I had to process a UTF-16 file and what I did was to delete the first three bytes and then take every other byte. Since the text was ASCII, Unicode has the same code page essentially so the first byte of the two bytes could be ignored. I learn much about Unicode then.
  20. Duh. I shoudl have done this first. I created a test file in Notepad and saved as UTF-8 with BOM? See how it starts with 0xEF, 0XBB, 0XBF? Click here for an explanation of BOM.
  21. I dont' think your file is ASCII, I think it's UTF-8. Those first characters might be the BOM (Byte Order Markers). Look at your file with a hex editor. I use UltraEdit but it's money, so try Notepad++. Don't forget Notepad was upgraded to support Unicode, and by default is saves to UTF-8 now, not ASCII. In Notepad go File > Save As > and look in the lower right and tell me which encoding you have selected. I'm guessing it's UTF-8 with BOM.
  22. How about an accessory macro keyboard. Gamers and professionals who use complex programs love 'em. Some add rows of keys above the normal keys in a keyboard, sme have a separate pad of 16 or so keys. Many accessibility oriented. Some a USB "key strips". The keys can be programmed to do anything and some even have caps that are backlit that can be removed so you can make your own art and drop it in printing to a transparency with a laser printer. Also there are many great keyboards, mice, and such for impaired people. I was looking at the foot operated mice earlier today. I'm not suggesting it in this case, ubt just letting you know there are some amazing things. And recently I read of a company that has a reasonably priced, less than $200 I think, eye motion tracker and input device where one can point the mouse cursor by looking at something on the screen and long-blinking to click. Anyway, there's tons of great hardware and the ones with programmable keys could be programed to fire MEP macros.
  23. I've made posts here ages ago about MEP and UWP when I first discovered this. You might search and check out some of the discussions back then. Not only does it not 'hear' it can't send things like commands to controls or type. MEP was designed to work with the traditional WinForms architecture, and UWP is a completely new technology. I'm not sure if it's just that it doesn't have the facilities, or, as some has suggested, that UWP apps are more protected to guard against malware and such that often operate in the same ways MEP does. I just know the if it's a UWP, there's nothing I can do in it with MEP.
  24. Are they UWP applications? If so, MEP doesn't work with them.
  25. 5 macros, activations Ctrl+Keypad1 through 5. Or maybe scope limit it and use F1 though F5. It would depend on what keys are available in the Db app.
×
×
  • Create New...