Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

bkenobi

Elite Member
  • Posts

    4581
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by bkenobi

  1. This will work as long as you don't change to custom inputs. I have a thread I just started which was intended to discuss this (here). If anyone has any thoughts, I would love to hear them!
  2. So I have this script that's been working ok for a while now to send arrow keys with mouse movements. I also have been using XPadder to send key presses. I even have an XPadder button combo that sends Escape when the right key combo is held. But, things don't quite want to work right. I have the coin reject buttons set up for credit in MAME. I have it set up so that if you hold both coin buttons for 1 second, it quits (sends Escape). But, for some reason if you jam the coin buttons simultaneously, they ALWAYS exit. So I decided to write my own combo exit script in AutoHotKey. This works fine! Anyway, I also wanted to change the buttons in GameEx so that I don't use CTL, ALT, or ENTER any more. These cause way too many potential problems with windows hotkeys. Here's were the snag is. I can use any buttons I want for buttons. I use the scancodes.txt and set custominputs.ini appropriately. I get my scripts updated and viola! The buttons work fine and no more combo problems! BUT, the arrow keys don't work. I've tried a bunch of things: send Up/Down, send scan code/virtual key of Up/Down, send SC/VK of </>, send SC/VK of a/s. The funny thing is that a/s work as select and back, but not as arrows. What am I doing wrong? Or a better question: why does GameEx treat arrows differently than any other buttons? Maybe this has some kind of a conflict with the mouse? I'm not using v8.20 yet, so perhaps this would help. Any thoughts? Here's the code. Feel free to use it if you want! Mouse2Key.ahk #InstallKeybdHook #SingleInstance force CoordMode, Mouse, Screen SetKeyDelay, -1 SysGet, ScreenWidth, 78 SysGet, ScreenHeight, 79 x_center:=250 ;Starting x position y_center:=250 ;Starting y position SpeedThreshold:=200 ;Threshold speed where slow and fast scrolling is determined DeadZone:=1 ;Minimum movement deadzone CursorWatchSpeed:=25;How much delay between cursor position checks NormalUp=VK26SC148;Up NormalDown=VK28SC150;Down FastUp=VK21SC149 ;Page Up FastDown=VK22SC151 ;Page Down #Persistent SetTimer, WatchCursor, %CursorWatchSpeed% return WatchCursor: IfWinActive GameEx| { MouseGetPos, xpos, ypos DeltaX:=x_center-xpos DeltaY:=y_center-ypos ;Only allow the most active axis to control GameEx menu if abs(DeltaX)>abs(DeltaY) { DominantAxis:=X Delta:=DeltaX } else { DominantAxis:=Y Delta:=DeltaY } if (abs(Delta) < DeadZone) { ;No Movement } else if (abs(Delta) < SpeedThreshold) { ;Normal Movement if (Delta<0) { if DominantAxis = X { SendInput {Blind}{%NormalUp% DownTemp} SendInput {Blind}{%NormalUp% Up} } else { SendInput {Blind}{%NormalDown% DownTemp} SendInput {Blind}{%NormalDown% Up} } } else { if DominantAxis = X { SendInput {Blind}{%NormalDown% DownTemp} SendInput {Blind}{%NormalDown% Up} } else { SendInput {Blind}{%NormalUp% DownTemp} SendInput {Blind}{%NormalUp% Up} } } } else { ;Fast Movement if (Delta<0) { if DominantAxis = X { SendInput {Blind}{%FastUp% DownTemp} SendInput {Blind}{%FastUp% Up} } else { SendInput {Blind}{%FastDown% DownTemp} SendInput {Blind}{%FastDown% Up} } } else { if DominantAxis = X { SendInput {Blind}{%FastDown% DownTemp} SendInput {Blind}{%FastDown% Up} } else { SendInput {Blind}{%FastUp% DownTemp} SendInput {Blind}{%FastUp% Up} } } } ;Reinitialize mouse position for next step DllCall("SetCursorPos", int, x_center, int, y_center) } return #C:: { ExitApp } JoystickRemappingScript.ahk #InstallKeybdHook #SingleInstance force JoyButton1=VK41SC01E ;a JoyButton2=VK53SC01F ;s JoyButton3=VK44SC020 ;d JoyButton4=VK46SC021 ;f Joy1:: IfWinActive GameEx| Send {Blind}{%JoyButton1% down} ; Hold down the left mouse button. SetTimer, WaitForButtonUp1, 100 return WaitForButtonUp1: if GetKeyState("Joy1") { ; Still down, so hit the button again Send {Blind}{%JoyButton1% down} SetTimer, WaitForButtonUp1, 30 Return } Else ; Otherwise, the button has been released. { Send {Blind}{%JoyButton1% up} SetTimer, WaitForButtonUp1, off Return } Joy2:: IfWinActive GameEx| Send {Blind}{%JoyButton2% down} ; Hold down the left mouse button. SetTimer, WaitForButtonUp2, 100 return WaitForButtonUp2: if GetKeyState("Joy2") { ; Still down, so hit the button again Send {Blind}{%JoyButton2% down} SetTimer, WaitForButtonUp2, 30 Return } Else ; Otherwise, the button has been released. { ; Otherwise, the button has been released. Send {Blind}{%JoyButton2% up} SetTimer, WaitForButtonUp2, off Return } Joy3:: IfWinActive GameEx| Send {Blind}{%JoyButton3% down} ; Hold down the left mouse button. SetTimer, WaitForButtonUp3, 100 return WaitForButtonUp3: if GetKeyState("Joy3") { ; Still down, so hit the button again Send {Blind}{%JoyButton3% down} SetTimer, WaitForButtonUp3, 30 Return } Else ; Otherwise, the button has been released. { ; Otherwise, the button has been released. Send {Blind}{%JoyButton3% up} SetTimer, WaitForButtonUp3, off Return } Joy4:: IfWinActive GameEx| Send {Blind}{%JoyButton4% down} ; Hold down the left mouse button. SetTimer, WaitForButtonUp4, 100 return WaitForButtonUp4: if GetKeyState("Joy4") { ; Still down, so hit the button again Send {Blind}{%JoyButton4% down} SetTimer, WaitForButtonUp4, 30 Return } Else { ; Otherwise, the button has been released. Send {Blind}{%JoyButton4% up} ; Release the left mouse button. SetTimer, WaitForButtonUp4, off Return } Oh, and the button remapping script doesn't have the combo's included in this version.
  3. If for no other reason, if you disable the mouse, the whole mouse should be disabled!
  4. So the CPViewer is still in active development?
  5. I'm in.
  6. Adultery: If you want to go to the standard forum view with all of the messages displayed, you just need to click options -> standard at the top of the page.
  7. Cool! If I still had one of my first 3 mice installed, this new feature would have saved me the trouble of hacking a 4th mouse! Disabling the mouse wheel is definitely a good option though. Thanks Tom!
  8. bkenobi

    beta db's

    I tried that script on a ton of the databases, but none liked line 45. Anyway, I manually went through all of the mobile ones. I only found a couple games that were more than a single player (makes sense since these are phones...). Anyway, here they are. Mobile.zip
  9. Or, from the sounds of it, you can simply wait for the next major build of MAME to be released in the next few days to weeks and then everything will work without the Nebula emulator. Either way, SF3 should play MUCH better in the very near future for you!
  10. Not currently, but that would make a really good feature request. Tom has been looking at other things like that as far as I know (adjust volume while in MAME, etc), so this might fit in well.
  11. bkenobi

    beta db's

    So is it just the handhelds that were being resistant then? Pretty much every one I tried barfed. I finished a couple, but they were small... I'm busy this evening, but if there are any left this weekend, I'll tear them up!
  12. True, ArcadeAmbiance.mp3 is not included with the download. The file is ~38mb as I recall, but it is available for download during the initial setup wizard or via a link on the main page. I assumed you had already installed that and that's what was playing, not your playlist audio...
  13. Then it's running exactly how you have it set up What you have GameEx set to is to play the ambiance sound in GameEx and then when you launch MAME (or another emulator) to stop the ambiance and use the sounds MAME generates. Select the drop down and one of the other options is to "play audio in MAME" or something.
  14. bkenobi

    beta db's

    I'm having a problem running the script. I keep getting an error on line 45 where it's doing the find & replace. I don't know AI, so all I can say is that it's sending ^ERROR rather than a value from the table. It has happened for several DB's, but the last one I tried was PSP. If you could take a look that would be great. I'll try a few more, but this has happened on pretty much all of them.
  15. bkenobi

    beta db's

    Okay, I'll give the handhelds a try. Just curious though. How many handheld games were designed for more than just the first player though? I know there were a few gameboy games that used the 4 player link system (e.g., faceball 2000), but beyond that?
  16. There is a setting in the advanced config wizard that allows you to choose how and when you want the music to play. Default is to play in the front end, but not in games. If you want it to play during games, you will have to change that setting. I think it is found in the Enable/Disable Features tab.
  17. bkenobi

    beta db's

    I'll try to find time in a bit then...
  18. bkenobi

    beta db's

    I think I understand how to do this now, so I was going to give it a go tonight. Is there a todo list yet? I don't want to duplicate work if possible. Yeah, I could just compile one myself based on what's been listed, but perhaps you already have one you could post. Either way...
  19. bkenobi

    beta db's

    So then the script works? What is required now as far as user intervention for running the update?
  20. Just curious what version of XPadder you are using? I was just looking at the new version's updates and it looks like there is a "Fixed a bug where double-clicking a profile in Windows XP failed if the path included spaces". I don't know if this is at all related, but I thought I would throw it out there.
  21. Any update on the progress? I'm so excited I can't wait
  22. I think what he wants to do is get a theme designed specifically for vertical monitors, not figure out how to rotate the screen. I haven't looked to see what themes work vertically and look good. HK could probably answer your question best since he wrote the theme editor.
  23. Oh, I see
  24. Is MediaPortal launching in the background or is it not running at all?
  25. I have seen this when I was running Zinc and Model 2 roms that were especially demanding. But, the video was obviously skipping too. My guess would be that the system may be underpowered for the rom being run without knowing anything else.
×
×
  • Create New...