Jump to content
Macro Express Forums

Yehnfikm8Gq

Members
  • Posts

    397
  • Joined

  • Last visited

Everything posted by Yehnfikm8Gq

  1. It seems that this is impossible to get round outside of ME being revised. There should never be more than one instance of the exe. It could be that in the restart test, on every restart the new instance is re-running the restart command, adding one every time. I don't have x64 so I can't run any tests. The "Download" file issue can surely be dealt with quite simply if it is related to "Wait for" type activation. Run the macro at intervals (every hour, day?) to move the files out of the download folder. Personally I'd do it that way anyway (or manually). How important is it for it to be done "right now"? I don't like surprise activations, possibly messing up stuff I'm doing manually (and as I've often mentioned before in the forum, anything of that nature I precede with a 10 sec grace period with audible warnings). If the macro is working overnight, who cares if the files are not sorted and moved until 5am? Temporary resolutions are up to you and your priorities of course.
  2. Well with your degree of automation, you probably need them! I've never used them other than when importing from ME3 and most of those I've since deleted. I don't have overlapping tasks. I use ME for all scheduled activities other than AV updates. Where I have a cycling macro that needs to be on top (doing something say every few minutes), I have the 10 second audible warning that I've mentioned a few times before, so I can tidy up and not start any other macros. Background macros not needing window access can usually be left running. The lock/unlock don't do any harm although they do not stop manual initiation of a macro.
  3. I didn't think to post a link. I can't find the script and I later changed to ToolTipFix.exe from Neosmart. I originally ran v1 which has no install requirement. v2 has the option to run as a Service to permanently monitor, or as a standalone install. I've used the standalone option as I have too many services running already. I've seen comments saying it does not support x64 but I cannot confirm - that may be referring to v1. If you Google Tooltipfix and variants you may come across some links to a similar tools.
  4. I reported the lock/unlock problem months back. During investigation of that I also found/reported that closing the Script Editor stops all running macros. Due to be resolved.
  5. I noted in Post #3 that I also have that problem, fixed temporarily with a script by other and run by my own ME macro. I usually run it about once a day. That is definitely worth automating.
  6. You could be right, although I'm not sure of all the implications of the reg file which resets some Explorer policies to default. The PastIconsStream subkey is about 3x the size of IconStreams, which seems realistic. I suppose it boils down to whether the issue will re-occur within a short time. There's no point in doing the reg cleanup with reboot if one or two icon states have gone awry and can be fixed manually in 10 secs. My previous idea of importing back the TrayNotify key is probably going to need ending the Explorer.exe process and re-starting so ditto re manual correction. I think using ME is out of the picture other than to run the reg file and reboot.
  7. I've tried file changes and have not found anything useful. I did it by searching for *.* on the C: drive and listing by modified time. Filemon, Regmon and Procmon show the activity but there is no way of telling which may be relevant. Explorer.exe is constantly monitoring the Desktop and Task Bar and is the most likely perp. It is the only process running across an icon state setting change that could be relevant. The setting change must be in there somewhere and would be a RegSetValue process. If it's registry it is likely to be in HKCU, in particular the key I previously posted and the Control Panel\Desktop key. I could find no meaningful values - the only RegSetValue were in TaskBarSizeMove and TaskBarGlomming and were single DWORD values. No luck with other RegSet* or RegCreate* ops. I found a link where someone wrote: "Appears windows stores the "Always Hide", "Always Show", "Hide When Inactive" in the following key: HKEY_Current_User\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify In there is a IconStreams (fur currently running programs) and PastIconsStream (name explains what that is). The hard part is each is a huge byte that has the start up path of a app in it along with the switch on how to display. The harder part is it loads this key into memory at startup, all changes you do within the UI are done only to memory, then it rewrites the key on shutdown. Modifying the key ONLY works if you kill the explorer task." I did not find any operation related to this key (which is huge, 72648 long when I checked) but that may tie in with it being in memory and rewriting the key on shutdown. (edit) I exported the TrayNotify key (2MB). Next time I get the problem I'll try importing the key back. Unfortunately any changes made during the current session will not be incorporated so I assume you have to reboot and resave the TrayNotfiy key.
  8. It sounds to me like you are probably the best person to resolve your issue. My only suggestion is to take a look at some of the advanced Activations that are available in MEPro and see if anything triggers an idea. If MEPro upgrade is not on the cards then don't bother. I attach a zip file with the four relevant Help pages FYI. They may have more info than you will find on ISS website. (unzip with "use foldernames" checked)
  9. I take it you are missing the Menu Bar - that would be the thingy with text and dropdown lists. I recently had this problem with MEPro and was told I was the only person to have the issue. Welcome to the Where's My Menu Bar Club. If you right-click on the ME icon in the Tray, you can try Tools/Restore Toolbars. Works on my PC for the other toolbars but not the Menu Bar. You probably did not save your current configuration as a backup. Importing back a good configuration did not help me but if you have one, try it Tools/Import Program Configuration. If that does not work try Tools/Restore Program Defaults. I'm not sure if ME3 has a repair option if you try to uninstall. If it does, try that. The only solution I've found for MEPro is to uninstall and re-install so that would be your last option.
  10. Oh yes I did! It's in the title of the topic. Thanks for the link. It's the best reference I've seen. I'm not sure it helps much as the most common problem for others is icons not appearing during startup. That is not my issue which is icon states changing but the icon is still there. It's a very frustrating problem - many people have asked about it on the Net and how to change in the registry. The question is usually answered, very annoyingly, "Right click on the taskbar, Properties.......". I'm looking for a fix to save settings so that I can write back settings from ME when the problem occurs. I'm not sure when my icon states change and it can be from "Always Show" to "Hide When Inactive" or vice-versa. It's one of those things you may notice hours or days after it has happened. It could be across a reboot. I've tried the unPnP tool from Gibson's Research but that is unlikely to be effective. I've tried monitoring both file and registry changes across a change in icon state setting and have not found anything useful. From the article you pointed to, it seems XP is flawed re this issue. Later OSs have alternative solutions I believe. I also have the problem with Tray Tooltips disappearing behind the Taskbar but I found a script to correct that which I run with ME. It does not stop the problem recurring from time to time.
  11. My settings for the system tray icons regularly change for no apparent reason, eg "Always Show" becomes "Hide When Inactive". I want to be able to store the settings for my common applications (using reg file or in ME) and run a macro to restore them. Does anyone know where in the registry the settings are kept?....and no I don't want instructions how to do it manually. I know how to reset via the TrayNotify keys but that's not much help. The key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer may be involved but I can't find any obvious data. Settings may also be stored in the application's area.
  12. I'm pleased to see someone keeping an open mind on the cause of an ME problem. While the chances are that it is related to ME, it's foolish to assume symptom equals cause. When I suggested that some weeks back it was met with howls of (polite) derision. Since then I have a perfect example of symptom not equalling cause: My ATi TV app is old and I always expected to get problems with future XP updates. I found that the app was causing more and more problems and crashing when running in the background. It turns out the problem was Nero. At some point Nero installed a dll that was used by ATi TV. It installed the dll in its own folder and deleted the original copy. ATi TV still functioned but at times conflicted with other apps running. I only found the problem when a recent Nero update deleted the dll and installed an updated version with a different name. ATi TV lost some of its functionality completely. After investigating, I installed a copy of the original dll from an old backup, re-registered in Windows and now ATi TV works perfectly.
  13. For many that use ME, AutoIt is not a viable alternative. It's programming versus filling in foolproof dialogs. I agree with Paul though that ME is always relatively slow. Aren't both macros and mxe files compiled at runtime? Even if there is a lot of overhead in the programming dialogs to make them foolproof, once the code is saved, surely it's possible to store in a compiled form that will be quick to run? Given that ME has to be installed on the host PC I assume that the code is incompatible with other programming apps normally found on a PC. There could be commercial reasons for doing that, eg someone has to buy the software to run a macro. I'm not that unhappy with ME's speed for most tasks but I have macros that take an hour of pure command runs (no waiting). PixelSearch in AutoIt is probably 30x faster than you can do with ME so that type of application is frustrating. The way one gets around that is to make a hybrid using AutoIt's versatility with ME's user interface. Things slow down though if you have to handshake information. If you can do that with AutoIt, can't the same things be done within ME? I guess these come under "Request for Features". A big difference with AutoIt is that you have a number of programmers writing UDFs that make many sophisticated tasks simple (like all the Excel manipulation scripts). Easier to do when the labour is free.
  14. Unfortunately, if it's someone else's document you don't get to chose how many @ there are. It's a common abbreviation for pricing, 16 units @ $5 each. If you were trying to extract multiple email addresses mixed with scattered @ you would have to do something like I mentioned in my first post - check the strings thought to be email addresses contain/end with .org, .net, .com etc. Unfortunately the possibilities there are going up constantly. You could also rule out short strings containing @ assuming the shortest likely address would be perhaps ab@bc.com - 9 characters
  15. I had further thoughts on this problem. I'm not suggesting Wilm bothers with this degree of detail. Although both Cory and I used spaces to find the ends of the address, it's not foolproof. There is no foolproof method. The address could be preceded by "Mail to:" as I mentioned before, or this: The address is: myname@myaddress.com Look Ma, no spaces either side The method that is most likely to work in all circumstances is the one I detailed, or Cory's modified, but not looking for spaces. Basically you would search forward and back from the @ for the first illegal character, which in most cases will be a text control character such as Space(0), CR(13), LF(10), or Tab(9). Best done using ASCII character value. These are the basic permitted characters in the English language: 33 ! 35-39 #$%&' 42 * 43 + 45 - 47 / 48-57 Digits 0 to 9 63 ? 64 @ 65-90 Uppercase English letters A-Z 94-96 ^_` 97-122 Lowercase English letters a-z 123-126 { | } ~ Not covered: Hotmail and similar restrictions " " for non-permitted characters IP address used for server domain . if not first, last character or twice consecutively only one @ allowed outside quotes If you found a " in the local part of the name, you would have to search for another " and everything in between would be legal. Max length of local name is 64, domain name 255 but the total address cannot be more that 254. No doubt these things are subject to change. An example of how difficult the task is even if you fully test: "Mail to~myname@myaddress.com" you would get the wrong string "to~myname@myaddress.com" since ~ is legal in an address. It would however retrieve "Mail to:myname@myaddress.com" correctly.
  16. Cory's method is quicker for ME Pro. You should Trim the final string because there could be non-printing characters like Tabs or CRLF at the start or finish of the string. Only you can tell if there are any other characters such as "Mail To:" immediately before the address.
  17. Your outline would be the easiest, if it were really that easy! Here is an outline of one method, name variables as you wish: Set integer N1 to the position of @ in T1 Set N2 = N1 Set N3 = N1 Find Start of Address Repeat 50 times Copy part of text, 1 character at position N2 of T1 into T2 If T2=blank "" N2 increment Repeat Exit Else N2 decrement End If End Repeat Find End of Address + 1 character Repeat 50 times Copy part of text, 1 character at position N3 of T1 into T3 If T3=blank "" Repeat Exit Else N3 increment End If End Repeat N4 = N3-N2 (number of characters in address) Copy N4 characters of T1 starting at N2 into T4, the email address Search T4 for substrings .com, .net, .org etc . If none found, Text Box Display "T4 (display value) is probably not a valid email address" Else Text Box Display "T4 (display value)" End If If the address finishes at the end of a line with a CRLF you will have to modify the search for the end of address. You could for example look for the next "." after N1 into N3 and add 4 (.com etc). You could use that anyway instead of looking for a following space. Note that I have used (end character + 1) to save 2 lines of maths.
  18. From a quick examination of that thread, "/VT1:%1" is used to transfer the filename selected in Windows Explorer into T1 for use in the ContextMenu macro. I've no idea what you are up to with "Open CNN.com" so I'll leave further comment to those more involved back then. Don't forget to add Variable Restore Text Variables at the start of "Open CNN.com" to input T1, if that is what is intended. It does not sound as though you are sure what to do with T1, given your comments. If you imported any of the Context Menu macros from 3x into MEPro, the variables would be converted to the Pro format [ ]. I suspect "/VT1:%1" was not converted because T1 is not encased in %%, which I assume is used as a signpost for variables needing conversion.
  19. I'd be concerned about what T1 means and how you are using it %T1% or %T[1]%. From the descriptions in Command Line Help it seems like your variable is %T1% verbatim, even though T1 would normally be expressed as %T[1]% in MEPro. (edit) My interpretation is that when macro "Open CNN.com" runs %T1% = %1 If you wrote "Open CNN.com" assuming %T[1]% would be set to %1 you are out of luck. You have to change the Command Line statement or the variable. I don't know if [] are permitted characters in Command Line.
  20. I doubt you can activate a macro based on any Control Panel status. You may be able to start a macro in a loop and monitor the status of an applet function to exit the loop and continue running the rest of the macro. For info on Control Panel applets see the ME Help. You would have to open the applet at the appropriate tab (eg C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.cpl,0) and figure out how to read the status. It would involve opening the applet on the Desktop. You would have to select the item to monitor using Text Type or Get Control commands I don't have Speech Recognition installed nor Windows 7 so that's as far as I can assist.
  21. There's no plugin. I don't see why you cannot use existing speech recognition software to produce text that causes a macro to run. "Warp 10, Make it so". Gotta love it. There are apps apart from the one that comes with Windows. Google it. (edit) Probably the best solution would be to have a speech recognition app that could turn a spoken phrase into a Command Line instruction which you would configure to run the required macro. In ME Pro you could also activate by getting an app that can recognize a word/s and copy to the clipboard - then use Clipboard activation.
  22. I took an xls spreadsheet and converted to File1.csv using Save As within Excel. I also converted to a tab delimited file File1.txt using Save As within Excel. I then took the .csv file and used the following commands: Variable Set String set %T1% to the contents of D:\Temp\File1.csv Variable Set to ASCII Char 9 to %T9% Variable Modify String: Replace "," in %T1% with "%T9%" Variable Modify String: Save %T1% to "D:\Temp\File2.txt" I compared the differences between File1.txt and File2.txt. There were some minor differences which were related to cells already containing commas (additional to commas separating variables). Where Excel put data with commas in quotes, converting the csv with the above commands kept the quotes but replaced those commas with tabs. That could be handled but I don't have any code to hand. You could try the code on your files and see what you get. I used the utility Exam Diff to make the text file comparison.
  23. The Repeat threw me completely. In the past I've only selected a few characters or the rest of the line.
  24. This isn't really giving you the answer you want but beware of closing the Script Editor during that time (until next rev of MEPro).
  25. 1. If the new files are the only ones in the folder you can Repeat with Folder to process each file (return the full file path in the variable). If there are other files not needing to be processed you could have some If conditions based on Creation Date (ie within 3 days). Alternatively keep a list of old files in a text file and find any new additions by comparing new filenames with list. I don't know why you can't use a variable, Text Type into dialog if that is the problem. You can use variables in Launch Program. Put variable in quotes in case it has any spaces in the path. If you have to process the older file first, use Creation Date which also happens to be in the filename (it's not easy to evaluate which is older especially across year and month boundaries). At the moment I can't think how you would tie that in with Repeat with Folder. 2. There's nothing particularly bad or unreliable about working on files opened in Excel. Allow enough time delays and "Wait for" commands for it to be reliable. Three files are not a big deal. You may be able to convert with a macro within Excel, avoiding ME completely. I can't help there. 3. If you are running the "other" macro at the same time, call the macro (Macro Run) in the Repeat with Folder loop. It will process the current file whose name will be known (as part of the Repeat with Folder/File renaming). If running the macro later, you may be able to process per 1. above.
×
×
  • Create New...