Jump to content
Macro Express Forums

randallc

Members
  • Posts

    434
  • Joined

  • Last visited

Posts posted by randallc

  1. Hi,

    I agree; don't be so coy!

    I wonder, as Joe says, if you are not using the "Repeat" command itself to increment the counter, whether you have it set to upset your manual counting?....

    RepeatOptions.JPG

    Also, simplified example with display (had T1 instead of T50)

    <REM2:Repeat for T50-T51><REP3:01:000050:000001:00002:1:09:><TVAR2:10:01:hi%N9%><TVAR2:31:01:<TMVAR2:09:%N9%:10:000:000:>><RUNMACVAR:31><ENDREP><TBOX4:T:1:Center000254000278000332:000:After first LoopT50=%T50%

    T51=%T51%

     

    T10=%T10%><REM2:Repeat for T50-T51><REP3:01:000050:000001:00002:1:09:><TVAR2:31:01:<TMVAR2:09:10:%N9%:000:000:>><RUNMACVAR:31><TBOX4:T:1:Center000254000278000332:000:During second loopT50=%T50%

    T51=%T51%

     

    T10=%T10%><ENDREP>

    // Repeat for T50-T51

    Repeat Start (Repeat 2 times)

      Variable Set String %T10% "hi%N9%"

      Variable Set String %T31% "<TMVAR2:09:%N9%:10:000:000:>"

      Run Macro in Variable %T31%

    Repeat End

    Text Box Display: After first Loop

    // Repeat for T50-T51

    Repeat Start (Repeat 2 times)

      Variable Set String %T31% "<TMVAR2:09:10:%N9%:000:000:>"

      Run Macro in Variable %T31%

      Text Box Display: During second loop

    Repeat End

    Best, Randall

  2. Hi,

    I'm not sure why you say it only "runs once"; "TimeOut" schedule "says" "every "15 mins" [settable], after, [settable] number minutes of idle time....?

    Where is the problem? - Does it not work? - Or only "set to run" every 15 minutes, then turn off after it runs once?

    Best, Randall

  3. Also;

    You Would need to use the "variable evaluation level" to display them, if that is what you want, as in my first post;

    Display

    <REM2:-----------------------------------------------------------------------------------------------><REM2:Enable the Variables Evaluation Level option><REM2:-----------------------------------------------------------------------------------------------><VSETMISC:T1:Preferences Registry Key><IVAR2:04:01:2><DIS:<REGRINT:4:%T1%\AdvOptions\Variables Evaluation Level><DIS:<IVAR2:04:02:FEnter the desired Variable Evaluation Level. Enter 0 to disable the Variable Evaluation Level.TFCenter:Center><REGWINT:4:%T1%\AdvOptions\Variables Evaluation Level><RELOADPREFS><ASCIIC:2:1:10><ASCIIC:3:1:13><TMVAR2:08:03:02:000:000:><TMVAR2:19:03:00:000:000:CRLF><REP3:01:000001:000001:00010:1:01:><TVAR2:98:01:hi%N1%><TMVAR2:16:98:00:000:000:><TVAR2:02:03:><TVAR2:31:01:<TVAR2:%N1%:03:>><RUNMACVAR:31><TMVAR2:07:99:00:000:000:%CRLF%T%N1%=%T%N1%%><ENDREP><TBOX4:T:1:Center000254000278000332:000:%T99%

    T1=%T1%

    T2=%T2%

    ......

    T9=%T9%

    T10=%T10%>

    // -----------------------------------------------------------------------------------------------

    // Enable the Variables Evaluation Level option

    // -----------------------------------------------------------------------------------------------

    Set Variable %T1% to "Preferences Registry Key"

    Variable Set Integer %N4% to 2

    Read Registry Integer: "Variables Evaluation Level"

    Variable Set Integer %N4% from Prompt

    Write Registry Integer: "Variables Evaluation Level"

    Reload Macro Express Preferences

    Variable Set %T2% to ASCII Char of 10

    Variable Set %T3% to ASCII Char of 13

    Variable Modify String: Append %T2% to %T3%

    Variable Modify String: Save %T3% to Environment Variable

    Repeat Start (Repeat 10 times)

      Variable Set String %T98% "hi%N1%"

      Variable Modify String: Save %T98% to Clipboard

      Variable Set String %T2% from Clipboard

      Variable Set String %T31% "<TVAR2:%N1%:03:>"

      Run Macro in Variable %T31%

      Variable Modify String: Append "%CRLF%T%N1%=%T%N1%%" to %T99%

    Repeat End

    Text Box Display:

    Randall
  4. Hi again,

    Change the "hi" if you wany; I expected you would have your own input here;

    <TVAR2:10:01:hi%N9%>
      Variable Set String %T10% "hi%N9%"

    Just use a display box thus;

    <TBOX4:T:1:Center000254000278000332:000:T1=%T1%

    T2=%T2%

    T3=%T3%

    T4=%T4%

    T5=%T5%

    T6=%T6%

    T7=%T7%

    T8=%T8%

    T9=%T9%

    T10=%T10%>

    Text Box Display:

    ==================================================

    Randall

  5. Again,

    <REM2:Repeat for T50-T51><REP3:01:000050:000001:00002:1:09:><TVAR2:10:01:hi><TVAR2:31:01:<TMVAR2:09:%N9%:10:000:000:>><RUNMACVAR:31><ENDREP><REM2:Repeat for T50-T51><REP3:01:000050:000001:00002:1:09:><TVAR2:31:01:<TMVAR2:09:10:%N9%:000:000:>><RUNMACVAR:31><TBOX4:T:1:CenterCenter000278000200:000:T10%T10%><ENDREP>
    // Repeat for T50-T51

    Repeat Start (Repeat 2 times)

      Variable Set String %T10% "hi"

      Variable Set String %T31% "<TMVAR2:09:%N9%:10:000:000:>"

      Run Macro in Variable %T31%

    Repeat End

    // Repeat for T50-T51

    Repeat Start (Repeat 2 times)

      Variable Set String %T31% "<TMVAR2:09:10:%N9%:000:000:>"

      Run Macro in Variable %T31%

      Text Box Display: T10

    Repeat End

    Randall
  6. Hi David,

    We all learn.. Sorry about that.

    I have jst substitued the Run in macro commands for my previous example here; hope that is clear enouh for now;

    <REM2:Repeat for T50-T85; but use named variables; ? - [stringT(%N1%)]><REP3:01:000050:000001:00036:1:01:><REM2:set T30, however that may be, for each variable in the loop><TVAR2:30:01:hi><REM2:set T30, however that may be, for each variable in the loop; name tham;Variable Modify String: Save %T30% to Environment Variable [stringT(%N1%)]><DIS:<TMVAR2:19:30:00:000:000:StringT(%N1%)><TVAR2:31:01:<TMVAR2:09:%N1%:30:000:000:>><RUNMACVAR:31><ENDREP><REP3:01:000050:000001:00036:1:01:><REM2:set T30; ;Variable Set string %T30% from Environment Variable [stringT(%N1%)]><DIS:<TVAR2:30:11:StringT(%N1%)><TVAR2:31:01:<TMVAR2:09:30:%N1%:000:000:>><RUNMACVAR:31><REM2:Here do what you need with T30; "UPPERCASE" just as example; you would be pasting?><TMVAR2:12:30:00:000:000:><ENDREP><MRETURN>
    // Repeat for T50-T85; but use named variables; ? - [stringT(%N1%)]

    Repeat Start (Repeat 36 times)

      // set T30, however that may be, for each variable in the loop

      Variable Set String %T30% "hi"

      // set T30, however that may be, for each variable in the loop; name tham;Variable Modify String: Save %T30% to Environment Variable [stringT(%N1%)]

      Variable Modify String: Save %T30% to Environment Variable

      Variable Set String %T31% "<TMVAR2:09:%N1%:30:000:000:>"

      Run Macro in Variable %T31%

    Repeat End

    Repeat Start (Repeat 36 times)

      // set T30; ;Variable Set string %T30% from Environment Variable [stringT(%N1%)]

      Variable Set String %T30% from Environment Variable

      Variable Set String %T31% "<TMVAR2:09:30:%N1%:000:000:>"

      Run Macro in Variable %T31%

      // Here do what you need with T30; "UPPERCASE" just as example; you would be pasting?

      Variable Modify String: Uppercase %T30%

    Repeat End

    Macro Return

    best, Randall
  7. Hi,

    It is pssibly working; your display does nothing; try this;

    [Envionment vars with indices must be re-named or put into a string to display, as I don't think you can use double "%%%%"] for them;

    "Tax{%N50%}" will give Tax{1} or whatever; "%Tax{%N50%}%" won't work?; but the macro may still be working OK?

    <REM2:display Tax[N50]><TMVAR2:19:30:00:000:000:Tax_Env_Var_Display><TVAR2:99:11:Tax{%N50%}><TBOX4:T:1:CenterCenter000278000200:000:TestT99=%T99%

     

    =====================

     

    Tax_Env_Var_Display=%Tax_Env_Var_Display%><REM2:End display Tax[N50]>

    // display Tax[N50]

    Variable Modify String: Save %T30% to Environment Variable

    Variable Set String %T99% from Environment Variable

    Text Box Display: Test

    // End display Tax[N50]

    best, Randall

    EDIT; I am not really sure of your question; do you know you have T30 set, or could there be a problem with your "waiting for windows" etc and NOT actually caturing anything from your controls etc?; I have really just commented on your use of env variable in display, which may be only another, lesser issue! Display your "T30" to check if it is set;

    Do you know the env var is not receiving the data?

  8. Hi,

    Perhaps you see why I prefer to use named variables [Environment variables].

    You don't need to use Run Macro in string.

    You can name them how you like, like an "array".

    They do NOT replace your other strings (named string "StringT(10)" does not affect %T10%)

     

    <REM2:Repeat for T50-T85; but use named variables; ? - [stringT(%N1%)]><REP3:01:000050:000001:00036:1:01:><REM2:set T30, however that may be, for each variable in the loop><TVAR2:30:01:hi><REM2:set T30, however that may be, for each variable in the loop; name tham;Variable Modify String: Save %T30% to Environment Variable [stringT(%N1%)]><TMVAR2:19:30:00:000:000:StringT(%N1%)><ENDREP><REP3:01:000050:000001:00036:1:01:><REM2:set T30; ;Variable Set string %T30% from Environment Variable [stringT(%N1%)]><TVAR2:30:11:StringT(%N1%)><REM2:Here do what you need with T30; "UPPERCASE" just as example; you would be pasting?><TMVAR2:12:30:00:000:000:><ENDREP>
    // Repeat for T50-T85; but use named variables; ? - [stringT(%N1%)]

    Repeat Start (Repeat 36 times)

      // set T30, however that may be, for each variable in the loop

      Variable Set String %T30% "hi"

      // set T30, however that may be, for each variable in the loop; name tham;Variable Modify String: Save %T30% to Environment Variable [stringT(%N1%)]

      Variable Modify String: Save %T30% to Environment Variable

    Repeat End

    Repeat Start (Repeat 36 times)

      // set T30; ;Variable Set string %T30% from Environment Variable [stringT(%N1%)]

      Variable Set String %T30% from Environment Variable

      // Here do what you need with T30; "UPPERCASE" just as example; you would be pasting?

      Variable Modify String: Uppercase %T30%

    Repeat End

    Best, Randall
  9. Hi,

    Yes;

    1. instead of :"alt-v-c" to get the source html text to clipboard, use "alt-v-o" in Opera (and similar in Firefox); then

    2. instead of "Alt="Edit Post") as search text, search for the type of link and text or http you want, and

    3. change any parsing/ searching as needed (that macro is looking for the name of any image text; specifically "Edit Post" on this forum or similar)

    4. change the macro you call once the "Web page" command is run from the retrieved link.

    Best Randall

  10. Hi,

    Hey, you want to be really confused>?

    Try this...

    <ASCIIC:2:1:10><ASCIIC:3:1:13><TMVAR2:08:03:02:000:000:><TMVAR2:19:03:00:000:000:CRLF><TVAR2:98:01:hi><TMVAR2:16:98:00:000:000:><REP3:01:000001:000001:00010:1:01:><TVAR2:02:03:><TVAR2:31:01:<TVAR2:%N1%:03:>><RUNMACVAR:31><TMVAR2:07:99:00:000:000:%CRLF%T(%N1%)=%T%N1%%%N1%><ENDREP><TBOX4:T:1:Center000254000278000332:000:%T99%

    T1=%T1%

    T2=%T2%

    ......

    T9=%T9%

    T10=%T10%>

    Variable Set %T2% to ASCII Char of 10

    Variable Set %T3% to ASCII Char of 13

    Variable Modify String: Append %T2% to %T3%

    Variable Modify String: Save %T3% to Environment Variable

    Variable Set String %T98% "hi"

    Variable Modify String: Save %T98% to Clipboard

    Repeat Start (Repeat 10 times)

      Variable Set String %T2% from Clipboard

      Variable Set String %T31% "<TVAR2:%N1%:03:>"

      Run Macro in Variable %T31%

      Variable Modify String: Append "%CRLF%T(%N1%)=%T%N1%%%N1%" to %T99%

    Repeat End

    Text Box Display:

    I must say, if I am trying to create arrays, I would much rather used named environment variables; at least I can follow what I'm doing myself!

    Best, Randall

    [PS, if this does not display for you, you may not have set the appropriate registry entry, as in the example macros? -I could add that, but am presuming you have done that?]

    T1N1vars.JPG

  11. Hi,

    I think you need to wait for the "Find" window to gain focus, insert your text, prexx enter, wait for find window to lose focus etc;

    then "Shift-Tab" "tab" enter to hit that link (or tab to the link).

    Best, Randall

    [cf the first page in the thread from my signature "WebEdit" - the earliest example uses "control-find", I think, though I prefer the later ways of doing it]

  12. Hi,

    Here's an example of putting some of your list into strings; or just displaying them in a text box;

    <TVAR2:01:01:%DATE%><TVAR2:02:01:%ERRORLEVEL%><TVAR2:03:01:%HOMEDRIVE%><TVAR2:04:01:%HOMEPATH%><TVAR2:05:01:%USERNAME%><TBOX4:T:1:000152000253000827000333:000:CD=%CD%

    APPDATA=%APPDATA%

    CD=%CD%

    CMDCMDLINE=%CMDCMDLINE%

    CMDEXTVERSION=%CMDEXTVERSION%

    COMPUTERNAME=%COMPUTERNAME%

    T1=%T1%

    T2=%T2%

    T3=%T3%

    T4=%T4%

    T5=%T5%>

    Variable Set String %T1% "%DATE%"

    Variable Set String %T2% "%ERRORLEVEL%"

    Variable Set String %T3% "%HOMEDRIVE%"

    Variable Set String %T4% "%HOMEPATH%"

    Variable Set String %T5% "%USERNAME%"

    Text Box Display:

    [use the first box, the 'code", to copyinto script editor, not the script!]

    Best,Randall

  13. hi,

    Works OK for me too;

    try re-install of Macro Express 3.5d;

    otherwise test you macro a little?

    Insert (instead of delay 5 secs)

    <WAITWIN2:000010:000000:Corporation><OR><WAITWIN2:000010:000000:Cannot find server><TVAR2:01:06:><TBOX4:T:1:CenterCenter000278000200:000:%T1%>
    Wait For Window Title: "Corporation"

      OR

    Wait For Window Title: "Cannot find server"

    Variable Set String %T1% from Window Title

    Text Box Display: %T1%

    Best, Randall
×
×
  • Create New...