Jump to content
Macro Express Forums

Cory

Members
  • Posts

    4,207
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by Cory

  1. I thought my "e" solution was different than Samrae. And this is the point, it's all confused with multiple posts for what is essentially the same goal. I regret spending time offering my thoughts.
  2. Is my post invisible? "The one thing I see that looks wrong is the alternate function for e. I think it shoudl be just e. In Notepad if I want to open "Save As" I type Alt, f, then a. Note that it's not alt+f. and not alt-a. Once the menu is active, you don't use the alt key anymore. That's only in dialog boxes. "
  3. Sebastian I find your multiple posts for the same issue confusing. We're trying to help, but splitting one topic into 3 things gets confusing. I have responded to your other threads. It seems you don't appreciate the time I'm putting into helping you.
  4. Why are you making so many different threads for the same topic? I don't have your program, can you produce this problem in Notepad? The one thing I see that looks wrong is the alternate function for e. I think it shoudl be just e. In Notepad if I want to open "Save As" I type Alt, f, then a. Note that it's not alt+f. and not alt-a. Once the menu is active, you don't use the alt key anymore. That's only in dialog boxes.
  5. Ah. In the future it would be nice to know that you edited your post and that there was no question. You can also have your post removed. Also you cna reply to your own post with a new message. "Never mind guys, I figured it out". I see you wrote "later" but I didn't take that to mean an edit.
  6. Instead of graphics you can copy the text of the commands and paste them into a code box here. There's an option for the display text and the actual code. Then people can paste the code into their macros. Also creating a macro that demonstrates your problem with a common program like Notepad will get you more answers quickly. Don't include your whole macro, just distill down the problem into a simple demonstration. As few lines of code as possible. BTW, half the time I would do this I would figure out my problem before posting. Usually find out the problem was something else.
  7. You're posting to tell us you don't have a question?
  8. I only have one menu that I would remember the order on, and mine seems fine. I do remember long ago an issue where they would get disorganized, but I can't remember any details. Maybe check the forum and see if you can find it. Maybe there's some answers there. Did you make any recent changes? What version are you using? Did you recently update MEP? Rhetorical. Just some things to consider. If you don't have a recent MEP backup, look to your regular backups. I like keeping my MEX files in a cloud synchronize folder which also gives me easy access to previous versions. Also nice because every change is immediately backed up. But I also have an online backup and external hard drive backup that fires daily. I'm sure you must have something similar. Also check to see if you have a previous version in Windows 10. Just right click the folder.
  9. Maybe it's only capturing the executable name. Try adding the path. Open that "Activate or Launch" command and copy the program part. Type Win+r and paste it into the run dialog box. If it doesn't work there, it's not going to work in MEP. I'm unsure of this as I usually manually specify the path and name of the executable. On another note, check to see what the command line parameters are for your program. You might be able to command an export from there.
  10. Automating web pages with MEP is fraught with troubles. There are many automation extension like iMacros for Chrome that work much better. You need a program or extension that can work with the controls directly in the DOM to make your automation more reliable, simpler, and faster.
  11. Hans I suggest in the future you create a new post for a new topic. As I recently explained, all commands that have a potential for failing should use the "Catch Error" commands. Whatever exception can be thrown by a command can be handled here without crashing the program. But you should also be putting to condition existence in a logic block. If Control Exists, Else.
  12. Yeah I was thinking about that later. Good you got a solution from Samrae.
  13. Not directly. You would need to insert the text then command the program though the steps to create a link, just as a user would. In Outlook I would TextType ctrl+k to pop up the "Insert Hyperlink" form then use controls to fill in the "Address" (URI) and "Text to Display" then controls again to close the box by sending a mouse click on the "OK" button or just TextType Enter. Actually you can access all the boxes with the Alt shortcut keys also. But the method varies from application to application. What is yours?
  14. An excellent suggestion Terry. A common application would make it easy for us to help. I could also give better instructions on how to make multiple virtual printers for the same physical printer to facilitate different default settings.
  15. I don't know how to change a date parameter in CR, but I imagine you open up some dialog box and change a value then close it. I would do this with MEP's Windows Control commands. Click the button, wait for the control to exist, enter a value in the control, send a click to the "OK button" control. Something like that. But are you sure you can't save a separate copy report with that 120 day plus value? If you can, that would make things simpler. There's a good tutorial of how to use controls in the sample macros I think. It uses Windows Calculator.
  16. There are many companies that do this sort of thing. You might consider doing a search and checking them out. Also have you asked SAP SE or the CR community if there's a way to automate natively with CR? What about these guys? They show a demo of printing on a schedule. Just some additional thoughts. I'm sure you can do it with MEP too.
  17. Please read my messages more carefully and think about how they apply to your condition. 1) I suggested you open CR report viewer with a parameter for the report you want. Notepad is an example attached of opening a file named test.txt. This is simpler than doing a file-open routine and I would want to try this first. Also if you have a file association for rpt, you can simply put the document name in the program/path name. I.E. if you can double click on the file in Windows and it opens, this will work. Then close the program after printing that report if needed. 2) I explained I would change the default printer with MEP then change it back when done. 3) Create a duplicate of the printer and set all the settings you need as defaults. Doing so only affects that virtual printer. So like LaserJet5500, LaserJer5500-doubleSided, and so forth. You can change printer settings in MEP also, but it's more code and time and more possibility of having a problem. Are you creating report templates or running reports with the viewer?
  18. Text Type Ctrl+P would be my guess, but I haven't printed anything from Crystal in a dozen years or more. In MEP it's best to use keyboard shortcuts or Windows controls. According to this page, Ctrl+P should start the print process.
  19. I've not used it. I know there are authentication settings that need to be made. Contact their support.
  20. I forgot to add that if the report viewer doesn't remember the last used printer, you can use MEP to change the default printer to the custom configured one then change it back.
  21. I found this also. $150 and you're done. Another trick to consider is to set up a printer in Windows for these reports with their defaults configured for your reports. That way when you print to it, you don't need to change any print parameters. I see one can generate reports, but I don't see any support for printing from the command line. In that case I'd have CR create the RPT files as I mentioned in my first post and then open the Report Viewer passing the RPT file in the command parameters with MEP. That way you avoid the whole "File open..." part. Then just have MEP do a CTRL+P to print. I think the last selected printer is remembered and you can simply click OK on the button control.
  22. You might not need MEP. I believe CR has command line properties that allow one to do many things including running reports. I would first look and see if that's the case and if so, use the Windows Scheduler to schedule the task every morning. If there's no option to directly print, you could create a report file in a batch file and then send it to the printer.
  23. FYI MEP can't access web form controls. The only control is the entire rendered area. I like to F6 and evaluate the URI. Maybe it contains something like "myaccounts" in the path or you can use the entire URI. Or there could be parameters in the query that can be used.
  24. Use the Catch Error command. In the Set Focus command you will see an "On Error" tab and the code for that error is 0x0028. I try to avoid Catch Error commands. I think it's better to test first with If If Control > Exists. You might also take care in how you do your Get Control command if you can see the control you want, but MEP doesn't see it. There are some technicalities one must understand in order to get this to work in some cases. The main part is MEP accesses controls by an address, and just because you see a blue 2020 Honda Civic and it looks like all the rest, the DMV sees them as distinct because they have different VINs.
  25. I suspect your "Challenges" are really you just getting people to write macros for you. 🙂 Anyway, Tom Sawyer, I wrote a macro for this ages ago and I was just working with Terry on it. I don't like how many people want to dive into the GUI on something like this, it's just a mess. It's much easier to export the macro information to a file and process the text file. Search and report on macro text.mex
×
×
  • Create New...