randallc
-
Posts
434 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by randallc
-
-
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?....
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-T51Repeat 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
-
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
-
Also;
You Would need to use the "variable evaluation level" to display them, if that is what you want, as in my first post;
<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%>
Randall// -----------------------------------------------------------------------------------------------// 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:
-
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
-
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>
Randall// Repeat for T50-T51Repeat 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
-
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>
best, Randall// 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
-
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]>
best, Randall// 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]
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?
-
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>
Best, Randall// 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
-
True!
I have sometimes done your trick; maybe less "clunky" if you like, to set the path from the Window title?
Best Randall
-
Hi,
Can you browse Windows Explorer from the "Set variable from folder (prompt)" or similar command?
Then you have your folder name from the variable?
Best, Randall
-
Hi,
I think "Repeat with folder" needs "full file path"
Best, Randall
-
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
-
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 10Variable 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?]
-
[ie as long as your timing macro IS scheduled to run, check, and stop every 10 minutes, NOT just to stay open counting down the minutes...]
Randall
-
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]
-
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
-
Hi,
-use this line to copy;
-use this line to read<TEXTTYPE:<CTRL>3>>Text Type: <CTRL>3>That's OK to send "control-3"; unless you mean in a game or something to trigger separate keys! -Good luck!
Best, Randall
-
Hi,
no, mE does not need "then"; just
Wait for... ieexplor.exe to terminate [Click on the list box of programs to pick this name]
Text Box Display; "next line here"
or something similar
Process name do not need a path (I think...?)
Best, Randall
-
Hi,
I haven't used shortkeys; but I imagine you can workaround thia with a macro to replace "%T1%" with "#%T1%", then replace "##" with "" , assuming you are unlikely to have "##" in yuor text??
Best, Randall
-
Hi,
HOw would i reproduce thatr? -what do you capture?; I would not imagine a time when I would notice, though I have an old macro which opens a Windows folder and does not stop; perhaps post a scirpt to check if there's a reason?
Best, Randall
-
Hi,
Perhaps you might start by looking at my "Web log " script on this link;
and script
and that thread in general gives ideas. -eg
Best, Randall
-
Hi,
I think the approach in the example in my signature for the "zip" post codes might help; text file process to the line in the file you want, don't need strings?
Does that help?
Randall
-
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%>
Best, RandallWait For Window Title: "Corporation"OR
Wait For Window Title: "Cannot find server"
Variable Set String %T1% from Window Title
Text Box Display: %T1%
-
PS
I wonder if you could use a huge "ini" file instead, so each line is;
data11001=Data1,data2,data3,data4
you could then easily retrieve the data string by name, modify it and replace it using the read/ write "ini" commands?
Best, Randall
[have never done it, though!]
Extremely Quick Access To Websites, Programs,
in Macro Express 3.x Third Party Tools
Posted
Hi,
Thanks!
I'm still working out if it is worth my setting up to use it; but it is working well.
Best, Randall