Jump to content
Macro Express Forums

Rustywinger

Members
  • Posts

    120
  • Joined

  • Last visited

Rustywinger's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. Can one of you enlightened brains help this poor guy figure out date math, such as a week that spans month ends/beginnings? Say I have a date 2022-05-05 and want to subtract a week, how would I account for the difference in month end days (28,30,31)? Is there an elegant solution or do I have to add more arguments such as listing the months that have <X days and subtract from 31 as necessary? Thanks!!! Gord
  2. I tried searching for "Mouse Move" but can't find a thing, so sorry if this is an oft-requested issue. I am trying to move my cursor from one end of screen to another, on the same X-Axis. However, I can't understand the logic behind this function. I set X and Y integer variables from mouse position. Then I add a number to X axis integer with modify integer, then supply both results into the X and Y fields of Mouse Move. However, the result varies depending on where the mouse is, ie-further away from top left screen, further the mouse moves. I even tried feeding the mouse move function with unedited mouse X/Y parameters... and it STILL moves somewhere else from where it was. I'm not a beginner with this stuff. It just seems counter-intuitive the way this is playing out. Thanks for any input!
  3. <VARIABLE SET STRING Option="\x00" Destination="%MyGoal%" Value="4"/> <VARIABLE SET STRING Option="\x01" Destination="%MyGoal%" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/> <VARIABLE SET STRING Option="\x00" Destination="Target" Value="1,2,3,4,5,6,7,8"/> <SPLIT STRING Source="%Target%" SplitChar="," Dest="%TVar%" Index="1"/> <GET ARRAY LENGTH Array="%TVar%" Dest="%TVarL%"/> <REPEAT START Start="1" Step="1" Count="%TVarL%" Save="TRUE" Variable="%CNT%"/> <IF VARIABLE Variable="%TVar[%CNT%]%" Condition="\x00" Value="%MyGoal%" IgnoreCase="FALSE"/> <VARIABLE SET BOOL Destination="%MyGoalReached%" Command="263" Value="TRUE"/> <END IF/> <END REPEAT/> <TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 My Goal Reached = %MyGoalReached%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> The above is fairly self explanatory when put into Macro Express, hope this helps! It requires you create an array of your searchable data, but that is easy enough to do.
  4. Hi, Kevin, looking at it now, thanks! :-) In the meantime, I just can't understand why this isn't a simple thing... I've seen things far more complex made straightforward by MEP!
  5. Sorry if this has been covered, I searched to the extent of my patience and can't seem to find a simple, straightforward solution. I need to set a date time variable from a 'YYYYMMDD' text string in order to increment the days and then convert back to a text string. Thanks in advance for gracing me with your expertise!
  6. Solution needed- two monitors, ME only changes resolution on one. How to make it change resolution of the other? Background: SO I have two monitors, main one is set up with a KVM switch and the other is plugged into a second computer. The main display is a 1280x1024 res and is the one attached to the switch. The second res is a 1440x900. I switch back and forth between two computers to work on tasks. One of these tasks has a window that cannot dynamically redraw based on monitor resolution, so parts of the interface are out of viewable range. I want to be able to temporarily change the resolution of the secondary monitor to accommodate the program running on it. Running the MEP function for monitor resolution only seems to work on the main monitor and leaves the second one unaffected. Any suggestions on how to get this working? Many thanks!
  7. Certainly not the Law of Benevolent Programming Automation. ;-) The indictment is fairly specific: FTA: "Lowson pleaded not guilty to charges of conspiracy, wire fraud and computer fraud. His lawyer, Mark Rush, said Wiseguy Tickets simply devised an ingenious way to buy tickets for brokers, who resold them to fans. But authorities say Lowson and his three co-defendants committed fraud by using 100,000 internet protocol addresses, a variety of company names, hundreds of e-mails and a web of credit card numbers to hide the fact that all the tickets were being bought by a single company. According to the indictment, they also committed a variety of computer crimes by using an army of online drones to circumvent security systems and enter ticket-selling websites ahead of fans. When Ticketmaster and other companies beefed up security, Wiseguy devised new ways to break through, authorities said." A much more detailed story on the charges here: http://news.yahoo.com/s/usnw/20100301/pl_usnw/DC62572
  8. I read about that a few days ago, the defense lawyer had a few choice metaphors and analogies to describe his clients: 1- "All my client is guilty of is building a better mousetrap" 2- "This is no different than the days of having all your friends camp overnight to buy the tickets". Not justifying it though, but I wonder how this case will end.
  9. I run a lot of macros consequently and the individual macros dynamically select which macro to run next based on data they collect. It helps me to know which one is running so I do the following: At the beginning of all my macros, I have entered the following: <VARIABLE SET FROM MISC Destination="%CurrentMacro%" Value="Name of Current Macro"/> My method usually has an updating dialog box tracking what is running which usually updates right after the above Variable gets set, but it might update at various keypoints within the macro. Expanding on that, I suppose you could bookend %CurrentMacro% with timestamps and append it to a text, etc, just a random thought.
  10. Oddly enough, a restart fixed the boolean issue. Yes, "the problem mysteriously disappeared" is an algorithm I am somewhat familiar with! I had this issue in a much larger set of macros (read:huge) and there were so many things to troubleshoot I spent most of the day on it before deciding to do the two-small macros test approach from my second post. Without fail, the last dialog box would return FALSE, exactly what it was doing in the large macro. So a restart apparently has this working now, resulting in TRUE.
  11. Looking at this more, it seems that my Boolean variable is not surviving a "Save all variables" in one macro and "restore all variables" in another. Example: at the end of a Macro named start, I set a Boolean named %ZZZZ% to TRUE, then "Macro Run" to macro2, which happens to start with "restore all variables". In macro2 %ZZZZ% has actually FLIPPED from True to False with no variable modification logic present. The two macros in separate boxes below demonstrate this <VARIABLE SET BOOL Destination="%ZZZZ%" Command="263" Value="TRUE"/> <TEXT BOX DISPLAY Title="Start Macro, after setting to True" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 %ZZZZ%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <VARIABLE SAVE Option="\x00"/> <TEXT BOX DISPLAY Title="Start Macro, after Save All variables" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 %ZZZZ%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <MACRO RUN Use_ID="FALSE" Name="end" ID="-1" Wait="TRUE"/> <TEXT BOX DISPLAY Title="Second macro, before variable restore" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 %ZZZZ%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <VARIABLE RESTORE Option="\x00"/> <TEXT BOX DISPLAY Title="Second Macro after Variable restore" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 %ZZZZ%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/>
  12. I have been getting these errors for undefined variable or variable of the wrong type. They are either boolean or control vars. In one case, I had named a control variable "%control2%" and MEP would never let the macro go past that line without letting me know it was either undefined or the wrong type. I checked in the variable editor to make sure it was a control variable and it was. I changed the name to "%C[2]%" and it worked just fine after that. Now I am starting to have the same issue with some named boolean variables. Is anyone else having this issue? Thanks!
  13. Since this is a general version update topic, I thought I would ask for help locating something mentioned in the release notes: "Renamed the 'Wait [ ] milliseconds between clipboard commands' option to reflect the change in how clipboard commands now work." Where does one find this in MEP? Thanks, rock solid so far!
  14. ?? Now this is confusing... I could have sworn for a variable value created in one macro to be available to another, it needed to be saved by one (by whatever your favorite means) and loaded by macros used later. As far as I know, ME variables do not stick around once a macro stops without saving them. Or perhaps you are talking about something else?
  15. Oh relax! For the most part the fine people at Insight have done this very well, I have had no issues at all with the conversion itself of the legacy files. The issues I did have were with macro timing, not variables. There was also the speed of loading the saved variables, which 4.1.1.1 appears to have addressed well. And then there is the new issue of the crash when restoring vars that have not previously been saved. But an easy workaround fixes that for me. All in all, this has worked very well considering the huge amount of Macros I was able to simply convert and run in the testing environment. I have not yet deployed anything and likely won't for awhile yet as the processes our offices use work just fine for now in ME3. I'm really not in a hurry to have an angry mob after me! :-)
×
×
  • Create New...