Aller au contenu

Photo

Auto-Tab: always show all items


  • Veuillez vous connecter pour répondre
20 réponses à ce sujet

#1
MrKite

MrKite
  • Members
  • 8 messages
There has got to be a way to have the names for all the items to always be shown. I'm not the kind of guy to complain about a lack of "immersion", so I'd love to be able to see all the available items in the room, even if it means disembodied floating letters on the screen at all times. I'm actually surprised that there isn't an option to check a box in the configuration section of Dragon Age itself. My current solution involves resting a heavy object on the tab key while playing the game. Definitely not the most graceful way to "mod" Dragon Age.

Knowing absolutely nothing about how to mod, except that it looks very difficult considering that I hated taking C++ in college, it seems like this would be a relatively easy mod to construct. I'm mostly interested to know whether I'm the only one that thinks this functionality should be available? If there are several, does anyone think this would be a worthwhile project? I'd like to get a thread going on this, because this is my only *major* complaint with the game as it is currently.

#2
Luchaire

Luchaire
  • Members
  • 156 messages
If you have a keyboard (like the Logitech G15) that lets you set up macros, it's easy to just make a macro that simulates holding the tab key down. I have mine set up this way... one key press to toggle it on, another to toggle it off.



If you don't have such a keyboard, well... I'm sure someone will figure out a way to make such a mod.

#3
Talian Kross

Talian Kross
  • Members
  • 239 messages
And if you don't have the hardware, there's always AutoHotkey. Best software on the planet for keyboard and mouse macros, and so much more actually. And it's open-source, i.e., free! :)

#4
AND04

AND04
  • Members
  • 154 messages
The Auto Highlight Mod should be able to help you out here:



http://www.damods.co...hp?topic=602.15

#5
MrKite

MrKite
  • Members
  • 8 messages

AND04 wrote...

The Auto Highlight Mod should be able to help you out here:

http://www.damods.co...hp?topic=602.15

Awesome! That looks to be exactly what I was looking for. Thanks.

#6
MrKite

MrKite
  • Members
  • 8 messages

MrKite wrote...

AND04 wrote...

The Auto Highlight Mod should be able to help you out here:

http://www.damods.co...hp?topic=602.15

Awesome! That looks to be exactly what I was looking for. Thanks.

Turns out that this is not exactly what I was looking for, because one of the best features of the Tab button is that it displays the enemy and ally HP bars, which makes it easy to target people with specific health levels. I think that a hotkey binding script may be the way to go for me.

That is, of course, if Bioware games allow virtual keystrokes. As far as I can tell, they don't which is quite the shame. :(

Modifié par MrKite, 25 novembre 2009 - 04:05 .


#7
Talian Kross

Talian Kross
  • Members
  • 239 messages
I was sent a couple of PMs about how to do this in AutoHotkey, so here you go.

1. Download and install AutoHotkey.
2. For simplicity, right-click on your desktop and select "New --> Text Document."
3. Now copy the script below into that new document.
4. Save as "DAO.ahk" (include the quotes just to be safe [for those of you who hide your extensions and such]).

Now just double-click on that DAO.ahk file on your desktop (just like you are launching any other app), and you'll be good to go. (It doesn't matter which you do first, i.e. autohotkey then game or game then autohotkey. In fact, while creating and testing out this script, I had DA:O running and was just Alt-tabbing out to edit and reload the script.)

Anyway, the script below presumes you have highlighting set to Z (in-game), and this script now makes Z act as a toggle: press it to turn on highlighting, press it again to turn it back off, etc.

FORGIVE THE STUPID FORUM'S INABILITY TO MAINTAIN SPACES EVEN IN CODE BLOCKS:

;===============================================================================
; AutoHotkey      Version: 1.0.48.5
; Language:       English
; Platform:       Win9x/NT/XP/Vista/Win7
;===============================================================================

;---------------------------------------
;   Script Initialization Stuff (optional)
;---------------------------------------
#SingleInstance force
#InstallKeybdHook
#NoEnv
SendMode Input

bActivate := 0


;---------------------------------------
;   Create a timer to constantly check
;   if game is the active process or not
;   since we want our remapping to only
;   be applied in-game, not outside the
;   game.
;---------------------------------------
SetTimer PollForApp
return

PollForApp:
 ; Get the process name of the active window (i.e. Notepad.exe)
   WinGet szProcessName, ProcessName, A
   if szProcessName = daorigins.exe
   {
       Suspend, off
   }
   else
   {
       Suspend, on
   }
   return


;---------------------------------------
;   Setup key binds
;---------------------------------------
z::
    bActivate := !bActivate
    return

z up::
    while bActivate
    {
        send {z down}
        Sleep 30
    }
    send {z up}
    return
;===============================================================================

Modifié par Talian Kross, 25 novembre 2009 - 05:49 .


#8
Talian Kross

Talian Kross
  • Members
  • 239 messages
By the way, it doesn't *have* to be "z". If I recall the game's default setting (CAPS), then just change "z::"/"z up::" to "Capslock::"/"Capslock up::" and that's it. Refer to AutoHotkey's help file for a listing of all the key names. (In general, though, they are simply the key itself.)

#9
MrKite

MrKite
  • Members
  • 8 messages
Now that IS amazing. Thank you so much Talian Kross, I must have spent two hours searching the Autohotkey forums trying to write up a version of send {tab down} that would do something in game (since it turns out that Tab is the default binding). From looking at your code, it looks like the key bit I was missing was the while loop with the sleep timer. Anyways, you managed to make this work, so Kudos to you! Thanks for the help!

BTW, this should be stickied, or given a tutorial of some sort in the mods section. I think it could be really helpful for a lot of people.

Modifié par MrKite, 25 novembre 2009 - 06:46 .


#10
Talian Kross

Talian Kross
  • Members
  • 239 messages

Thanks for the help!

You're welcome.
I just wrote it on the fly, so it could probably be done in a better way perhaps.  But it gets the job done. B)

#11
JonnyBananas

JonnyBananas
  • Members
  • 7 messages
this works perfectly on PC.

Thank u so much +88 approval!!

#12
Sarakinoi

Sarakinoi
  • Members
  • 210 messages
Very nice, works even better than the mod.

#13
charlottenoyen

charlottenoyen
  • Members
  • 12 messages
Thank you! I posted a request for just this script earlier, I had no idea it had already bee done. Much better than the mod, just what I needed!

#14
Sidrat2009

Sidrat2009
  • Members
  • 25 messages
Does or could this add to visible lag at all?


#15
Yuvs

Yuvs
  • Members
  • 3 messages
Ok, I might be missing something but I can't seem to get this script to work.

I do exactly what the poster said but every time i turn the script on it works on my desktop(For example, after turning the script on I create a new folder and it automatically names it zzzzzzzzzzzzz etc") and not in the game.

Any idea what I might be missing?...

#16
Guest_iHNS_*

Guest_iHNS_*
  • Guests
I have that problem too. Do we need to add sth in the script or sth?

#17
panty raider

panty raider
  • Members
  • 1 messages
hmm i tried this with autoit
2. For simplicity, right-click on your desktop and select "New --> Text Document."
3. Now copy the script below into that new document.(ahah sorry just copy/pasted this part)

;/////////////////// TAB TOGGLE SCRIPT
;Press ALT+TAB to toggle TAB DOWN, Press END to exit script
Global $Tab
HotKeySet("!{TAB}", "Tab")
HotKeySet("{END}", "Terminate")
While 1
Sleep(1000)
$Tab = $Tab
Sleep(1000)
WEnd
Func Tab()
$Tab = NOT $Tab
While $Tab
Sleep(1000)
Send("{TAB DOWN}")
Sleep(1000)
WEnd
Send("{TAB UP}")
EndFunc
Func Terminate()
Exit 0
EndFunc
;=================END

4. Save as "DAO.au3" (include the quotes just to be safe [for those of you who hide your extensions and such]).

i used alt+tab to toggle it so you don't tab out

Modifié par panty raider, 14 août 2010 - 05:46 .


#18
NyxStele

NyxStele
  • Members
  • 38 messages

Talian Kross wrote...

I was sent a couple of PMs about how to do this in AutoHotkey, so here you go
1. Download and install AutoHotkey.
2. For simplicity, right-click on your desktop and select "New --> Text Document."
3. Now copy the script below into that new document.
4. Save as "DAO.ahk" (include the quotes just to be safe [for those of you who hide your extensions and such]).

Now just double-click on that DAO.ahk file on your desktop (just like you are launching any other app), and you'll be good to go. (It doesn't matter which you do first, i.e. autohotkey then game or game then autohotkey. In fact, while creating and testing out this script, I had DA:O running and was just Alt-tabbing out to edit and reload the script.)

Anyway, the script below presumes you have highlighting set to Z (in-game), and this script now makes Z act as a toggle: press it to turn on highlighting, press it again to turn it back off, etc.

*code*


Thanks so much for this.  Just started playing this week, and was already sick of holding the TAB key down all the time.  This was such a simple fix.  A shame that it requires something third-party and isn't just an checkbox in the options menu, but I'm happy this works.  Now I can free up a finger.

#19
Supersnake

Supersnake
  • Members
  • 7 messages

Talian Kross wrote...
(cut)
;---------------------------------------
; Create a timer to constantly check
; if game is the active process or not
; since we want our remapping to only
; be applied in-game, not outside the
; game.
;---------------------------------------
SetTimer PollForApp
return

PollForApp:
; Get the process name of the active window (i.e. Notepad.exe)
WinGet szProcessName, ProcessName, A
if szProcessName = daorigins.exe
{
Suspend, off
}
else
{
Suspend, on
}
return
(cut)


Am glad you included that PollForApp.
As an experiment I removed it from the script to see if it would make a difference.
For me it did, when I launched a Word document the Word program would attempt to repeatedly tab over and over again.
I say "attempt" because it was unable to do so and Word as well as Windows 7 went into overload and caused a system wide hard lock. I couldn't even launch Task Manager to stop processes - had to perform a hard restart.

Using your "full script" for the Tab key now - no problems.
As a precaution though I make sure that I right click on the DAO.ahk icon in the taskbar and select exit when I leave the game.

Thanks again!

#20
rhn_18

rhn_18
  • Members
  • 14 messages
First. Sorry for Necroing this old thread. But i was looking into how to do this. Especially how to get it to work properly on the G19 / 15 only using up one button. Finally found a solution and felt like sharing it.
Instead of binding a macro to the G buttons, go to the Keyprofiler and bind the script to the desired key. Open scripteditor and paste following:

function OnEvent(event, arg)
    if (event == "G_PRESSED") then
        if (arg == 1 and tabtogglecount == 1) then
            ReleaseKey("tab")
            tabtogglecount = 0
        elseif (arg == 1) then
            tabtogglecount = 1
            PressKey("tab")
        end
    end  
end

Simply used a counter to avaluate whether to release or press the tab key.
Oh and change the 1 in (arg == 1) to the number of the desired G-key, and voila it works.

Modifié par rhn_18, 26 octobre 2010 - 09:36 .


#21
Sylriel

Sylriel
  • Members
  • 214 messages
PTH put this out last August.  It may be of interest to others looking for an auto Tab key.

AutoTab