Jump to content
Macro Express Forums

randallc

Members
  • Posts

    434
  • Joined

  • Last visited

Posts posted by randallc

  1. Hi,

    Interesting!

    prompt the user to click on the new file and look at it with the built-in viewer [i sure wish Mx could do that],
    Would not just promping for "file select file" from "Set variable" be OK?

    Then you could right click to"view" ; ie "open briefly" with Adobe or iE Explorer, and exit to select or not?

    Best, Randall

  2. Hi, kevin, Floyd,

    Yes, Win XPSP2

    I have found the problem, I think; all working now; the macro did not prompt for non-existent initiation folders, and dos did not tell me the error.

    /-c works from dos and the macro.

    The macro also made no allowance for quotes if required in the dos command (say, "%T3%" might be "InstallPath", for instance)

    Best, Randall

  3. Hi, Try prompting to select file?

    Is this what you mean?

    <TVAR2:01:01:c:\temp\><TVAR2:01:09:Choose Filename for attachment><TBOX4:T:1:CenterCenter000278000200:000:here it isT1=%T1%>
    Variable Set String %T1% "c:\temp\"

    Variable Set String %T1% from File Name

    Text Box Display: here it is

    Best, Randall
  4. Hi,

    I think your options are to;

    1. Save/ read variables from an "ini" file - probably best.

    2. Save/ read variables from a "txt" file

    3. Save/ read variables from the registry.

     

    There are examples of usage, but I'd have to look if you need them.....

    Best, Randall.

  5. Hi guys,

    Unfortunately, I think your assessment may be correct, though I have no "elphi" apps to check.

    On the other hand, getting the control by position might still work, even if name does not; I thought it was the "Capture" control rather than "Get " control which did it by position; am I wrong, Kevin?

    Best, Randall

  6. Yes, thanks,

    I am really lazy, though!

    Can you add dummy files, folders, registry settings, or prompts for these [or prompts to create what is needed?] in the macros so I can see the end product of the macro action?

    At present, they do nothing if I run them.

    Best, Randall

  7. Hi Cory,Great to know!

     

    Here is a Wait for increase number of files in a directory, longhand, for interest or improvement.

    <TVAR2:01:10:><TMVAR2:19:01:00:000:000:FolderName><REP3:07:000001:000001:0001:0:01:%FolderName%><NMVAR:08:01:0:0000001:0:0000000><ENDREP><TVAR2:01:01:%N1%><TMVAR2:19:01:00:000:000:NumberFiles><REP3:08:000002:000001:0001:0:01:%NumberFiles%><IVAR2:01:01:0><IMSD:50><REP3:07:000001:000001:0001:0:01:%FolderName%><NMVAR:08:01:0:0000001:0:0000000><ENDREP><TVAR2:01:01:%N1%><ENDREP><TBOX4:T:1:CenterCenter000278000200:000:New Filethere are %N1% files in the folder

    T1=%T1%

    NumberFiles=%NumberFiles%

    N1=%N1%>

    Variable Set String %T1% from Folder Name

    Variable Modify String: Save %T1% to Environment Variable

    Repeat with Folder

      Variable Modify Integer: Inc (%N1%)

    Repeat End

    Variable Set String %T1% "%N1%"

    Variable Modify String: Save %T1% to Environment Variable

    Repeat Until %T1% <> "%NumberFiles%"

      Variable Set Integer %N1% to 0

      Delay 50 Milliseconds

      Repeat with Folder

        Variable Modify Integer: Inc (%N1%)

      Repeat End

      Variable Set String %T1% "%N1%"

    Repeat End

    Text Box Display: New File

    Best, Randall
  8. Hi Rick and Floyd,

    Glad to hear Floyd's string split helped.

    Incidentally, [and as a reminder to myself!] to extend my comment on parsing, for large strings where even the pgmacro function fills the registry with tokens, instead of "tab" in my example above , we could relace with "crlf", save string to text file, then text file process; I haven't seen this done but should be good for parsing large web pages etc too?

    Best, Randall

  9. Hi,

    Strangely, I reproduced the problem (partly!) on another computer where I had not installed 3.5d fully (just had the new exe file, but not installed!).

    This machine the macro Always! seized up; fixed by re-installing.

    Have you done that?

    Otherwise, it is probably an installation setup problem, I would guess, and you might need a techno person at Insight to help.

    Best, Randall

  10. Hi,

    If you can ignore the apparent bug for the present, I am aware that the problem was generated while trying to Login to a WebSite; there is the question of trying Joe's Web Login macro;

    Login Automatically To Web Sites - the macro below should work stand-alone, having been generated by Joe's;

    Attached is my generated Login for your Dallas site, for interest.

     

    Alternatively, you could use my WebLogin by the wizard (see link in my signature), which also works for Hotmail and Yahoo, as well as here and iframe sites [still not for most banks etc] [and allows ME usual text encryption, as well as an option to leave part of password to fill in, instead] [Parameter5 gives option of naming the first link to click when site starts up too] [just change the username and passwords in encrypted text to use your own, though works as it stands with mine] -THIS ONE ONLY WORKS if you have the wizard in the ME3 directory as well as the playable macro!

    {_DallasWIZ}.mxe

    Best, Randall

    DallasLoginGenVBS.mxe

  11. Hi,

    Working with excel, sometimes its easier to put your cell into a string containing tabs and paste them into a row you select [Excel uses the tabs to separate them into separate cells], then manipulate the cells [in your case into columns] in Excel;

    <REM2:Set up tab environment variable chr 9><ASCIIC:1:1:9><TMVAR2:19:01:00:000:000:TAB><TVAR2:01:01:*123*tyu*gjh*bnm*kklj><REM2:Replace each bullet with ["tab"and bullet]><TMVAR2:21:01:01:000:000:*%TAB%*>
    // Set up tab environment variable chr 9

    Variable Set %T1% to ASCII Char of 9

    Variable Modify String: Save %T1% to Environment Variable

    Variable Set String %T1% "*123*tyu*gjh*bnm*kklj"

    // Replace each bullet with ["tab"and bullet]

    Replace "*" with "%TAB%*" in %T1%

    Activate or Launch: "Excel" OR "excel.exe"

    Text Type: %T1%

    Best, Randall
×
×
  • Create New...