Jump to content
Macro Express Forums

ellinarac

Members
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ellinarac

  • Rank
    Member

Profile Information

  • Gender
    Male

Recent Profile Visitors

35 profile views
  1. ok, I'll give this a shot. question, being it has the date as well as the time in this, will I have to change the date in the code every day? or can this be done with strictly time and not have the date at all? or does this automatically adjust for the date, or does the date not matter at all? sorry, making "time based" macros is completely new to me. the most I have really done until a few months ago was basically doing "screen recordings" and then editing that as needed lol
  2. this is being used for an application that goes off line around 6am and then comes back online around 6:30am, thats why the weird times. I start it before I go to bed (usually around 1am) and let it run until I wake up (usually around 10 or 11am) and then if I am not home of a day I let it run as well. the way I originally had it set up it would stop the macro at 5:30am, but then after that you could not run it at all unless you disabled those commands in the macro because I guess since anything after 5:30am is greater than that set time up until 12am. so basically I was just messing around trying to figure out how to have it stop at 5:30 and then restart at 7.
  3. ok, back to this again. I have noticed that the above isn't exactly doing what I want it to do after all. it is set to stop the macro if the time is equal to or greater than 5:30am, well, the problem I have is the macro will not run at all with this setup until it's after 12am and then stops at 5:30, so it won't run during the day. what I really need is the command for the macro to stop running between 5:30am and then start back up at 7am. what I tried was this, seems to do nothing at all lol <VARIABLE SET INTEGER Option="\x00" Destination="%TargetHour%" Value="5"/> <VARIABLE SET INTEGER Option="\x00" Destination="%TargetMinute%" Value="30"/> <VARIABLE SET INTEGER Option="\x00" Destination="%TargetHour2%" Value="7"/> <VARIABLE SET INTEGER Option="\x00" Destination="%TargetMinute2%" Value="00"/> <VARIABLE SET INTEGER Option="\x13" Destination="%Hour%"/> <VARIABLE SET INTEGER Option="\x14" Destination="%Minute%"/> <IF VARIABLE Variable="%Hour%" Condition="\x04" Value="%TargetHour%" IgnoreCase="FALSE"/> <AND/> <IF VARIABLE Variable="%Hour%" Condition="\x05" Value="%TargetHour2%" IgnoreCase="FALSE"/> <AND/> <IF VARIABLE Variable="%Minute%" Condition="\x04" Value="%TargetMinute%" IgnoreCase="FALSE"/> <AND/> <IF VARIABLE Variable="%Minute%" Condition="\x05" Value="%TargetMinute2%" IgnoreCase="FALSE"/> <TEXT BOX DISPLAY Title="Closing" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs24 Closing Macro \r\n\\par Due to Time\\b0\\f1\\fs16 \r\n\\par }\r\n" Left="641" Top="360" Width="167" Height="143" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x02" Delay="0"/> <DELAY Flags="\x03" Time="1857"/> <TEXT BOX CLOSE Header="Closing"/> <MACRO STOP/> <END IF/>
  4. kunkel321 yea, I know the EnfIf doesn't "end the macro" it just ends the if condition. ran a test on mine for a few hours using variable times, so far seems to be working. now to incorporate it into other areas of my macros. This was simple and effective enough <VARIABLE SET INTEGER Option="\x00" Destination="%TargetHour%" Value="5"/> <VARIABLE SET INTEGER Option="\x00" Destination="%TargetMinute%" Value="30"/> <VARIABLE SET INTEGER Option="\x13" Destination="%Hour%"/> <VARIABLE SET INTEGER Option="\x14" Destination="%Minute%"/> <MACRO PLAYBACK SPEED Speed="1"/> <IF VARIABLE Variable="%Hour%" Condition="\x04" Value="%TargetHour%" IgnoreCase="FALSE"/> <AND/> <IF VARIABLE Variable="%Minute%" Condition="\x04" Value="%TargetMinute%" IgnoreCase="FALSE"/> <TEXT BOX DISPLAY Title="Closing" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs24 Closing Macro \r\n\\par Due to Time\\b0\\f1\\fs16 \r\n\\par }\r\n" Left="641" Top="360" Width="167" Height="143" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x02" Delay="0"/> <DELAY Flags="\x03" Time="1857"/> <TEXT BOX CLOSE Header="Closing"/> <MACRO STOP/> <END IF/>
  5. I got it and feel kind of dumb as to the reason I couldn't get it to work lol... I forgot the damn "EndIf" lol
  6. this may have been covered, but I haven't found it yet. Anyway, what I want to do sounds like it would be easy enough, but I haven't been able to get it working. I have a 40 part macro, each part calls the next macro in line. I am trying to get it to stop the macro all together at the first part if the time of day is 6AM to 7AM. it can either completely stop at 6am, or if possible, stop at 6AM and restart at 7AM, either way. I saw something a while back (seems like years ago) that mentioned something along those lines but haven't been able to find it again.
  7. as in, scan screen for an image, if image found, click on image, if image not found, wait for image. I have a second app that does support this function and have the 2 apps working together. just thought it would be nice to have everything working in ME than having to install and use 2 programs for 1 macro lol
  8. Yea, I really like the ease of ME for the most part. I may end up looking into the other app and rebuild my macros for it so I don't need 2 apps for one macro lol, I'm also considering looking into the pixel color option and having it do a repeat search for a color, or range of colors with in an area of the screen, then when color found continue macro, have it repeat this search for a certain number of times, then if color not found jump to section of macro. a lot to learn lol. getting the pixel color at a pixel that constantly makes changes with in what appears to be a set variable, the same cycle of number codes seem to repeat, just in random orders and it might throw in a random color number that isn't there often or is swapped with another random number at various times. they change pretty quick as well, and hitting print screen over and over again a few dozen times, you may or may not get one you already got a screen shot of lol.... damn, just had an idea lol. I could use my screen capture to record the numbers as they change, then play the video frame by frame to get the cycle of numbers.... feel like an idiot for not thinking of that earlier lol.
  9. I'm wondering if ME can do "image recognition", I know you can do pixel color searches and things of that nature, but what about actual image capture and search? the reason I ask is because right now, I am using 2 macro applications and the other app is strictly being used for the image search function, nothing else. I would like to be able to have ME perform everything without the need for a second app but so far I don't see that happening being I see no options for an actual "image recognition" , "Image search" or "image capture" in ME and "pixel color" is pretty much useless for a lot of instances in my macro because the actual pixel colors have random color variations (very slight variations, but enough to make it not work right) but the image recognition in the other app works great because you can select the area of the screen to capture the image, compare it to the full screen capture, set a tolerance level for color range in the image you are looking for and it works nearly 100% of the time. basically the code for the other app looks like this but haven't figured out a way to get this effect in ME as of yet. SetFocus>cellinarac Atruin Wait>1.5 GetScreenRes>sx,sy ScreenCapture>0,0,sx,sy,C:\Users\cellinarac\Documents\Test Macro\screen.bmp FindImagePos>C:\Users\cellinarac\Documents\Test Macro\Image1.bmp,C:\Users\cellinarac\Documents\Test Macro\screen.bmp,30,1,XPos,YPos,imgs If>imgs>0 MouseMove>XPos_0,YPos_0 Wait>1.0 LDown Wait>0.2 LUp Wait>1.5 Endif Wait>2.5 Press CTRL Wait>0.2 SendText>m Wait>0.1 Release CTRL Exit
  10. yes, I removed all the mouse movements and used actual co-ords now and it works smoother. LOL, no I didn't mean "Cellinarac Atruim" lol , Cellinarac Atruin was actually a random generated IGN from a game I played years ago, and since it's not something people use, I use it for most games or accounts.... though, I seemed to have missed the "C" all together when I created my account here....😕
  11. thanks kunkel321. after a little messing around I got your example working perfectly so far, waiting for it to finish all the cycles to make sure it advances as usual Edit- everything seems to be working great so far!
  12. didn't see the last part of your reply until now, going to try that
  13. what I am trying to get is a timer that displays the seconds left before moving on to the next part of the macro. in this case, the macro presses (F1) and (F2) then waits for a variable of 54 to 57 seconds before pressing those keys again, it repeats this process for 12 to 15 cycles and then moves on to the next steps in the macro. what I am trying to do, and "some what" got working, is to have a little timer box sitting in the corner that shows time left between the second set of key presses. what I have so far works for the first cycle, but when it goes to the second cycle it starts the countdown at -1 instead of resetting to the variable of %LTimer%. this in turn removes the <DELAY Flags="\x03" Time="%LTimer%"/> because the displayed timer will replace the "delay". the first cycle works all the way down to "0" on the countdown display, then when the macro goes into it's second cycly of %VarNum% the box doesn't actually update or reset and starts off at -1 causing it to just rapidly press the keys. hopefully this all makes sense. here is what I have now. <VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="12" Maximum="15"/> <VARIABLE SET INTEGER Option="\x05" Destination="%LTimer%" Minimum="54" Maximum="58"/> <DELAY Flags="\x02" Time="415"/> <TEXT BOX DISPLAY Title="Pattern 1" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Cycles Remaining\r\n\\par \\f1 %VarNum%\\b0\\fs16 \r\n\\par }\r\n" Left="613" Top="35" Width="197" Height="88" Monitor="0" OnTop="TRUE" Keep_Focus="FALSE" Mode="\x02" Delay="0"/> <REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/> <WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <DELAY Flags="\x02" Time="645"/> <MOUSE MOVE Option="\x01" X="994" Y="152" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="348"/> <MOUSE MOVE Option="\x01" X="995" Y="149" _PROMPT="0x000A"/> <DELAY Flags="\x03" Time="500"/> <MOUSE LEFT CLICK/> <DELAY Flags="\x03" Time="327"/> <TEXT TYPE Action="0" Text="<F1>"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F2>"/> <REPEAT UNTIL Variable="%LTimer%" Condition="\x02" Value="1"/> <TEXT BOX DISPLAY Title="Timer" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Cycle Time Remaining\r\n\\par \\f1 %LTimer%\\f0 sec\\b0\\f1\\fs16 \r\n\\par }\r\n" Left="602" Top="107" Width="197" Height="88" Monitor="0" OnTop="TRUE" Keep_Focus="FALSE" Mode="\x02" Delay="0"/> <DELAY Flags="\x03" Time="994"/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%LTimer%" Value1="%LTimer%" Value2="1"/> <UPDATE TEXTBOX Header="Timer" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Cycle Time Remaining\r\n\\par \\f1 %LTimer%\\f0 sec\\b0\\f1\\fs16 \r\n\\par }\r\n"/> <TEXT BOX CLOSE Header="Timer"/> <END REPEAT/> <WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F1>"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F2>"/> <DELAY Flags="\x03" Time="500"/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/> <UPDATE TEXTBOX Header="Mining Pattern 1" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Cycles Remaining\r\n\\par \\f1 %VarNum%\\b0\\fs16 \r\n\\par }\r\n"/> <END REPEAT/> <TEXT BOX CLOSE Header="Pattern 1"/> <DELAY Flags="\x03" Time="349"/> <DELAY Flags="\x03" Time="367"/> <MACRO RUN Use_ID="FALSE" Name="Pattern 2" ID="-1" Wait="TRUE"/> <DELAY Flags="\x03" Time="362"/> <MACRO STOP/>
  14. Ok, so what I am trying to do this time, is make a msg box that appears and shows a countdown timer from a variable. this macro already has a repeat function and the location I need this countdown to display in inside the repeat perimeters that is already there, for example. <VARIABLE SET INTEGER Option="\x05" Destination="%VarNum%" Minimum="12" Maximum="15"/> <VARIABLE SET INTEGER Option="\x05" Destination="%LTimer%" Minimum="54987" Maximum="57143"/> <DELAY Flags="\x02" Time="415"/> <TEXT BOX DISPLAY Title="Pattern 1" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Mining Cycles Remaining\r\n\\par \\f1 %VarNum%\\b0\\fs16 \r\n\\par }\r\n" Left="613" Top="35" Width="197" Height="88" Monitor="0" OnTop="TRUE" Keep_Focus="FALSE" Mode="\x02" Delay="0"/> <REPEAT UNTIL Variable="%VarNum%" Condition="\x02" Value="1"/> <WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <DELAY Flags="\x02" Time="645"/> <MOUSE MOVE Option="\x01" X="994" Y="152" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="348"/> <MOUSE MOVE Option="\x01" X="995" Y="149" _PROMPT="0x000A"/> <DELAY Flags="\x03" Time="500"/> <MOUSE LEFT CLICK/> <DELAY Flags="\x03" Time="327"/> <TEXT TYPE Action="0" Text="<F1>"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F2>"/> <DELAY Flags="\x03" Time="%LTimer%"/> THIS IS WHERE I WANT THE TIMER TO POP UP AND COUNTDOWN FROM THE %LTIMER% VARIABLE TO SHOW REMAINING TIME <WINDOW ACTIVATE Title="cellinarac Atruin" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F1>"/> <DELAY Flags="\x03" Time="500"/> <TEXT TYPE Action="0" Text="<F2>"/> <DELAY Flags="\x03" Time="500"/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%VarNum%" Value1="%VarNum%" Value2="1"/> <UPDATE TEXTBOX Header="Pattern 1" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\qc\\b\\f0\\fs20 Mining Cycles Remaining\r\n\\par \\f1 %VarNum%\\b0\\fs16 \r\n\\par }\r\n"/> <END REPEAT/> <TEXT BOX CLOSE Header="Pattern 1"/> <MACRO RUN Use_ID="FALSE" Name="Pattern 2" ID="-1" Wait="TRUE"/> <MACRO STOP/>
×
×
  • Create New...