Jump to content
Macro Express Forums

Nicolas

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Nicolas

  1. I don't think you can ... but you could create a macro to launch a small program that will display a dialog box : this macro will be activated by the "Connecting..." window and then stop something like that : Program Launch: "Online.exe" (ok it's probably not the prettiest program you've ever seen but it's late ) Online.exe
  2. .. or scan only one pixel every 5 (in X and Y coord) if you know the area you're looking for is at least 5x5 large : in this specific case, you would only check 1/25th pixels of your screen, thus increasing greatly your macro performances
  3. you could also use the Log Message command with option "date & time stamp" ... it will do all the work
  4. it's quite easy for the path, if you use GetControl / GetControlText on the "address" editbox of your Windows Explorer toolbar ... regarding the filename, maybe you could use a small trick : if your mouse is on the filename you need, a long left click will highlight it for modification (same as right click / rename) and allow you to copy it to clipboard
  5. ... ok it's in french, but in my case I had to wait for a status bar string "Terminé" so it was really a good idea ! It works fine and to process 50 Web pages (in fact several pages for each of them) : using Wait for Web Page : 30-31 minutes (1) using Macro Run / my program : 37-38 minutes (2) using your trick : 25 mn (3) (1) because I always add a 2s delay before and after this command or it does not work really well (2) because calling an external program is slower and this program has to connect to the Windows Shell eveytime (3) no need for delays, no external call, simply a loop every second Unfortunatly I won't use it on all my macros because i'm too lazy to open 600-700 macros and replace between 1 and 4-5 "Delay / Wait for Web Page / Delay" commands with a "Macro Run" command but I'll use this trick for the most critical ones !! once again, thanks
  6. I've lost another night, having a macro that did not continue after the web page was loaded ... so I decided to develop my own (small) program to do it ! of course it will not be so easy to use as a "Wait for Web Page", as I'll have to launch another program, waiting for its return, but I'll tell you if it works I simply have to replace "Wait for Web Page" commands in something like 700-800 macros ...
  7. you can see it in the "unassigned" category of your macro explorer ... you can also change this default hotkey by rightclicking on the ""suspend / resume ME" macro
  8. mso maybe you could check the site URL in the beginning of your macro and exit if it does not match the URL you're waiting for ? to do so I use "Variable Get Control Text" on the URL edit box ...
  9. maybe you could use the "window specific scope" feature and specify the window title for this site ?
  10. Thanks for your answers, I changed my settings in Tools | Internet Settings | General | Settings, we'll see it it can help ! I don't think it is a question of delays because when it happens for one page, then "Wait for Web Page" does not stop anymore, for any page, until I reboot ... I don't know it if is a problem in Macro Express, Internet Explorer or a conflict between ME and something else ... This problem would not be so annoying if another enhancement I asked for (last year I think) was available : the possibility to ask Macro Express to continue after the timeout delay rather than raising an error. In this case, I would be able to process the Web page, even if I had to wait for this delay everytime ... But maybe there is a way to do it ?
  11. I'm really really really fed up with this STUPID "Wait for Web Page" command that from time to time never stops ... I have to reboot to have it work again (sometimes) it may happen with a Wait for Web Page "" (all instances) or with the new option in the "Web Site" command as well, I'm using Internet Explorer 6 under Windows XP (it never occurred on another computer with W2000) and I really don't know what I can do, except maybe develop my own "Web for Web Page" macro (looking for the pixels in the status bar) or buy another software as this feature is vital in all my macros this evening, I already rebooted 12 times and it still does not want to work as it should ... does anybody has any idea ? or a work-around ?
  12. you could enhance your macro to insert missing spaces / remove extra ones ... for instance : - if you have two spaces, it should remove the second one - there should be a space after and no space before "single" symbols such as commas and dots - there should be a space after and another one before "double" symbols such as colons, semi-colons (at least in France, because I know it depends on the country)
  13. maybe you could use the Variable Set to ASCII Char command to initialize a string variable with the character you're looking for and then compare this variable with yours (%T3%) you should easily find a complete ASCII table but if I remember : ASCII (decimal) code for TAB is 10 ASCII (decimal) code for Carriage Return is 13 ASCII (decimal) code for Line Feed is 10 never tried that so I can't tell you if it really works
  14. talking about macros performances is really interesting ! sometimes I'm really surprised to see a macro being as performant as a dedicated C++ program but some of my macros can be really slow (but i'm too lazy to develop a C++ program when good performances are not really needed) I think reading and writing this INI file so many times is really time consuming ... its main advantage (in my point of view) is its persistancy : even if your computer crashes, you'll have the latest results in the INI file ... did you try to create "dynamic macros" (I don't know if such macros have a name) ? for instance, as variable modify integer : inc(%N1%) is coded as <NMVAR:08:01:0:0000001:0:0000000> (you can see this switching between scripting editor and direct editor) so if you need to increment the n-th variable (I'll use %N99% to store this value "n"), you could maybe try something like that : Variable Set String %T1% "<NMVAR:08:%N99%:0:0000001:0:0000000>" Run Macro in Variable %T1% I can't tell you if it works and if it is better, as I never used such a trick ... but if you try this, please keep us informed !
  15. maybe the focus changes after the first key is pressed ?...
  16. would be too easy I can remove sites or web pages from black list, but this option is not available for Macro Express ... thanx Kevin for your explanation, i'm now waiting for an answer from StopZilla develpment team
  17. a few weeks ago, I installed a software named Stopzilla : this is a (really useful and user friendly) popups killer ... but since last week-end, Stopzilla systematically kills MacroExpress when I launch it !! and adds it to its blacklist : macexp.exe [spyware/adware] I'm quite confident with MacroExpress, that's not the problem ... but I'd like to know what I could do to be able to use in the same time MacroExpress and Stopzilla ... did any of you have the same problem ? any idea ?
  18. if this is the beginning of your attached file (saved as a plain text file) : 22442 66586 310214 332075 343664 365774 816617 904715 904885 1003149 1006896 1008254 1018926 1030880 1054284 1054285 1071091 ... this small macro reads records and displays them one by one ... Text File Begin Process: "H8_CLASS4_PARTS_REPORT_TXT.txt" Pause: Complex Text File End Process text file begin process : start processing record=1, variable to receive text line=T1 pause : message=%T1% I can't figure any problem in this ? but maybe I did not understood your problem ...
  19. you cannot trigger a macro when a color appears ... what you can do is create your own macro that will continuously scan your screen, looking for this color (of anything else), and call a second macro when it appears ... but such a macro would be quite slow so if you're looking for a "real time trigger", it won't fit ! I don't think ME can scan all pixels of your screen in less than 5 or 10 seconds (maybe more), and it will be even slower if you're looking for two pixels separated by a given distance. if you know that these colors appear on a large area of your screen, you can look at a subset of all pixels (for instance X every 5 pixels, Y every 5 pixels : you'll scan only 1/25th of all your screen) but for your second idea it is much more difficult : you would first need to find a pixel with the first color, then look at a given area around this pixel using a well known formula : (x-x0)^2+(y-y0)^2=your distance where (x0;y0) is the position of your first pixel i'm really not sure ME is the best candidate for this task
  20. maybe another application is catching your shortkeys ... try the Tools / Restore Keyboard Hooks command ?
  21. you could use "macro return" instead of "macro stop" ? or maybe use the "log errors" command with option "do not display error messages" ? on my computer, "macro stop" does not display any message, I suppose I had activated an option somewhere but I can't remember where
  22. I'm french and I bought Macro Express via the Insight Web site a few years ago ... I received my license by email really quickly, no problem ! click here to order ("Email delivery of license to register downloaded copy of the program")
  23. if you want to copy a command in your macro to paste it elsewhere in this macro (or in another macro), simply use "normal" copy-paste methods (Ctrl-C / Ctrl-V for instance) if you want to copy a command to paste as text (on this forum maybe), then you should use the "copy command text" command as you copied your command as plain text, when you pasted it ME converted it to a "text type" command
  24. I suppose it depends on how you save this file ... if you use a ME command (such as copy file, rename file or variable modify string / append to file) i think you don't need any extra delay time because it will be handled by the command itself but if you use the "save" or "save as" dialog box of any external application, ME cannot do anything for you ! here it may be better to wait a few seconds before the next step
  25. hum ... it seems to do exactly what i'm doing ok i'll replace, thanks for the info anyway, i still have this "freeze" problem that sometimes occur, but since I changed my LOG macro (using "Append to Text File") it freezes in the next called macro really strange ...
×
×
  • Create New...