v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User:Digger

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Hi, I'm Digger, usually I go by a nick of Meat_Grinder, however in case of digging a fortress I had to assume this one. Usually I'm adding some minor stuff and just being nitpicky, feel free to remind me of that when you think I go overboard. These are my first wiki-contributions after all :)
+
Hi, I'm Digger, usually I go by a nick of Meat_Grinder or Kaktyc, however in case of digging a fortress I had to assume this one. Usually I'm adding some minor stuff and just being nitpicky, feel free to remind me of that when you think I go overboard. These are my first wiki-contributions after all :)
  
  
  
== BEHOLD THE MOUSE SCRIPT 1.1 ==
+
== BEHOLD THE MOUSE SCRIPT ==
  
 
I dedicate this script to '''ignir''', who, unable to use mouse in DF, left this awesome game long ago.
 
I dedicate this script to '''ignir''', who, unable to use mouse in DF, left this awesome game long ago.
 
[UPDATE] Added some minor tweaks/comments/explanations, simplified some hotkeys, fixed 1(omg) typo. The script now starts suspended, you have to "Alt + s" to enable it. LCtrl + z/x will navigate you horizontally, and LCtrl + mouse wheel vertically in a no-cursor mode.
 
 
'''Note''':The script has been created for maximum comfort of a "left hand on a keyboard & right hand on a mouse" position. If you are left handed, you probably might want to switch any left hotkey combo to a right one, Find>Replace>LCtrl/LShift/LWin/LAlt with RCtrl/RShift/RWin/RAlt, also you might want to change F1/tilda/x/z/a keys to something else that's closer to the right side.
 
 
 
<pre>
 
<pre>
 
;This is a script that enables basic mouse controls in DF. The precision of the scipt is ~1 tile for me.
 
;This is a script that enables basic mouse controls in DF. The precision of the scipt is ~1 tile for me.
Line 20: Line 15:
 
;Once you get a hand of it, you will realize that you can navigate to the places you can't even see on the screen.
 
;Once you get a hand of it, you will realize that you can navigate to the places you can't even see on the screen.
  
Suspend ;This one suspends the script in the beginning.
+
 
 
#InstallMouseHook ;This module of AutoHotKey tracks the mouse movement and clicks, it is not enabled by default, see AutoHotKey's readme for details
 
#InstallMouseHook ;This module of AutoHotKey tracks the mouse movement and clicks, it is not enabled by default, see AutoHotKey's readme for details
^`::Reload ;This one obviously reloads the script = Ctrl + tilda(under Esc)
+
^+!z::Reload ;This one obviously reloads the script
!s::Suspend ;This one toggles hotkeys on and off = Alt + s
+
^!s::Suspend ;This one toggles hotkeys on and off
  
  
Line 56: Line 51:
  
  
;these ones scroll Up/Down. Hold Left Ctrl & scroll! Hold a instead of Ctrl for a speed boost.
+
;these ones scroll Up/Down. Hold Left Ctrl & scroll! Hold z instead of Ctrl for a speed boost.
 
~LCtrl & WheelUp::
 
~LCtrl & WheelUp::
 
Loop %A_EventInfo%
 
Loop %A_EventInfo%
Line 81: Line 76:
 
Loop %A_EventInfo%
 
Loop %A_EventInfo%
 
{
 
{
Send {NumpadPgDn}
+
Send {NumpadPgDown}
 
}
 
}
 
return
 
return
Line 102: Line 97:
  
  
;Makes an Enter of Left Shift/Left Ctrl & LMB click.
+
;Makes an Enter of Left Shift & LMB click.
 
LShift & LButton::
 
LShift & LButton::
Send {Enter}
 
return
 
 
LCtrl & LButton::
 
 
Send {Enter}
 
Send {Enter}
 
return
 
return
Line 158: Line 149:
 
{
 
{
 
;estimating number of tiles to move, change 12x12 to YOUR tile size in order to get it right, it might be different in fullscreen/windowed, making it harder for you to use mouse
 
;estimating number of tiles to move, change 12x12 to YOUR tile size in order to get it right, it might be different in fullscreen/windowed, making it harder for you to use mouse
xpos2 /= 12 ;Change 12 to your tileset width
+
xpos2 /= 12
ypos2 /= 12 ;Change 12 to your tileset height
+
ypos2 /= 12
 
;MsgBox %xpos2% %ypos2%
 
;MsgBox %xpos2% %ypos2%
 
}
 
}
Line 206: Line 197:
 
return
 
return
  
;Resetting mouse coordinates
 
 
LWin::
 
LWin::
 
xpos1 = 0
 
xpos1 = 0
Line 212: Line 202:
 
xpos2 = 0
 
xpos2 = 0
 
ypos2 = 0
 
ypos2 = 0
return
 
 
 
;Toggling left-right
 
LCtrl & z::
 
{
 
Send {NumpadLeft}
 
}
 
return
 
 
LCtrl & x::
 
{
 
Send {NumpadRight}
 
}
 
return
 
 
 
;Simple Ctrl + a to toggle 20 items in a trade window, perfect for people who buy all/sell all.
 
$^a::
 
Loop 20
 
{
 
Send {Enter}
 
Sleep 30
 
Send {Down}
 
}
 
 
return
 
return
 
</pre>
 
</pre>

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)