Jump to content
AC Tool Forums
  • Sign Up
Sign in to follow this  
dune73

Earth & Beyond

Recommended Posts

...If anyone says it is too hard to make a macro, TRY, I'm 50 and I'm learning, so can you. ...

What I have been saying all along and why I get so damn angry at the lazy people. Ignorance you can help, but stupid runs to the core (being stupid is just basically being a lazy ignorant person).

Share this post


Link to post
Share on other sites

Yep, I see it a lot in-game, I have helped 2 members here who have pmed me, I shared my code and ran them thru a basic walk path in a station, they were amazed it was so easy

 

 

Edit at 9:30 pm

BEAR.... what have you done?

 

Damn macro only sold column 1, 3 and 4 missed all the other sell slots, something not right, I'll have a play and see how much I can break it as well :)

 

This is where the problem seems to be

procedure sell12

Call Sub_Sell 440

Call Sub_Sell 530

Call Sub_Sell 620

Call Sub_Sell 700

end

Procedure Sub_Sell using Y, X //Only Y is passed,But we're Declaring X

//Which gets set to 80 each time the Procedure gets called

Set X = 80

Loop 3

MousePos $X, $Y

delay .2 sec

leftclick shift

delay .2 sec

Compute X = X + 100 // Loops 1:X=80,2:X=180,3:X=280

End

End

 

Copied from test log, I ran in test mode to try and get it to the correct $X

//MouseMove 80, 440

//DELAY: 200

//Mouse Left Click

//DELAY: 200

//MouseMove 100, 440

//DELAY: 200

//Mouse Left Click

//DELAY: 200

//MouseMove 100, 440

//DELAY: 200

//Mouse Left Click

//DELAY: 200

 

 

Ok it does the 80, then does 100 instead of 180 and 100 instead of 280, studying compute and set now :) You did this on purpose didn't you? :)

 

I moved things around, attempted different combination of numbers, tried making x = 80 a constant and adding 100 thru x = x + 100 No luck, I fail math

Share this post


Link to post
Share on other sites

I have just checked the mouse positions, moved them around a bit and they can be safely changed to

 

Call Sub_Sell 440 [425]

Call Sub_Sell 530 [525]

Call Sub_Sell 620 [625]

Call Sub_Sell 700 [725]

 

So I'm thinking if the other part is working, then I can have a bash (with the fix) on these numbers with a + 100 as well :)

Share this post


Link to post
Share on other sites
I have just checked the mouse positions, moved them around a bit and they can be safely changed to

 

Call Sub_Sell 440 [425]

Call Sub_Sell 530 [525]

Call Sub_Sell 620 [625]

Call Sub_Sell 700 [725]

 

So I'm thinking if the other part is working, then I can have a bash (with the fix) on these numbers with a + 100 as well :)

 

My Bad, didn't really try to Test the Compact code out. LOL This Works..

Procedure Sub_Sell using Y, X, X2  // Only Y is passed, But we're Declaring X, Which gets set to 80 each time the Procedure gets called
 Set X,80
 Loop 3
MousePos $X, $Y // Click on cargo
TimeStamp Mouse_X ( $X ), Mouse_Y ( $Y ), X2 ( $X2 )
delay .1 sec
leftclick shift
delay .1 sec
Compute X2 = $X + 100  // Loops 1:X=80,2:X=180,3:X=280
Set X,$X2
 End
End

Edited by Bear

Share this post


Link to post
Share on other sites

I'm currently trying to master my Mining Macro. I was using a Mining_Delay but I'm going to be attemping to monitor the Reactor bar between mining attempts. But since I have three accounts and I tend not to play in the same resolution on all three, I've had to make it so the macro works with all of my different resolutions.

 

(*
Filename: EnB_Resolution.inc

IF $Res = 0 // 1440 x 900 (Full)
IF $Res = 1 // 1280 x 800 (Window Mode)
IF $Res = 2 // 1280 x 768 (Window Mode)
IF $Res = 3 // 1360 x 800 (Window Mode)
IF $Res = 4 // 1024 x 768 (Full Mode)
IF $Res = 5 // 1280 x 800 (Full Mode)

// Currently defining:
IF $Res = 6 // 1920 x 1080 (Full Mode)

// New Format's: (to Do)
IF $Res = XX // 800 x 600 (Window Mode)

*)

(*
IF $Res = 8
// 800 x 600 (Window Mode)
Compute PDG_X = {WindowWidth} - ## // 
Compute PDG_Y = {WindowHeight} - ##
Compute TopL_X = {WindowWidth} - ##
Compute TopR_X = {WindowWidth} - ##
Compute Top_Y = {WindowHeight} - ##
Call SetResColor
End
*)


 

So much for creating a resolution of 1920 x 1080, Config tool has no problem but the scrrenshot came out as a 800x600 res, :( Where's the config file that the Config program makes? make I can force it into a 1920x1080 format.

Edited by Bear

Share this post


Link to post
Share on other sites
//Call Map_Gate X, Y, Delay, Boost

 

I just noticed your using Q to go to warp? you might want to place that as a Constant. Depending on which layout the players have their keyboard layout (PSW/FPS).

 

PSW Warp=Q

FPS Warp=Z

Share this post


Link to post
Share on other sites
My turn to ask for something <_>

 

IF some-one has a 1680x1080 macro using objects, or even just a heap of objects with mousepos and the code that works with them PLEASE can I have a copy

 

 

Here's a macro that creates the main three Objects: Dock, Gate and Mine. Included in the Zip is a Gate.jpg if you Zoom in (Oh about 600%) you'll see a Blue Dot.

That's where I started the Scan from, in this code I was working from one pc that is set to 1024x768(Window Mode) so the Blue dot is at 983x531. I then used

the same X,Y for the other two Objects. So you need to be At the object (Icon Lite up) before running the Macro. As a Default the Objects get created on the C:\

root drive. You should be able to change that. You can then either Copy/Paste them into a Main Macro or Include them.

 

Include Dock.obj
Include Gate.obj
Include Mine.obj

 

EDIT

When Crating Object this way, one can't use a procedure and pass arguments to it, I've tried, wObject doesn't like it. If it did it'd be a whole lot easier to pass Name and X, Y, filename, etc. But it doesn't like it so we have to use the long code. :(

Edited by Bear
File removed - Objects are BAD!!!!

Share this post


Link to post
Share on other sites

Here's an updated Compact version of Ego's trade run. The Sell has been updated.

 

procedure sell12
 Call Sub_Sell //425
 //  Call Sub_Sell 525
 //  Call Sub_Sell 625
 //  Call Sub_Sell 725
end

Procedure Sub_Sell using X, Y, X2, Y2
 Set Y,425
 Loop 4
Set X,80
Loop 3
  MousePos $X, $Y // Click on cargo
  delay .1 sec
  leftclick shift
  delay .1 sec
  Compute X2 = $X + 100  // Loops 1:X=80,2:X=180,3:X=280
  TimeStamp Mouse_X( $X ), Mouse_Y( $Y ), X2( $X2 ), Y2( $Y2 )
  Set X,$X2
End
Compute Y2 = $Y + 100  // Loops 1:Y=425,2:Y=525,3:Y=625,4:Y=725
TimeStamp Mouse_X( $X ), Mouse_Y( $Y ), X2( $X2 ), Y2( $Y2 )
Set Y,$Y2
 End
End

new_fen_som_fen_trade_run_compact.zip

Share this post


Link to post
Share on other sites

Sweet, thanks Bear, My little macros is starting to look better each time I add to them

 

I'll upload my latest versions tonight, been working on the code to clean them up and change the way 'events' happen, of course I'm expecting Bear to look at them and go "WTF is he doing? we can swap this with this...etc :rolleyes: )

 

But thats how I'm learning, so I thank you Bear, for your input and help

Share this post


Link to post
Share on other sites
But thats how I'm learning, so I thank you Bear, for your input and help

 

Well I'm trying to throw together a Grouping Macro. So instead of me having to move to each PC (Being as I currently have 3 Accounts) and gating each then having to regroup. The Macro well monitor the Group Bars and Gate and auto Reform a Group on other side. But of Course, I'm not running it in the same resolution across each PC so it has a bunch of generalized code defined in a resolution file. By having a Resolution file you can actually have Same Objects of different resolution in the same (.OBJ) file if it has a Reference number.

 

this is Code Snip from 4 macro's: EnB_Resolution.inc, AGG.inc, DGM.inc & DGM.obj

(*

Res = 0	 // 1440 x 900 (Full)
Res = 1	 // 1280 x 800 (Window Mode)
Res = 2	 // 1280 x 768 (Window Mode)
Res = 3	 // 1360 x 800 (Window Mode)
Res = 4	 // 1024 x 768 (Full Mode)

*)

  Set Mine = Mine_ + $Res
  Set Gate = Gate_ + $Res
  Set Dock = Dock_ + $Res

Object Mine_4  // Test at coords 983, 531 Size: 19, 19  width x height
Object Mine_6  // Test at coords 766,396 Size: 19, 19  width x height

I'm about to go Log in and capture all the _6's but Instead of just the Three: Gate/Dock and Mine I'm also going to Capture those three again but as Dark Icon's (Out of Range) Not sure if the D_Mine_# would ever get used, suppose you could then set up a "It's dark, go to Warp", etc..

 

Back to the Grind Stone. :)

Edited by Bear

Share this post


Link to post
Share on other sites
Object Mine_4  // Test at coords 983, 531 Size: 19, 19  width x height
 Object Mine_6  // Test at coords 766,396 Size: 19, 19  width x height

 

I HATE Objects. :(

Share this post


Link to post
Share on other sites
I HATE Objects. :(

 

I really, Really, REALLY HATE Objects. They work in the Sector you create them in but not in any other. I'm going back to using LoadRGB!!

Share this post


Link to post
Share on other sites

Ego,

Thanks for that Macro by Doc Zott, but his method is based solely on Objects.

I've WinRAR all my EnB_Object Code may it never see the light of day again. :P

I can get it done without sinking to use the stinking objects. :lol:

 

LoadRGB is your Friend, Objects are the darkpath. :ph34r:

Share this post


Link to post
Share on other sites

So it's not just me then, I place a ban on 'objects' LOL I really really despise them

 

show me a little code using your loadrgb

Your humble apprentice 'DarthBanObjectAll'

Share this post


Link to post
Share on other sites
show me a little code using your loadrgb

 

I will, but might not be right away. Going on vacation, Taking my Notebook PC, I can play EnB on it as long as I have access to an External Monitor. Can't see much at 1024x600... Just tried it, I can run EnB at 1024x600... New Resolution setting coming up lol

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and to our Privacy Policy.