Jump to content
Macro Express Forums

All Activity

This stream auto-updates     

  1. Yesterday
  2. Thanks. I've reported my issue to Insight. Anyone else able to reproduce please?
  3. I'm not seeing this... But I am seeing another (possibly related?) error... MEpro 6.1.1.1 Win 10 I don't use the menu builder, but I did have a couple up sample popup menus built. I built a couple more. Top of screenshot is one of the new ones and the editor title bar does show "Menu Builder[Name]." Oddly, the older menu (that was disabled) cannot be opened or enabled... If I try to do either, I get the error report shown on the bottom of the image. I've emailed it to ... Bloody hell! I tried to re-create the error so I could see who I emailed it too, and this time the debugger tool crashed too! See below image. Anyway... The errant menu *does* work if I use the blue 'Run' button from the toolbar. I can run it -- just can't edit it, or enable it via right-click context menu.
  4. Very happy! This situation has been resolved via ME v6.1.1.4 . All is well. Thanks to all concerned Greg (not very newbe)
  5. Last week
  6. I'm doing some work on my many pop up menu macros. But something odd has happened to the titles which Menu Builder displays. Only the very first one is correct. All subsequent menu macros opened are just titled 'MENUS'. Hopefully my screenshots will add any clarification needed.
  7. Thank you Cory for making available this very clear explanation.
  8. For anyone wondering about variable scope, click here to see my explanation.
  9. Hi Terry, Glad you got it sorted. It's curious how many macro scripting issues can only be resolved through perseverance!
  10. Sorted! I had been blindly oblivious to the need for the main macro X to have all variables defined! It is just a series of four Macro Run commands. Each individual submacro M1, M2, A and B creates and uses variables. These get used in successive submacros. All were defined (globally) in their respective submacros. But despite that, two variables dDeg and tDeg created in A were not recognised in B. Perhaps it should have been obvious, but now that I have added dDeg and tDeg to the main macro X, all is well.
  11. Thanks Alan, yes there certainly must be! As mentioned, other submacros in the same main macro are passing on values OK. And I too did a similar simple test like yours, with the expected correct result. I’ll get back on the case tomorrow. It has me completely baffled. I recall similar issues, but they always turned out to be because I hadn’t defined the variables, as @samrae suggested.
  12. I wrote this simple hotkey activated script nicknamed "A": Variable Set String %Value% to "AAAA" Text Box Display: %Value% in A Macro Run: B <VARIABLE SET STRING Option="\x00" Destination="%Value%" Value="AAAA" NoEmbeddedVars="FALSE"/> <TEXT BOX DISPLAY Title="%Value% in A" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <MACRO RUN Use_ID="FALSE" Name="B" ID="-1" Wait="TRUE"/> And another script (with no activation) nicknamed "B": Text Box Display: %Value% in B <TEXT BOX DISPLAY Title="%Value% in B" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> The value of %Value% set in "A" is displayed correctly by "B." So your script should be working, unless something else is going on... and usually, something else is happening!!!
  13. @samrae Thanks, but they are correctly specified. If I use this macro // Use F5 after running this to show current state of ALL variables used in this session. Variable Restore: Restore All Variables the two variables in question tDeg and dDeg are reported correctly in the Variable window. I've temporarily resorted to Variable Save/Restore, but I won't rest until I fix this.
  14. Make sure they are defined in both macro A and macro B and that they are set as Global variables in both.
  15. In macro X I have these commands at the end. Macro Run: A Macro Run: B At the end of macro A several decimal and text variables are displayed correctly. At the start of macro B they are shown as zero or blank. I've tried all sorts of stuff over the last hour or so, such as renaming them, rewriting the TBD command, inserting dealys between A and B, restarting ME Pro, kicking the desk, etc. In vain. I could place a Variable Save and then in B a Variable Restore, but I shouldn't have to do that and I try to avoid those commands. There are other submacros before A and B, and their variables are being passed without a problem. Hair pulling time. Anyone have any ideas please?
  16. I have a similar macro, but it does only a single mouse move instead of two. That is, calculate the intended mouse destination BEFORE moving. I wonder if moving to the extreme limit of the window, rather than safely within the limits, might sometimes be a problem. // .... click on X at upper right of window Variable Set Integer %N30% from Width of Window Variable Modify Integer: %N30% = %N30% - 14 Mouse Move Window %N30%, 9 Mouse Left Button Click
  17. Earlier
  18. I found that "wait for webpage" did not work well so I switched to "wait for window". It is doing the job. I also like @terrypin's idea. The problem is that the flag has to be cleared sometime later and before the next time the webpage is opened again. That can be done with another "scheduled" macro that runs later or by manually running a macro before opening the webpage again. Regards
  19. Re "wait for..." command. It occurred to me after posting, that "wait for webpage" might be better than "wait for window." I'm not sure. Also Re Terrypin's use of "restore text variable." Pretty cool! I did not know that this command was a thing. :- }
  20. I ended up going with the kludgy workaround suggested by @kunkel321. At the same time, I replaced some of the mouse move and clicks with keyboard commands. I considered adding the flag suggested by @terrypin, but decided against it, because it seems to me another scheduled macro would be needed to reset the flag after some delay. Anyway, I now have a desktop icon that opens the webpage and launches the games. I really appreciate you guys helping me out. Thanks again.
  21. Thank you, Terry! You solved the mystery. I was on the verge of reporting this to Insight as a bug, when the real bug was in the software between my ears...
  22. @kunkel321 and @terrypin. Thanks for the new info. I will try a few of your ideas in the coming days.
  23. Alan, I got same behaviour on the couple of tests I had time for (Firefox and a folder). Strange. Speculative, but may be related to the other mouse cursor issue we were discussing? -------------------- EDIT at 08:40 Scrub that speculation! It's because the macro logic is wrong! The following does the job: Variable Set Integer %x%: Set to the Current Window's Width Mouse Move: %x%, 0 Relative to Current Window Mouse Move: -10, 10 Relative to Last Position // Nudge the mouse pointer a little so that it is visible in maximized windows <VARIABLE SET INTEGER Option="\x0A" Destination="%x%"/> <MOUSE MOVE Option="\x02" X="%x%" Y="0" _PROMPT="0x000A"/> <MOUSE MOVE Option="\x03" X="-10" Y="10" _PROMPT="0x000A" _COMMENT="Nudge the mouse pointer a little so that it is visible in maximized windows"/>
  24. I am having a problem with a simple script that moves the mouse cursor to the upper right corner of the current window: Variable Set Integer %x%: Set to the Current Window's Width Variable Set Integer %y%: Set to the Current Window's Top Mouse Move: %x%, %y% Relative to Current Window Mouse Move: -10, 10 Relative to Last Position // Nudge the mouse pointer a little so that it is visible in maximized windows <VARIABLE SET INTEGER Option="\x0A" Destination="%x%"/> <VARIABLE SET INTEGER Option="\x08" Destination="%y%"/> <MOUSE MOVE Option="\x02" X="%x%" Y="%y%" _PROMPT="0x000A"/> <MOUSE MOVE Option="\x03" X="-10" Y="10" _PROMPT="0x000A" _COMMENT="Nudge the mouse pointer a little so that it is visible in maximized windows"/> The script works in maximized windows, and also in windows that are clinging to the top of the screen. In other situations, for example, if I resize the window so that it is centred in the middle of the screen, the mouse cursor is correct for the x coordinate, but not the y coordinate. The error seems to be proportional, or at least related, to the distance of the top of window from the top of the screen. Can anyone confirm this behaviour? Or is there a flaw in my script?
  25. Try this. Variable Restore: Restore Text Variables // Restores previously set status of the flag If Variable %T[99]% Equals "Stop" // If 'Stop' then end the macro Macro Stop End If Delay: 0.1 seconds Text Box Display: Macro is continuing Delay: 0.1 seconds // Your macro commands here // Set the 'flag' T[99] to 'Stop' now that the macro has been run once Variable Set String %T[99]% to "Stop" Variable Save: Save Text Variables // Saves the status of the flag CODE <VARIABLE RESTORE Option="\x01" _COMMENT="Restores previously set status of the flag"/> <IF VARIABLE Variable="%T[99]%" Condition="\x00" Value="Stop" IgnoreCase="FALSE" _COMMENT="If 'Stop' then end the macro"/> <MACRO STOP/> <END IF/> <DELAY Flags="\x01" Time="0.1"/> <TEXT BOX DISPLAY Title="Macro is continuing" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang2057{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 T[99] = flag = %T[99]%\r\n\\par \r\n\\par The macro will now continue to run your commands, then set the flag T[99] to 'Stop'.\r\n\\par \r\n\\par So it will not run fully again unless you either disable the macro or write and run another macro to restart it.\r\n\\par \r\n\\par \\b Close this to continue.\\b0\\f1 \r\n\\par }\r\n" Left="505" Top="485" Width="594" Height="240" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <DELAY Flags="\x01" Time="0.1"/> <COMMENT Value="Your macro commands here"/> <COMMENT Value="Set the 'flag' T[99] to 'Stop' now that the macro has been run once"/> <VARIABLE SET STRING Option="\x00" Destination="%T[99]%" Value="Stop" NoEmbeddedVars="FALSE"/> <VARIABLE SAVE Option="\x01" _COMMENT="Saves the status of the flag"/> (Note: As described in my earlier post, it is best to place your code in a Code box, as I've done above.) The devil as usual is in the details. As you've found in this case, MEP's activation by 'Window is opened' is unfortunately unreliable. 'Window Gains Focus' usually works but adds complications. If my approach or @kunkel321's neat idea doesn't work then consider an additional macro to change the 'flag' under other conditions that meet your requirements, such as after a certain longish period of time, or when tab has been reactivated a certain number of times.
  26. One kludgy workaround might be to not have it activated by window title. Instead just have a link on the desktop. Then the macro is like: 1 open webpage 2 wait for window to be active 3 check boxes and stuff Then use that link as a shortcut to the website. It runs only once, only when you click on it. EDIT: -You can then (optionally) right click the link link and change its icon to look like your web browser. -Also note: As has been pointed out before on this forum, it is usually best to do web checkboxes via TextType <Tab><Tab><Space> rather than MoveMouse, Click, when possible.
  27. Nothing surprising happens. It just runs each time the window regains focus. If I tab away and back, for example. I simplified the macro code and changed the activation to the Google search page, "Google - Google Chrome". Lock Player: Wait for running macros to stop Delay: 500 milliseconds Mouse Move: 960, 960 Relative to Screen Delay: 500 milliseconds Mouse Left Click Delay: 500 milliseconds Mouse Move: 70, 190 Relative to Screen Delay: 1000 milliseconds Mouse Left Click Mouse Move: 380, 209 Relative to Screen Delay: 750 milliseconds Mouse Left Click Mouse Move: 960, 960 Relative to Screen Delay: 1000 milliseconds Unlock Player <LOCK PLAYER Wait="TRUE"/> <COMMENT/> <DELAY Flags="\x02" Time="500"/> <MOUSE MOVE Option="\x01" X="960" Y="960" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="500"/> <MOUSE LEFT CLICK/> <DELAY Flags="\x02" Time="500"/> <MOUSE MOVE Option="\x01" X="70" Y="190" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="1000"/> <MOUSE LEFT CLICK/> <MOUSE MOVE Option="\x01" X="380" Y="209" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="750"/> <MOUSE LEFT CLICK/> <MOUSE MOVE Option="\x01" X="960" Y="960" _PROMPT="0x000A"/> <COMMENT/> <DELAY Flags="\x02" Time="1000"/> <UNLOCK PLAYER/>
  28. What exactly happens when you - open that web page? - activate it again later? Ditto without the Lock/Unlock commands? Ditto in F9 mode? Ditto in F8 mode? Do any of those indicate the source of whatever problem you’re still having? I don’t want to subscribe to the WNBA League Pass site to test your macro. So please edit as requested to make it as short and simple as possible and using a web site widely accessible. But still exhibiting whatever symptoms you describe. EDIT: Include your script code for multiple macros in separate Code boxes.
  1. Load more activity
×
×
  • Create New...