Close
Page 2 of 2 FirstFirst 1 2
Showing results 11 to 19 of 19
  1. #11

    Default

    ye warrior had HWL gear and priest was tier2



    About AHK. Whenever you launch a script a small "H" icon appears in trey. When you right mouse click the icon there is menu. In the menu there is function to pause script executing so you basically pause script and type what you want and launch it once again.
    Coffee Resurrects.

  2. #12

    Default

    Quote Originally Posted by unit187
    ye warrior had HWL gear and priest was tier2



    About AHK. Whenever you launch a script a small "H" icon appears in trey. When you right mouse click the icon there is menu. In the menu there is function to pause script executing so you basically pause script and type what you want and launch it once again.
    Ahh, so theres no other way to pause the script without using my task bar?

  3. #13

    Default

    I dont think there is any other way to pause your script
    Coffee Resurrects.

  4. #14

  5. #15

    Default

    I don't have the code snippet in work so will edit this post when I get home but...

    [code:1]/::
    ENTER:::
    Suspend
    return[/code:1]

    that is the basics of what you are after... it will toggle the suspend state of the script whenever you hit either the / or the ENTER

    the problem I had was that I lost track of whether the script was supended or not (autohide task bar)

    so I added extra functionality that checks the state and displays a popup when suspended.

    btw if the first line after the hotkey is not suspend then you need to add the command

    [code:1]Suspend Permit[/code:1]

    this goes for any hot keys that you want to work even when suspended e.g reload or edit

  6. #16

    Default

    Hey, Looking forward on your edited one.

    Is there a way to make it like this: press enter to suspend, press enter again to unsuspend? or should i just hotkey 2 buttons for suspend / unsuspend?
    The Maelstrom (EU) PvP
    3 x Undead Priest

  7. #17

    Default

    the suspend command defaults to toggle

    or you can enter it on the line like so

    [code:1]Suspend toggle[/code:1]


    either way then it swaps suspend on receipt of either key.

    I will post my snippet when I get home....

    it is not a lot more complex except that I display a small dialog when AHK is suspended.

  8. #18

    Default

    sorry for the delay... didn't get as much computer time as I hoped this weekend but...


    the code I use to manage my AHK script and suspend during chat is...

    This section is near the top and works regardless of the forground application... it ensures that I can suspend the script in the event of a crazy loop and can also edit or restart it in the suspended state.
    [code:1]
    ; CTRL+ALT+p - toggle suspend manually
    ^!p::
    Suspend, Permit
    Suspend
    return

    ; CTRL+ALT+o - reload script even if suspended
    ^!o::
    Suspend, Permit
    Reload
    return

    ; CTRL+ALT+' - edit the script even if suspended
    ^!'::
    Suspend, Permit
    Edit
    return
    [/code:1]


    This code explicitly sets the suspend state after checking the current state... it displays a small window with a suspend notification picture to show it is suspended.
    [code:1]
    ;*** Gui Notifications ***
    ; set up the dialog which will be displayed when scrip is suspended

    Gui, Add,Picture,w100 h-1 ,C:\scripts\resources\suspended.png

    ;*** Chat Functions ***
    ; in order to show the suspended dialog this explicitly sets the suspend state
    ~/::
    ~Enter::
    Suspend, Permit
    if (A_IsSuspended = 1) {
    Suspend, off
    Gui, Show, Hide
    } else {
    Suspend, on
    Gui, Show, W100 H100 X1390 Y10
    WinActivate, ahk_id %idMain%

    }
    return
    [/code:1]

    instead of the above code, if you don't want a gui window displaying just use

    [code:1]
    ~/::
    ~Enter::
    Suspend, toggle
    return
    [/code:1]

    I find that my logging into the game (pressing enter) takes me into suspended state so I have a [code:1]Suspend, off [/code:1] command immediately after this routine.

  9. #19

    Default

    Hey m8,

    thanks for the code!

    I changed it a little so it wont show a picture but just a little window with text in it:

    [code:1];*** Chat Functions ***
    ; in order to show the suspended dialog this explicitly sets the suspend state
    ~]::
    Suspend, Permit
    if (A_IsSuspended = 1) {
    Suspend, off
    SplashTextOn, 75, , Unsuspended
    Sleep, 1000
    SplasHtextoff
    ;Gui, Show, Hide
    } else {
    Suspend, on
    SplashTextOn, 70, , Suspended
    Sleep, 1000
    SplasHtextoff
    ;Gui, Show, W100 H100 X600 Y10
    WinActivate, ahk_id %idMain%

    }
    return[/code:1]
    The Maelstrom (EU) PvP
    3 x Undead Priest

Similar Threads

  1. Question: Movement Keyclone and looting
    By muplayer2007 in forum New Multi-Boxers & Support
    Replies: 6
    Last Post: 09-25-2013, 01:41 AM
  2. A question about questing macro
    By Rachel- in forum Macros and Addons
    Replies: 2
    Last Post: 08-25-2008, 02:27 AM
  3. Question about looting!
    By nick901304 in forum New Multi-Boxers & Support
    Replies: 2
    Last Post: 08-13-2008, 10:18 PM
  4. Question about questing
    By Arimil in forum New Multi-Boxers & Support
    Replies: 6
    Last Post: 07-02-2008, 04:54 AM
  5. Looting question?
    By Mexdude in forum New Multi-Boxers & Support
    Replies: 8
    Last Post: 12-26-2007, 04:11 PM

Posting Rules

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