Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Post your Button Saving Macro!  (Read 1127 times)

Zengief

  • Bay Watcher
    • View Profile
Post your Button Saving Macro!
« on: October 24, 2006, 03:50:00 pm »

I have noticed that a few things in the game can be helped by a little macro work to save on the repetitive key strokes.  Show your macro here.

I created mine in AC Tool  (5.3.0) but I am sure you could modify it for whatever you are using.

code:

//Pillar creation macro.  Used when caverning out large spaces without risk of collapse.
// Set cursor in designation mode at 1st pillar location in large block of mined area.
//
SetActiveWindow Dwarf Fortress
Constants
 rows=5  //number of rows of pillars
 cols=10   // number of columns of pillars (plus 1 due to code)
 up=1    
 right=1  // both of these should be 1 when starting in bottom left corner.
End
keys x
while $rows>1

Loop $cols
  call goover
  keys  {return}{return}
End

  call goup
  keys  {return}{return}

Loop $cols
  call goback
  keys  {return}{return}
End

  call goup
  keys  {return}{return}

compute $rows=$rows-2

end
if $rows=1
Loop $cols
  call goover
  keys  {return}{return}
End
end
stop


Procedure GoOver
 if $right=1
  loop 7
   delay 20
   keys {right}
   
  end
 else
  loop 7
   delay 20
   keys {left}
  end
 end
End

Procedure GoUp
 if $up=1
  loop 7
   delay 20
   keys {up}
   
  end
 else
  loop 7
   delay 20
   keys {down}
  end
 end
End

Procedure GoBack
 if $right=1
  loop 7
   delay 20
   keys {left}
   
  end
 else
  loop 7
   delay 20
   keys {right}
  end
 end
End


[ October 24, 2006: Message edited by: Zengief ]

Logged

w

  • Bay Watcher
    • View Profile
    • http://www.whitehouse.gov/president/
Re: Post your Button Saving Macro!
« Reply #1 on: October 24, 2006, 07:19:00 pm »

Interesting.  

I'm not going to set up an external key macro program, but if I were to - or if DF had macro capability built in - the first thing I would do would be very, very simple:

"u space".

That is, go to the units screen and immediately come back out.

Thus letting me see "Idlers" again after some message blew it away.

Logged

Maximus

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #2 on: October 24, 2006, 08:41:00 pm »

You u-spacers are heathens.  A-space is the One True Announcement clearer.    :p

Edit: meh, I suppose I should actually add something to the thread.  I'd definitely add macros to turn on or off a related group of labors.

[ October 24, 2006: Message edited by: Maximus ]

Logged

ctrlfrk

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #3 on: October 24, 2006, 08:42:00 pm »

Im an a spacer.
Logged

Zengief

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #4 on: October 25, 2006, 12:09:00 pm »

I am surprised that no one else has made any.  The game certainly lends itself to it with the keyboard input and somewhat clunky interface.
Logged

Wang Commander

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #5 on: October 25, 2006, 09:18:00 pm »

I macroed a big loop of "g t e enter" in adventure mode to max out throwing before embarking on my journey.
Logged

Zengief

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #6 on: October 25, 2006, 10:10:00 pm »

same here

also macro-ed a loop of left/right with stealth to up that

Logged

qalnor

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #7 on: October 26, 2006, 11:14:00 am »

This is probably not a bad idea.
Logged

lol101

  • Escaped Lunatic
    • View Profile
Re: Post your Button Saving Macro!
« Reply #8 on: June 17, 2009, 05:42:57 pm »

please post the scripts?
same here

I macroed a big loop of "g t e enter" in adventure mode to max out throwing before embarking on my journey.

same here<P>also macro-ed a loop of left/right with stealth to up that
Logged

Peewee

  • Bay Watcher
  • Watcher Of Bays
    • View Profile
Re: Post your Button Saving Macro!
« Reply #9 on: June 18, 2009, 08:35:19 am »

>.>
3 year old necro post. Wow.

Those macros were for the 2d version... check the wiki for more up to date stuff.

Christes

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #10 on: June 18, 2009, 11:41:30 am »

Is this a thread necromancy record?
Logged

Xgamer4

  • Bay Watcher
    • View Profile
Re: Post your Button Saving Macro!
« Reply #11 on: June 18, 2009, 11:53:29 am »

It has to be. Wow.
Logged
insert something mind-blowing/witty here*

AussieGuy

  • Bay Watcher
  • [Australian]
    • View Profile
Re: Post your Button Saving Macro!
« Reply #12 on: June 19, 2009, 07:14:59 am »

This thread just got Punked REVIVED!
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Post your Button Saving Macro!
« Reply #13 on: June 19, 2009, 07:16:42 am »

You don't have to comment on this! Let it die!...
... oh wait...
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Yanlin

  • Bay Watcher
  • Legendary comedian.
    • View Profile
Re: Post your Button Saving Macro!
« Reply #14 on: June 19, 2009, 08:52:14 am »

Actually, it's 2 years and 10 months.
Logged
WE NEED A SLOGAN!
Pages: [1] 2