Jump to content
Macro Express Forums

Yehnfikm8Gq

Members
  • Posts

    397
  • Joined

  • Last visited

Everything posted by Yehnfikm8Gq

  1. Hi terrypin, I've been investigating other stuff which may explain some of what I found. I changed to Avast! AV yesterday. I noticed today that the behaviour I was getting on this thread became erratic. At times I could get nothing to activate my macro. While checking Avast I noticed a high number of detections. It had thrown all the macscr*.vbs files into its Virus Chest. I've set up exceptions but can't tell for the moment if that is going to be effective or was the cause of the behaviour. Mind you dumping to folders always seemed to activate the macro. On the general subject of Directory Modification I would not choose the Desktop for that Activation as I think Paul intimated. I would choose a folder solely for the purpose. All those mouse click, process, window title, system, clipboard text activations need very careful thought to avoid surprises. As I've commented before, anything like that I make the macro give 10 secs of audibles prior to any action so I can safely pause/save what I'm doing. Not necessary if you have a dedicated PC for automated processes.
  2. L is a heck of a lot easier for people to see what character it is. l and 1 can look very similar depending on font. Yes I use l but you will have to figure if that's a l or 1 or | or I a smudged !
  3. Apart from the multiple launches experienced in W7(!), the issue with XP is that I dragged a file in from a folder just like a file would appear out of the blue from the Net. If I initiate a new/delete/rename file using a Windows Explorer >>instruction<<, the macro will run. (edit) I have saved files off the Net into Desktop and a named folder. Directory Modification does not work in this situation with Desktop; it works fine with a normal folder. Paul, did you try dumping a file in or did you use a file instruction like New, Rename, Delete, Move? It could be W7 works exactly the same as XP regarding the desktop; it does not respond to dumps from the Net or file drags, just from Explorer instructions. If this was me, I would choose a folder instead of Desktop where the macro would run with a dumped file. I would immediately transfer the file to another folder which is not Directory Modification activated and import the file to Excel there. The transfer with the macro should prevent it running again since you cannot have two instances of one macro. If it's imperative Desktop is used, I suggest someone contact ISS - that was the expert comment I was thinking of in Post #3.
  4. Did you try Control+letter rather than using the Up and Down? This is an issue that Paul and I constantly bat around! My experience has been that the separate commands don't make a difference (and I've tried) whereas Paul is the opposite. Paul is more concerned with multi-use whereas I only have a couple of PCs. You don't mention the letter. Regardless of how ME behaves, you should try and avoid common hotkeys/shortcuts whether related to an application or Windows. I've also found repeating the Ctrl+letter command will work in some applications. For example, in Firefox Ctrl+L gives the location bar. Sometimes "Find" or "Quick Find" would be started instead. Adding a time delay was actually counter-productive. I repeated the Ctrl+L instruction immediately which improved reliability (same command twice). Where possible, I now use the "Web Site" command with the default browser instead.
  5. The switches for associations I can find no guide on the Net. All the guides I've found state the obvious and don't get into switches. For someone like mtomas looking for specifics I suspect they are on their own There's a plethora of variations depending on the file type and usage. The one terrypin mentioned "/e" I've never seen before. Whether W7 is any better by removing the "adjustability" I'll have to leave to those with it.
  6. Re Desktop, definitely does not work for me in XP using "Create, Delete, Rename". I did not try terrypin's macro as that specified a particular file. As I mentioned, ME seems to respond to particular files (Move file etc) but not for monitoring new files. That could be a bug. I would treat it as "one of those ME things" and move on! Let's call it a Desktop Null issue for XP!!
  7. I tried the Directory Modification last night. Only took a minute to write a macro. I found it worked fine when adding a file to a folder (using the Create, Rename, Delete). It does not work with the Desktop. Although ME can transfer files to and from the Desktop, it does not seem to include as a Folder as far as Directory Modification goes (Desktop is a special window rather than a folder). Perhaps some more expert comment is needed? (edit) I know that many people use Desktop for transferring or downloading files. Nothing wrong with that. I use a folder called "Downloads" which would work with Directory Modification. Using a single place for transfers makes it easy to track new files and run virus scans etc.
  8. I have yet to find a good guide to setting file associations, which is highly relevant to the file opening issue. I'm sure most people do what I do - browse file types to see the variations. In Windows "File Types" you do not seem to be able to edit sub-types eg htm being a sub-type of html. In Directory Opus you can edit both separately. I have always had problems with new updates to Firefox changing the file association. I tried forever to correct htm/html in Windows "File Types". No matter what I entered I could not double-click on an htm file and get it to open. Most times, as soon as I unchecked DDE, it reset back again. Right-click and "Open With" worked OK. My second PC worked fine. It was only when I looked into types in Opus that it was clear that Firefox had set the Open action to "DDE Command" rather than "Run as an Application". Works a treat now, although I have to correct every Firefox update.
  9. As Paul pointed out, the "instances" of an application is dependent on the application. Some applications only allow one instance, others many. If you only want one instance, sort it out with the application or use another application that suits. "Text Type" and keystrokes are at the heart of ME and work fine. To a certain extent, the apparent crudity of ME is what makes it work in most situations and easy to use.
  10. Use the Program Launch and Web Site commands. If the file type is common, txt, excel, doc you do not have to specify the application. File paths must be in quotes if there are spaces "" Program Launch "C:\my folder\spreadsheet1.xls" (Windows/Programs Command) Add a time delay or Wait for Window "spreadsheet1.xls" (partial match) Program Launch "C:\my folder\spreadsheet2.xls" Add a time delay or Wait for Window "spreadsheet2.xls" (partial match) Website: http://mypage.com (Internet Command) Add a time delay or Wait for Window "mypage.com" (partial match) etc If you want to open one application for all Excel files and one browser with new tabs for all pages that is more complicated. Try the above and ask again if you want something different.
  11. When your macro processes these commands: >route to XYZ Billing< >enter< there are some commands after that which are used to re-direct the email. The problem is in those commands. It's impossible to say where without seeing the code. For example: T1="XYZ Billing" (input from Prompt) If T1 Contains "XYZ Billing" send email to XYZ Billing english Else If T1 Contains "XYZ Billing" send email to XYZ Billing Else If T1 Contains "ABC Billing" send email to ABC Billing End IF Changing to If T1= (in other words, exact match) would cure the problem There are several possibilities
  12. It may depend on how the hotkey works. For example if you are comparing text a partial match can give different results to exact match. "If contains", "XYZ Billing" could select either; exact match for "XYZ Billing english" (or "XYZ Billing") will only select that one. If the macro selects from a list, it may choose the first in the list but if you specify an exact match it should make no difference. In file lists, the order would be: XYZ Billing XYZ Billing english XYZ BillingABC It may be different with German listings. I am not sure what you mean by command for "end of command". There is "Macro Stop" which stops the macro.
  13. It may well be that MEPro cannot do it. The fact that you've tried several methods would lead one to think you know what you are doing. I mentioned in a recent post that I could pick off specific items using AutoIt whereas MEPro could only pick off the Group Box surrounding four items. What does the Capture Window Control highlight? What information can you retrieve? The whole box? Line? Presumably you are checking the "Save the Control using the Text of the Control". I dug out the AutoIt External Script I used for the example I mentioned about. Very simple: $var = ControlGetText("Graph", "Performance History", "[CLASS:Static; INSTANCE:2]") ConsoleWrite($var) In the ME External Script dialog I saved the Console Output to %T[2]% and used that in ME. That simple action combined the deeper probing of AutoIt with ME's ease of data handling and display. You need AutoIt installed to have the above script run. AutoIt's InfoTool provides the necessary detail on the window. ps it would have been better to start this as a new thread
  14. That was an interesting question. I assume you actually want to type that phrase (such as for an instruction manual) rather than simulating Ctrl+letter. When you enter the Text Type dialog, check the "Use Clipboard to Paste Text" option. That will paste <CTRLD>letter<CTRLU> verbatim. That contrasts with the normal usage, where in Text Type you would click Control Down, the letter, Control Up with the default "Type Text Normally" selected. So with letter "C" it would copy. Alternatively Control+letter. If you are having trouble getting a keystroke to function you can set "Auto Restore Keyboard Hooks" in Options/Preferences/Miscellaneous. There is also a "Reset Hooks" command in ME Scripting Editor, item Macro Express. There are other aspects such as out of Scope; the window being operated on loses focus or is not present.
  15. I assumed that the Windows Default format allocated the accelerator keys regardless of any manual settings. It has to use letters in the command titles. The reality is I suspect, that that Windows Default menu option will not show an allocated accelerator key. The ones that seemed correct in terrrypin's were probably by coincidence because the allocated keys were roughly in the same order (A-Z) as ME was trying to allocate. Looking at the jpg ID 548, it looks like It started with A for the 1st The 2nd did not have a B so it allocated C C had just been used, the 3rd title did not have a D, so it allocated E As I noted before, I found that when you used up all the available letters it stopped allocating them. I did not get any dupes from my limited meddling, although users in ME3 did. That Windows Default is difficult to see. The i and l shortcut in particular. The hybrid method I found allows you to set the submenu Pop-Up to any format. I assume that if you chose Windows Default you would still have the key allocation problem. Awaiting Cory's but I think you don't get to see the A, B etc with Windows Default.
  16. I've found that some Categories that I created for test purposes cannot be deleted (build 3.8.01). They can be deleted from Explorer but re-appear next time the window is focused. I ended up transferring the macros to another file, deleted the original and then re-named the copy. I don't suppose many people delete a Category once they have created it but has anyone else had this problem?
  17. I think the sample went astray. The forum disappeared in molasses today. I had to post an attachment twice before it stuck.
  18. The open sub-menu looks just the same as you see in the attachment. Having chosen "Name and Scope" the macros are labelled A, B, C etc automatically just like the attachment pic. When you think about it, a Pop-Up is just another macro. Run it and it appears as a Pop-Up instead of opening an app. The great thing is that you don't have to mess with indents and you can have whatever format you like for the "sub-menu". There is no limit on how many macros you can run. The main Pop-Up is 36. Each of those 36 could be a Pop-Ups and those 36 and 36 and so on. The difference of this method compared with a programmed sub-menu is that all the menu information for the sub-menus is contained in those sub-menus, not the main one. You seem correct in your original issue that the accelerator keys are not displayed.
  19. Nope, I've done it. Create a new Pop-up. Call it "MySubMenu" or whatever. Give it a hotkey. Build Menu with some items in the macro list. Save it. Now go to an existing Pop-up, and add "MySubMenu". It will appear in the list and can be opened with the hotkey the main Pop-Up allocates. Below is the bottom of a menu I created. "y" runs "MySubMenu" (edit) "and the word "submenu" isn't even mentioned in "Macro Express Explained" " Perhaps it may turn out to be fortunate I never read the book!
  20. I'm jumping between two forums. Something I figured in ME3 can be used in MEPro. To create a sub-menu Pop-Up, create it standalone (NOT using the main Pop-Up dialog). You can set the properties to whatever you like. When creating the main Pop-up, add the sub-menu Pop-Up just like any other macro. It works fine. The accelerator to get the sub-menu will be whatever the main Pop-Up allocates. Maybe that's what everyone is doing but it was new to me. Below is a hybrid menu. It's a bit scruffy because it's from my Testing section. You will see that "mysub" is a standalone Pop-up I added like the other macros in the list. "Macro Open File" is one I created within the main Pop-Up using the select and indent method. Ironically "mysub" appears with Name and Scope but "Macro Open File" is the Windows default that I don't want! There's no messing around with that annoying indent stuff either.
  21. Sorry, I jumped the gun on ME3. The menu system in ME3 is slightly different although the menus look the same. In ME3, if you want to create a Pop-Up sub-menu, you create that separately and then add to the main Pop-Up menu.
  22. My mistake, you're right. The hotkey works but it does not display.
  23. Something just came up in MEPro forum that I was not aware of. If you double-click a sub-menu item, you can choose an accelerator key. That is not made clear in the Help. Most people will see that hotkeys have been made automatically as underlined characters and that's it. There are more options. There may be a bug however, the accelerator key works but does not display in the sub-menu.
  24. I get it. If you double-click the sub-menu item, you can choose an accelerator key.
  25. What I was doing was loading a blank text file into a Hex Editor (both ANSI and Unicode files), manually changing the values eg Hex 05, 0E and exporting to the Clipboard. I then ran the back end of terrypin's macro to paste to T1 or T2 and display. I retried just now and seem to be getting ΓΏ (0xFF) most of the time. I'm going to have to terminate my involvement in this thread. I've spent too much time on it.
×
×
  • Create New...