Multiple Lines of code in /in... statement menu

User Tag List

Results 1 to 4 of 4
  1. #1
    eonduckem's Avatar Member
    Reputation
    1
    Join Date
    Feb 2007
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Lines of code in /in... statement

    Is there a way to add multiple lines of code using the /in command?

    lets just say I needed confirmation to leave a battleground "are you sure you want to do leave battlegrounds?"
    when using:
    /logout
    /in 20.05 /script LeaveBattleField()

    i would need to add the command for said theoretical confirmation:

    /console SET scriptErrors "0"
    /click StaticPopup1Button1
    /console SET scriptErrors "1"

    So what is the method for attaching the above after:
    /in 20.05 /script LeaveBattlefield()
    and making sure it stays within the /in 20.05 command?

    I'm pretty sure my syntax is just wrong, I need something like: /in 20.05 /script LeaveBattlefield() /console SET scriptErrors "0" /click StaticPopup1Button1 /console SET scriptErrors "1"
    So the /in modifier applies to the other code?

    Multiple Lines of code in /in... statement
  2. #2
    Saiket's Avatar Contributor
    Reputation
    146
    Join Date
    Jul 2007
    Posts
    176
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The most compact way to schedule more than one command with /in is to use one /in call for each command.

    Code:
    /logout
    /in 20.05 /run LeaveBattleField()
    /in 20.05 /console scriptErrors 0
    /in 20.05 /click StaticPopup1Button1
    /in 20.05 /console scriptErrors 1
    AddOn developer and long time explorer.

  3. #3
    parrworg's Avatar Sergeant Major
    Reputation
    89
    Join Date
    Mar 2007
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Saiket View Post
    The most compact way to schedule more than one command with /in is to use one /in call for each command.

    Code:
    /logout
    /in 20.05 /run LeaveBattleField()
    /in 20.05 /console scriptErrors 0
    /in 20.05 /click StaticPopup1Button1
    /in 20.05 /console scriptErrors 1
    There is one flaw though: you can't use /click in a /in macro.

  4. #4
    Saiket's Avatar Contributor
    Reputation
    146
    Join Date
    Jul 2007
    Posts
    176
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can, so long as you don't click a secure button or one that calls secure code. The static popup dialog does neither, so it would work.
    AddOn developer and long time explorer.

Similar Threads

  1. Hack any website you want with 1 line of code.
    By pamela in forum Programming
    Replies: 14
    Last Post: 02-19-2010, 07:45 AM
All times are GMT -5. The time now is 09:54 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search