Jump to content
Macro Express Forums

Look_Up

Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by Look_Up

  1. Sure. You make so many good answers (and earn a huge fame) so this time the credits goes to me.
  2. curious! This morning I tested both macros with "global variable" (Make this variable availably to macros called by this macro, Macro 1+Macro 2) Doesn't work. Now, it works O_o Thanks Cory. Problem solved. Solution: "Make this variable availably to macros called by this macro" in Macro 1 AND Macro 2
  3. Macro 1 <VARIABLE SET STRING Option="\x00" Destination="%content_variable[4]%" Value="This is what i want to write." NoEmbeddedVars="FALSE"/> <MACRO RUN Use_ID="FALSE" Name="Macro 2" ID="-1" Wait="TRUE"/> Macro 2 <VARIABLE SET STRING Option="\x00" Destination="%content_variable[1]%" Value=" [ " NoEmbeddedVars="FALSE"/> <DELAY Flags="\x03" Time="300"/> <DATE/TIME Format="dd.MM.yyyy hh:mm" Flags="\xB0" Date="19.12.2013 12:19:01" Day_Offset="0" Month_Offset="0" Year_Offset="0" Hour_Offset="0" Minute_Offset="0" Second_Offset="0" Left="Center" Top="Center" Monitor="0" Variable="%content_variable[2]%" IsDateVar="FALSE"/> <DELAY Flags="\x03" Time="300"/> <VARIABLE SET STRING Option="\x00" Destination="%content_variable[3]%" Value=" ] " NoEmbeddedVars="FALSE"/> <DELAY Flags="\x03" Time="300"/> <COMMENT Value="Here should stay the content from Macro 1"/> <DELAY Flags="\x03" Time="300"/> <JOIN STRING Source="%content_variable%" StartIndex="1" EndIndex="4" Destination="%content_variable[5]%" _COMMENT="join string from 1 to 4 in array %content_variable[5]%"/> <DELAY Flags="\x03" Time="300"/> <VARIABLE MODIFY STRING Option="\x12" Destination="%content_variable[5]%" Filename="C:\\Users\\Besitzer\\Desktop\\Logfile.txt" Strip="TRUE" NoEmbeddedVars="FALSE"/> I want to use %content_variable[4]% (Global Variable) in Macro 2 so that all content from Macro 1 and Macro 2 comes together, "join" the string, and write it into a textfile. The problem is: Macro 2 (not Global Variable) do not take the content from Macro 1 and join the string. (content from Macro 2 is taken) OR Content from Macro 1 is taken (Macro 2 Variable Global), but do not take the content from Macro 2. How can i fix this? Look_Up Macro 1.mex Macro 2.mex
  4. Hello i wrote you a macro. Hope this is what you wan't ?! <VARIABLE SET INTEGER Option="\x00" Destination="%minutes%" Value="1"/> <VARIABLE SET INTEGER Option="\x00" Destination="%seconds%" Value="59"/> <TEXT BOX DISPLAY Title="Info" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1031{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 Application will terminate in 5 minutes !\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x01" Delay="0"/> <DELAY Flags="\x00" Time="1"/> <REPEAT UNTIL Variable="%minutes%" Condition="\x00" Value="-1" _COMMENT="Repeat until 4 min (59 sec) left"/> <COMMENT Value="Decrease seconds from 59 until 0"/> <REPEAT UNTIL Variable="%seconds%" Condition="\x02" Value="0"/> <UPDATE TEXTBOX Header="Info" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1031{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 Application will terminate in %minutes%:%seconds% minutes !\r\n\\par }\r\n"/> <DELAY Flags="\x02" Time="950"/> <IF NOT WINDOW Option="\x01" Title="Info" Partial="FALSE" Wildcards="FALSE" _COMMENT="check if window \"Info\" closed by user action"/> <BREAK _COMMENT="if the window doesn't exist (closed by user), marco exit the loop"/> <END IF/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%seconds%" Value1="%seconds%" Value2="1"/> <END REPEAT/> <COMMENT Value="End of Decrease seconds "/> <VARIABLE SET INTEGER Option="\x00" Destination="%seconds%" Value="59"/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%minutes%" Value1="%minutes%" Value2="1"/> <END REPEAT/> Download macro below time_left_macro_with_window.mex
  5. "The handle is invalid" indicate that you try to save the filename in handle variable and Macro Express doesn't accept this. Try to save the name of fileslist in "string" variable just the way like Cory has proposed > as array (string variable[x] )
  6. When you use "FTP Get File" try another "Transfer Mode" eg. Binary, Unknown (default is ASCII) Look_Up
  7. For the future: when you creating a macro use "Lock Player" and "Unlock Player" to prevent that another marco starts running when one macro already runs. Look into the command list and push F1-Help-key to get more information. Do you have further questions to Macro Express Pro, you are welcome to post in here. Look_Up
  8. It's good to know which browser you use, but anyway: Use "Program Lunch" (from Windows/Programs). Program/Path name: Path name of your browser. Program Parameter: URL from website. Sample: PROGRAM LAUNCH "FIREFOX.EXE" (Normal) Parameters: www.google.de <PROGRAM LAUNCH Path="FIREFOX.EXE" Mode="\x00" Parameters="www.google.de" Default_Path="TRUE" Wait="1" Get_Console="FALSE"/> Look_Up
  9. Do you talking about window or a Tab ? Quote from the help (F1): Method to Set Handle(s) Window with a Specific Title Window with a Specific Title saves the name of a single window to a handle variable. If more than one running window contains the same Title, the first window found by Macro Express is saved to the variable. You can try to identify the window with "Get Control" / "Cature Control", and compare it with "if variable" %control1% equal %control2% then, else. But ME Pro is not very accurate to identify window title. Look_Up
  10. Macro Express Pro 4.5.0.1 with Windows 7 Hello. I need fast help from community. How can add a tabulator into a text file without open the texfile/using any editor ? Here is a sample source code but <TAB> save only the "word" TAB and do not add a tabulator: Thanks for your help Look_Up
  11. Currently there is no way to read out the value "last run time" (of macro). But you can make a suggestion for future. Calculating time in macro isn't easy. Is the "delay without ability to halt"-command an option ? <LABEL Name="Start"/> <COMMENT Value="commands"/> <DELAY Flags="\x00" Time="180"/> <GOTO Name="Start"/> Look_Up
  12. Use "default case" when no argument match ! code example: <SWITCH Variable="%N[1]%"/> <CASE Value="1" _COMMENT="in case %N[1]% value is 1"/> <COMMENT Value="commands, what should I do"/> <END CASE/> <CASE Value="2" _COMMENT="in case %N[1]% value is 2"/> <COMMENT Value="commands, what should I do"/> <END CASE/> <COMMENT Value="in case %N[1]% is 3, 4 or 5"/> <CASE Value="3"/> <CASE Value="4"/> <CASE Value="5"/> <END CASE/> <DEFAULT CASE _COMMENT="in case no value match above, default case will executed"/> <COMMENT Value="inside commands here"/> <END CASE/> <END SWITCH/> Thanks to the moderator of this forum, who deleted my post completely. Do you need further information simply, write here what you want to do with the macro. Look_Up
  13. Hello. You can do this with switch case-command ! code example: <SWITCH Variable="%N[1]%"/> <CASE Value="1" _COMMENT="in case %N[1]% value is 1"/> <COMMENT Value="commands, what should I do"/> <END CASE/> <CASE Value="2" _COMMENT="in case %N[1]% value is 2"/> <COMMENT Value="commands, what should I do"/> <END CASE/> <COMMENT Value="in case %N[1]% is 3, 4 or 5"/> <CASE Value="3"/> <CASE Value="4"/> <CASE Value="5"/> <END CASE/> <END SWITCH/> You are welcome for further question
  14. Hello. For your specific case please use "waiting for window title" under Timing. You can also slow down the macro playback speed: Select "Macro Control" from left side and then "Macro Playback Speed" value 0.5 slow down you macro half time value 2 speed up your macro to times Your code, optimized: <DELAY Flags="\x01" Time="1"/> <CLIPBOARD COPY/> <WINDOW ACTIVATE Title="Microsoft OneNote" Exact_Match="FALSE" Wildcards="FALSE" _IGNORE="0x0006" _COMMENT="Go to OneNote Window"/> <WAIT FOR WINDOW TITLE Title="Microsoft OneNote" Partial="TRUE" Wildcards="FALSE" Indefinite="FALSE" Hours="0" Minutes="0" Seconds="15" _COMMENT="!! Important !!"/> <MOUSE MOVE Option="\x02" X="393" Y="211" _PROMPT="0x000A" _COMMENT="Location of Page Title"/> <DELAY Flags="\x02" Time="350"/> <MOUSE LEFT DOUBLE CLICK/> <DELAY Flags="\x02" Time="350"/> <CLIPBOARD PASTE _COMMENT="Paste Page Title"/> Timing between every click, is VERY IMPORTANT ! 300 ms - 350 ms should be enough for this. Look_Up
  15. To start the macro you can select from "Activations" looking for "window title" [Picture] To optimize your code use the key Strg.+A to select all text from webside without mouse click. Here is the optimized code: <WAIT FOR WINDOW TITLE Title="word - Windows Internet Explorer" Partial="TRUE" Wildcards="FALSE" Indefinite="FALSE" Hours="0" Minutes="10" Seconds="0"/> <DELAY Flags="\x02" Time="300"/> <COMMENT Value="Select all text at the window"/> <TEXT TYPE Action="0" Text="<CONTROL>a"/> <DELAY Flags="\x02" Time="300"/> <COMMENT Value="Copy and check the text"/> <CLIPBOARD COPY/> <DELAY Flags="\x01" Time="1"/> <IF CLIPBOARD Option="\x01" Text="word." CaseSensitive="TRUE"/> <MACRO RUN Use_ID="FALSE" Name="word." ID="-1" Wait="TRUE"/> <END IF/> Why do you want to start another macro if you can do everything in one? Look_Up
  16. Please explain your problem in detail! I can not quite comprehend, how long you would like to press which button. You can simulate every keystroke (with every delay) if you use the command "keyboard repeat delay" or "keyboard repeat speed".
  17. Please look at this thread "Holding down a key?" Use keystroke speed from command list (Timing). Write if you need further help. Look_Up
  18. To hold a key down select from sidebar command list Timing - Keystroke Speed - enter valve "1000" to hold your key for 1 second down. Dont forget to reset keystroke speed to "0" to revoke the delay, otherwhise they key is still holding down. Do you need help selcect the command and press "F1" key Look_Up
×
×
  • Create New...