Jump to content
Macro Express Forums

MBone

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by MBone

  1. If this is a webpage, the 'wait for page to load' command might be an option. Also note that if the 'title' of the active window changes, then that might be useful too.... -sk

     

    the delays are for my visual clues to where i am getting my information. I some times use the computer during the macro runs and need to know when to leave it be and when i can use it.

     

    This topic came from getting an error from a pixel (macro was doing correct and i didnt account for it) where i had a rotating icon. It would cycle over where i need to get the pixel info and i didnt think it was doing that. I added "and" to the check with 2 ms apart and fixed the problem.

     

    Correct me if i am work for doing this way but i use this program by breaking things down into logic mods and macro mods. Just to clear up things as i tend to be a little back country typer. Logics are macros that get variables to decide what macro to do next. Currently i have it doing what i need to but not the most efficient way. And i need a little bit of information.

     

    since i am doing the break down of mods do the variable i set stay, for example N10 on one of the macros stay that way until they are overwritten or do they clear after step has been complete. I will try to draw this out.

     

    Macro Run: username/password

     

    Delay 30 Seconds

     

    Macro Run: example one ...............(these are broken down further on each one) (N10 from here will or will not change)

     

    Delay 30 Seconds

     

    Macro Run: example two ...................................................(when this one starts)

     

    Delay 30 Seconds

     

    Macro Run: expample three

     

     

    IF i need to reword it let me know.

     

    Mbone

     

    Or well i will do it now, For an example will N10 stay a set value until it is changed with an input or by variable set intenger?

  2. I've been having a similar problem. I set up a Repeat Until using an integer from the mouse locator, and a wait and Get Pixel in the loop. It never detected the color. I added a text display in the loop to show what color was actually being detected and it differed from what mouse locator showed me. So I changed the Repeat Until to use the color integer actually detected. Then it seemed to work but also erroneously ended the loop when the window had an entirely different display with totally different colors than the one I was looking for.

     

    This thing seems way too flaky and finicky to use for anything serious.

     

     

    I have had great results when i figure out how i want to do thing. The problem that i was having here was that i was getting stuff from two variables and when i was suppose to be getting from one. After i found my mistake it works fine. In my opinion this is a pretty solid program. I have been able to do what i want with it.

     

    mbone

  3. here is the code.

     

    Mouse Move Screen 1355, 190
    Delay 2 Seconds
    Get Pixel: Screen Coords: 1355,190 into %N11% 
    If Variable %N11% = 0
     Text Type: <F1>
    End If
    Mouse Move Screen 962, 1031
    Delay 4 Seconds
    Mouse Move Screen 1355, 190
    Get Pixel: Screen Coords: 1355,190 into %N11% 
    Delay 4 Seconds 
    If Variable %N11% <> 0
     Text Type: <F2><F3>
     Mouse Move Screen 918, 985
     Mouse Left Button Click
     Mouse Move Screen 918, 985
    End If
    

     

    Can some confirm this? When the command get pixel add new infomation to N11 if the old is overwrote or combined?

     

    MBone

  4. Add this code after the else (before or after the delay is up to you):

    Variable Modify Integer: Inc (%N1%)

     

    This command will increase N1 from whatever it started out as by 1. Once N1 = 34 your repeat will end (as indicated in

    the Repeat Until command.

     

    You'll probably also want to add a Variable Set Integer %N1% to 0 or 1 before beginning the repeat.

     

    I hope this answers your question. If not, I misunderstood and would be happy to take another crack at it.

     

    PS

     

    The key combination for pausing your macro mid-run is going to depend on your preferences. You can check it by

    selecting:

    Options -> Preferences -> Playback

     

    I have personally never found any use for the "pause" function like that. For debugging, I generally throw a Pause

    Command into the macro itself or use a Text Box Display to help me locate trouble-spots, then once I'm convinced

    the Macro is Working right, I either delete it, or de-activate that command (don't forget to save).

     

    Based on the info in your post, I would build my macro to look like this:

     

    Variable Set Integer %N1% to 1
    Repeat Until %N1% = 34
     Mouse Move Screen 123, 123
     Get Pixel: Under Mouse into %N2%
     If Variable %N2% >= 1000
    AND
     If Variable %N2% <= 1005
    Text Type: <F2><F3>
    Delay 60 Seconds
     Else
    Delay 20 Seconds
    Variable Modify Integer: Inc (%N1%)
     End If
    Repeat End

    Here's the direct editor script

    <IVAR2:01:01:1><REP3:08:000001:000002:0001:0:01:34><MMS2:123,123><GETPXM:2><IFVAR2:2:02:5:1000><AND><IFVAR2:2:02:6:1005><TEXTTYPE:<F2><F3>><DELAY:60><ELSE><DELAY:20><NMVAR:08:01:0:0000001:0:0000000><ENDIF><ENDREP>

     

     

    thanks i will test it out and let you know. I knew the command was there but i could not find it or figure out away to implement it.

     

    mbone

  5. Repeat until N1=34

    Mouse move 123,123

    Get pixel into N2

    If var N2 >=1000

    and

    If var N2 <=1005

    text type F2 F3

    delay 60 seconds

    else

    delay 20 seconds

    (What command do i put here)(this is where i want to put in the counter to add 1 every time it completes the macro)

    end

    repeat end

     

    I have this macro running as intended but i want to add a loop and timer on it. I was reading last night and it says i can do it but i just dont know how to. To explain what i want is to add the macro counter on the ELSE part of the macro. So that it counts up to a certain number and then the loop will stop. I do understand that i have to put in "repeat width 1" so that i will get 01,02,03 etc... What i dont know how is the getting it from 01, 02 and so on.

     

    The help on it was a little confusing.

     

    also does anyone know what the PAUSE command it. I tried the "pause" and "Scroll lock" keys but it just kept going. The pause button really helps when testing out programs without having to what for the outside variable to happen.

     

    thanks

     

    MBone

  6. Thank you Mbone for your reply, though I'll be honest and say I was a bit confused, I'm not super saavy when it comes to programming stuff. This is what I have so far:

    ------------------------------------------------------

    Repeat Start (Repeat 10000 times)

    If Ping Successful: "www.yahoo.com"

    Else

    Web Site: http://www.jackalwireless.net/hotspot/index.php [Default Browser - Wait to load]

    Macro Playback Speed: Normal Speed

    Mouse Move Screen 854, 198

    Mouse Left Button Down

    Mouse Left Button Up

    Delay 6869 Milliseconds

    Mouse Move Screen 1010, 13

    Mouse Left Button Down

    Mouse Left Button Up

    Delay 3444 Milliseconds

    Mouse Move Screen 898, 745

    End If

    Repeat End

    -----------------------------------------------------

     

    It works to a point, but I can't figure out the right spot to put the repeats to make the script actually stop if the ping is successful and start the script all over again, thus continuously just pinging, unless the ping comes up unsuccessful in which case it should continue with rest. Basically, what I'm trying to accomplish is that I use a wifi to connect to my internet provider. In order to have online access a webpage must be accessed and a log-in completed. Well, at times, the wifi provided drops my link, thus I have to go back to the website and log back in. If I'm trying to download a lengthy file or something, and I go to work, the whole day is wasted if the link is dropped. So my macro is to ping a website repeatedly and if the ping works, then wait a bit and ping again. If the ping does not go though, that probably means the link got booted, so open the browser, which will automatically bring up the login page to the provider, and click on a button to log-in (username and password are filled in automatically by the browser). Once the button is clicked, go back to the beginning of the script and begin the processess of pinging over again.

     

    What I'm getting with the above script is just constantly acting as if the ping is unsucessful. Every 30 seconds the browser is opened up, the website gone to, and the button clicked, whether I have internet access at the time or not. So, basically, I don't know what I'm doing wrong with the above.

     

    Again, any help would be greately appreciated.

     

    Try this and let me know. Sorry i did kind of confuse myself. sometimes the hands do something but my brain is saying something else. I am not the best at it but it helps me when people give me an idea, right or wrong.

     

     

    If Ping Successful: "www.yahoo.com"

    Delay 300seconds (adjust to what ever you like)

    Else

     

    the way you have it set up it will keep going 10k and then stop.

     

    and also you could open a command line do ping www.thewebsite.com /t that will keep the ping going if you want to run that in the background.

     

    Mbone

  7. i found a work around for it but if anyone could tell me how to get it to work it would be great. Working on expanding the small macro i have running right now.

     

    thanks

     

    MBone :ph34r:

     

     

    Was wonder if any knows a way of recording the control key into a regular macro. I have tried the Adding it manually to the script by doing the text type as well as the control key down, then left click and then control key up but no go.

     

    What i am needing to do is control click on something on the screen. My current work around for this is using the right mouse button to do this. I sometimes get a little bit of latency and it can cause the click to be in the wrong place.

     

    anyone have suggestion?

     

    Mbone

  8. Okay, this is what I'm trying to do and can't for the life of me figure out the proper way to accomplish it. I've read the how-to's and such but they don't seem to cover it. The script I'm trying to create is to ping a website, if the ping is successful, repeat after x amounts of minutes. If the ping is unsuccessful, then continue on with the script to do another task, and after that second task is completed start from the beginning again (with the pinging) and on and on forever...

     

    I guess my problem is where to put the repeats in relation to the events. How to get the script to start over if the ping is successful or continue on with the script if not.

     

    Basically, in a nutshell:

     

    ::Position A

     

    if ping successful...

    go to position A

    if ping unsuccessful

    do this task

    go to position A

     

    repeated indefinately.

     

    If this were BASIC I'd be all set...

     

    Thank you all for any help you might be able to provide.

     

     

    JA

     

    Read over the "and, or and xor" commands and look at the example macros. They helped me.

     

    +++++

    Get text in t1 (i dont have the program in front of me so i cant remember the right command) at screen/window coordinates.

    if var %t1% contains !

     

    continue next step

     

    ELSE

     

    delay 30 second

     

    End if

    +++++

    and

    +++++

    program run "cmd.exe"

    text type "ping thisisthewebsite.com"

    then use the

    if var %t1% contains !

     

    continue next step

     

    ELSE

     

    delay 30 second

     

    End if

     

    +++++

     

    I hope this helps. I will look around again when i get home and open up the laptop. I hope this kind of got you heading in the right direction.

     

    Mbone

  9. I got the logic to work a few time and then i added a delay on it and i cant get it to work now. I have put in the logic control and need someone to put a different set of eyes on it to see if i am doing something wrong. Let me explain what i am trying to do. I play a online game and using this to run a few task for me.

     

    I have it set to get the pixel color of a item that is only available at one point in the game and only on the screen at 1668,177. When i do pixel color with the mouse locator i get 12806656. I get a different number (14776832)when i do the get pixel at 1668, 177 and put them into N1 variable. So i both and cant seem to get them to work.

     

    I set a macro to run if the variable passes or if it fails so that i can test it out. The other macros are really simple click here and type "delayed" or "it worked" and work every time i use them.

     

     

     

    <IVAR2:01:01:14776832>

    <MMS2:1668,177>

    <DELAY:2>

    <GETPX:2:S:001668:000177>

    <IFVAR2:5:01:1:N2T>

    <MACRUN2:it worked>

    <ENDIF><IFVAR2:5:01:2:N2T>

    <MACRUN2:delayed>

    <ENDIF>

     

    If you have suggest or see what i am doing wrong please let me know. I am at a stand still on getting this logic to work correctly now.

     

    thanks

     

    MBone

     

    I was putting the "variable set integer" as well as "get pixel color" into N1 for both. Thanks for all the views.

     

    Mbone

  10. I got the logic to work a few time and then i added a delay on it and i cant get it to work now. I have put in the logic control and need someone to put a different set of eyes on it to see if i am doing something wrong. Let me explain what i am trying to do. I play a online game and using this to run a few task for me.

     

    I have it set to get the pixel color of a item that is only available at one point in the game and only on the screen at 1668,177. When i do pixel color with the mouse locator i get 12806656. I get a different number (14776832)when i do the get pixel at 1668, 177 and put them into N1 variable. So i both and cant seem to get them to work.

     

    I set a macro to run if the variable passes or if it fails so that i can test it out. The other macros are really simple click here and type "delayed" or "it worked" and work every time i use them.

     

     

     

    <IVAR2:01:01:14776832>

    <MMS2:1668,177>

    <DELAY:2>

    <GETPX:2:S:001668:000177>

    <IFVAR2:5:01:1:N2T>

    <MACRUN2:it worked>

    <ENDIF><IFVAR2:5:01:2:N2T>

    <MACRUN2:delayed>

    <ENDIF>

     

    If you have suggest or see what i am doing wrong please let me know. I am at a stand still on getting this logic to work correctly now.

     

    thanks

     

    MBone

  11. Did you read the Help? I think it's pretty clear and comprehensive. For example, under Help > Index > Else there are:

    - detailed descriptions of all commands

    - the Sample macro link at the bottom gives a simple but useful example

    - the See Also... link provides further detail

     

    --

    Terry, East Grinstead, UK

     

    No i didnt see it. I was looking to hard at the forest to see the trees. thanks setting me back on the right path, I didnt see the example but now i am learning.

     

    The else function is quite nice that i found how to use it.

     

     

    Many thanks

     

    MBone

  12. This is what I'd recommend, too, but that will only work with IE (and even then it sometimes doesn't work right

    with IE 7 + Vista 32 - possibly other systems, as well, but I've never had a problem with IE 6 + XP Prof, nor

    IE 7 + XP Home with SP2 or SP3).

     

    If you don't use IE, the next best thing would be "Wait for Window Title to Appear".

     

     

    Thanks for the help so far. Can some one explain the "The End if, Else, And, OR and XOr commands"

     

    <IVAR2:01:01:5066061>

    <MMS2:1008,983>

    <DELAY:15>

    <REP3:08:000001:000002:0002:1:01:N1>

    <DELAY:2>

    <GETPX:2:S:001008:000983>

    <IFVAR2:5:02:1:N1>

    <ENDIF>

    <ENDREP>

     

    I set this one up with some time testing it and i think i have got it work right. I have the color from the place i use to see if i am on the right screen and then put it in as N1 and then sample with N2 and then check every 2 seconds to see if it has loaded right. After that i move on to the next task.

    What i dont understand and cant seem to find the correct info is how to use the ELSE, and , OR and the XOr commands. I have tried to test them out but since i am new i am not 100% that i have got it right. Any links to examples or newsgroups is great. And the getting color command was what was holding me up. Many thanks

     

    MBone

  13. THe Get Pixel Color is in the System Category. When you "get" the pixel color, MacEx converts it to an integer. Figure out the number for you target color using the Menu>Tools>Mouse Locator. FOr example this smiley's ;) color is 2287359. I can create a loop to continue assessing the pixel in this location by saving it's color to N1 and then using IF N1 = 2287359, THEN ...

     

    Also, if you can figure out how to use the Wait For Web Page command, it might be better, because then you won't have to build a loop. Wait for Ping might be an option, but I don't know because I've never used it....

     

    Let us know if you are able to solve your dilemma :P

     

    This should work. I was looking for it and could not find it. I did find out what color i needed. Thanks for the help.

     

    MBone

  14. I am working on adding check to the macro i am using. I want to get away from it being just built around time and sometimes the internet is a little slower as everyone knows. i have been looking and i cant seem to find the Get color variable command. Is there a list of what all the "IF Variables" are and how to program them. Right now i am trying to work the color ones into the program.

     

    Thanks

     

    MBone

  15. I am trying to use the cntrol key when i do the capture of a macro. I capture everything but the control press. Is there a way to do this with out having to go back and manually add it where i need it?

     

    Mbone

     

     

    i found a work around for it but if anyone could tell me how to get it to work it would be great. Working on expanding the small macro i have running right now.

     

    thanks

     

    MBone :ph34r:

  16. Floyd's right but I would go on to say that there is almost always a way to fedback data from the application and make decisions. But without knowing how the game works and what the interface it there could be a thousand and one ways to make that decision. And even the methods that will work often need to be considered carefully as to which would work best. It's like getting driving directions from LA to NY. You could take a northern path or a southern path. The southern path may be longer but if you don't have snow tires it might be a better bet tis time of year. TO do what you ask you need to become familiar with all the tools in the Macro Express toolbox and know how th egame works ot offer suggestions. So you need to either learn ME or pass along all the info about your application so one of us could make a suggestion. But there probably is a way as long as the game allows ME to work in it.

     

    One thing you might look at first is Get Pixel Color. I am not a gamer but it seems that due to interface limitations gamers often like to use this. You simply look at a particular pixel's color every second or so and when it changes you do something. Then look at the conditional features in ME. For instance in this case you would set the pixel color to an integer and test that IF N1 = 12345 then do something or Else.

     

    thanks, I just wanted to get an idea before i bought the program. I was not for sure but i will look about getting it work now.

     

    MBone

  17. I am wondering if the macro express can be set up to so that I can play with the online game eve-online.com. I want to run use this to set up so that I can mine on the game on my second computer with minimal supervision. I have tried the trial and know that it will work with the game. What I am asking is that I set up all the macro to do what I need. Then at different point it need to go dump the load that has been gathered or to relock a target. Is there away to make the macro express do this. So that is making some kind of decision on what to do next.

     

    M Bone

  18. I have been using the trial and thinking about buying ME. I seems to be the best macro program that i have tried. What i am looking for is how users are setting this up to run with eve-online. I have seen some ideas on the forum and want to work with them a little more.

    If you play the game then you know that mining can be a real pain. I run different account with the game and would like to run this on one while i play on the other. I am going to be watching over it but i would like to let it do most of the work on its own.

     

    Currently any suggestion would be great. I know that it has the logic side of the let you set varibles but will it work with a different program or is it just for internal management?

     

    thanks

     

    MBone

×
×
  • Create New...