Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 46

Thread: Introducing EraAWSD!

  1. #21
    Banned
    Join Date
    Jun 2013
    Location
    United States of America
    Posts
    1,748
    I'll edit it for my own preference, but very nice. Thank you.

  2. #22
    Wow that's a great improvement. I tried playing on Facebook, and it was just impossible.

    Next up, a version for OS X...

  3. #23
    Crow Greeze's Avatar
    Join Date
    Jul 2013
    Location
    Countryside
    Posts
    2,322
    am i the only one here that plays on era.graalonline.com?

    ~
    Click here for my Levels Thread!

    Join Era-Go.com and be a part of the community!

  4. #24
    This is great good job!
    Help me hatch.

  5. #25
    Street Boss Vacci's Avatar
    Join Date
    Jun 2013
    Location
    Hawaii
    Posts
    865

    EraAWSD2.1

    Time for a major update to my AutoHotkey script, now with less setup required and a few other extra features!

    Quote Originally Posted by Major Changes
    -Automatic support for all screen resolutions (no need to type in coordinates like before)
    -Audio notice of key toggles (Plays a higher pitched sound when controls are suspended, lower pitched when activated)
    -Better mouse usage by commands
    When pressing a mouse-using command, your mouse will freeze momentarily to let the command execute perfectly
    Mouse moves instantly when using a command. Equip hotkeys are a lot more responsive.
    -Easier setup of equip hotkeys (new instructions below)
    -Option to have era.graalonline.com open automatically when running the hotkey script
    -Script is better commented this time, for a little easier navigation
    -----
    Default controls:
    AWSD: Movement
    Q: Equip slot "D"
    E: Equip slot "S"
    Left Shift: Grab/Reload
    R: Special function "Z"
    F: Special function "X"

    Y: Chat
    U: Gang Chat
    I: Check PM
    O: PM middle button (Reply)
    P: PM right button (Close)

    1,2,3,4,5,c,v: Equip slot hotkeys
    Left Ctrl: Food hotkey

    -----
    Setup instructions:

    Download and install AutoHotkey: Here (Direct download link)

    Copy and paste the following into a notepad and save it as a .ahk in an easy to locate spot. It's a lot longer this time. Be sure to get it all!

    Newest code found at this link (Direct Download): Here
     Spoiler
    Code:
    #CommentFlag //
    //Current Verson: 2.1
    
    
    SetDefaultMouseSpeed, 0 //makes your arrow move instantly when using commands
    
    //Run, http:`//era.graalonline.com //remove the //at the start of this line to open era when you open your hotkeys
    
    
    Global equipX := A_ScreenWidth - 40
    Global equipY1 := 150
    Global equipY2 := 200
    Global neutralX = 0
    Global neutralY = 0
    
    Send t //Comment out (//) or delete this line to disable clock on startup of script
    
    
    //basic movement keys
    a::left
    w::up
    s::down
    d::right
    
    //equip1/equip2/grab
    q::d
    e::s
    Lshift::a
    
    //special function 1 and 2
    r::z
    f::x
    
    //Open Profile 
    Tab::q
    
    //toggle hotkeys, mainly used to type regularly to chat
    `::
    Suspend
        If(A_IsSuspended){
            SoundBeep, 800,        //a higher pitched beep will play if hotkeys are turned off
        } Else {
            SoundBeep             //or if they're turned on after toggling then a lower sound will play
        }
        Return
    
    //Pressing enter after typing chat will automatically turn on hotkeys again
    Enter::
        Suspend
        If(A_IsSuspended){
            SoundBeep, 800, 
        } Else {
            SoundBeep
        }
        Send {Enter}
        Return
    
    //command for chatting
    y::
        Sleep 0
        Suspend
        Send {Tab}
        SoundBeep, 800
        Return
    
    //command for guildchat
    u::
        gChatButtonX := 80
        gChatButtonY := 30
        BlockInput, MouseMove
        CapPos()
        Click %gChatButtonX% %gChatButtonY%
        ReturnPos()
        BlockInput, MouseMoveOff
        Suspend
        SoundBeep, 800
        Return
    
    //for pressing pms and notices
    i::
        pmButtonX := 120
        pmButtonY := 30
        BlockInput, MouseMove
        CapPos()
        Click %pmButtonX% %pmButtonY%
        BlockInput, MouseMoveOff
        ReturnPos()
        Return
    //The middle button on a pm (reply)    
    o::
        midButtonX := A_ScreenWidth*0.5
        midButtonY := A_ScreenHeight*0.6
        BlockInput, MouseMove
        CapPos()
        Click %midButtonX% %midButtonY%
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    //the right button on a pm (close)
    p::
        rightButtonX := A_ScreenWidth*0.5585
        rightButtonY := A_ScreenHeight*0.6
        BlockInput, MouseMove
        CapPos()
        Click %rightButtonX% %rightButtonY%
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    
    //used for food (hotkey slot Row 2, Column 7)
    Lctrl::
        BlockInput, MouseMove
        CapPos()
        HotkeyA()
        Sleep 100
        Click
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    
    //Used for hotkey items
    1::
        BlockInput, MouseMove
        CapPos()
        HotkeyA()
        MoveToSlot(2,3)
        Click
        Sleep 150
        Send d
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    2::
        BlockInput, MouseMove
        CapPos()
        HotkeyA()
        MoveToSlot(2,1)
        Click
        Sleep 150
        Send d
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    3::
        BlockInput, MouseMove
        CapPos()
        HotkeyB()
        MoveToSlot(2,6)
        Click
        Sleep 10
        Send s
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    4::
        BlockInput, MouseMove
        CapPos()
        HotkeyB()
        MoveToSlot(1,4)
        Click
        Sleep 10
        Send s
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    5::
        BlockInput, MouseMove
        CapPos()
        HotkeyA()
        MoveToSlot(2,2)
        Click
        Sleep 10
        Send d
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    c::
        BlockInput, MouseMove
        CapPos()
        HotkeyA()
        MoveToSlot(1,7)
        Click
        Sleep 10
        Send d
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    v::
        BlockInput, MouseMove
        CapPos()
        HotkeyB()
        MoveToSlot(1,6)
        Click
        Sleep 10
        Send s
        ReturnPos()
        BlockInput, MouseMoveOff
        Return
    
    //Clock button
    t::
    	ifwinexist, clock
    	{
    		gui, destroy
    		return
    	}
    	ifwinnotexist, clock
    	{	
    		//get the color of the window, and the position of the clock
    		PixelGetColor, CustomColor, A_ScreenWidth-2, A_ScreenHeight-61
    		TimePosX :=  A_ScreenWidth - 100
    		TimePosY :=  A_ScreenHeight - 122
    
    		Gui, +AlwaysOnTop +LastFound +ToolWindow  // +ToolWindow avoids a taskbar button and an alt-tab menu item.
    		Gui, Color, %CustomColor% //set background color of the clock
    		Gui, Margin, 5, 45 //set margins to center the clock in the window
    		Gui, -Caption  // Remove the title bar and window borders.
    
    		Gui, Font, s16,,Segoe WP //font size and type
    		Gui, Add, Text, vMyText cBlack, XXXXXXXXXXX  // XX & YY serve to auto-size the window.
    
    
    		SetTimer, UpdateOSD, 1000 //update clock every second
    		Gosub, UpdateOSD  // Make the first update immediate rather than waiting for the timer.
    
    		Gui, Show, W100 H150 x%TimePosX% y%TimePosY% NoActivate, clock  // NoActivate avoids deactivating the currently active window.
    		return
    
    		UpdateOSD:
    			FormatTime, Time_a , h:m:s, h:mm tt
    			GuiControl,, MyText , %Time_a%
    			Gui, Color, %CustomColor%
    			return
    	}
    
    
    //Exits EraAWSD
    \::
        MsgBox, Thank you for using EraAWSD! All hotkeys are now disabled.
        ExitApp
    
    
    //-----------the following below are methods for cleaning the code above----
    
    //Opens the respective hotkey slots
    HotkeyA(){
        MouseClickDrag, L, equipX, equipY1, equipX-50, equipY1
    }
    HotkeyB(){
        MouseClickDrag, L, equipX, equipY2, equipX-50, equipY2
    }
    
    //methods for capturing where your mouse was before a command, and returning it there after it executes
    CapPos(){
        MouseGetPos, neutralX, neutralY
    }
    ReturnPos(){
        MouseMove, neutralX, neutralY
    }
    
    //when a hotkey is open, moves to the respective row and column as displayed on your menu
    //This method assumes that you own all 15 hotkeys, may work differently otherwise
    MoveToSlot(Row,Column){
        if(Column != 7){
            MouseMove, -41*(7-Mod(Column,7)),41*(Row-2),,R
        } else {
            MouseMove,0,41*(Row-2),,R
        }
    }
    Run the file and open Era in your browser!



    -----
    New hotkey edit instructions:

    -Open your EraAWSD script in notepad or some other .txt editor (I use Notepad++)
    Screenshot 2015-01-02 12.20.05.jpg

    -Scroll down to the key you want to edit and change the lines noted below as neeeded
    Code:
    1::                        //Change the key that activates this command
        BlockInput, MouseMove
        CapPos()
        HotkeyA()          //Change between HotkeyA() and HotkeyB() depending on what equip slot you want to use, top or bottom
        MoveToSlot(2,3)    //Change the values in the parenthesis in the format (Row, Column) depending on what hotkey you want to use, explained in a picture below
        Click
        Sleep 150
        Send d
        ReturnPos()
        BlockInput, MouseMoveOff
        Return


    MoveToSlot diagram:


    -----

    I hope you all enjoy this updated script. Please post here any problems you run into. Also, tell everyone about the new update!

    (To moderators: Please move this thread back to FAQs and Guides, it shouldn't belong in Future Improvements) Thanks Mods

    Update (3/8/2015) If anyone has the issue below, please tell me so I know if there's still a problem.
    Quote Originally Posted by Known Issues
    -O and P click the wrong spots
    Temoporary Fix
    Manually input a value for midButtonY and rightbuttonY
    Last edited by Vacci; 08-25-2017 at 04:36 AM. Reason: Updated Download Link
    Author of EraAWSD: http://era-go.com/forum/showthread.p...l=1#post195094 (Updated 15-09-2015)

    Just some music... https://www.youtube.com/watch?v=h41Rrk_6rzs (Updated 02-20-2016)


  6. #26

  7. #27
    hwaryun
    Guest
    Well done.

  8. #28
    Raven Ventus Victor's Avatar
    Join Date
    Feb 2014
    Location
    Malaysia
    Posts
    2,981
    It's a bit weird.
    You mean that those are the key which make you do this and that, or you programming something not about FB Era keys.
    It's weird.
    I'm FB Era player, Left shift was Strafe movement, and IJKL and WASD is the same, movement keys.
    I don't understand.

  9. #29
    Street Boss Vacci's Avatar
    Join Date
    Jun 2013
    Location
    Hawaii
    Posts
    865
    Quote Originally Posted by Victor View Post
    It's a bit weird.
    You mean that those are the key which make you do this and that, or you programming something not about FB Era keys.
    It's weird.
    I'm FB Era player, Left shift was Strafe movement, and IJKL and WASD is the same, movement keys.
    I don't understand.
    It's more geared towards keyboard+mouse players since they have the ability to just click what direction they want to shoot in. WASD is used in most other games for movement and this program gives them that option again. I could put back the Strafe key if you want to use WASD and still play keyboard only, or some sort of other configuration.
    Author of EraAWSD: http://era-go.com/forum/showthread.p...l=1#post195094 (Updated 15-09-2015)

    Just some music... https://www.youtube.com/watch?v=h41Rrk_6rzs (Updated 02-20-2016)


  10. #30
    Raven Ventus Victor's Avatar
    Join Date
    Feb 2014
    Location
    Malaysia
    Posts
    2,981
    Oh, I use Keyboard + mouse. lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •