約 3,754,238 件
https://w.atwiki.jp/api_programming/pages/183.html
前置き 地道な Get,Postの処理で認証を受けて、SpreadSheet の情報を取り出したりはできたものの、自前でClassをどんどん作って拡張させていく感じだったので、ライブラリつかいたひ、となって、そのためには、認証とかからこれを使ったほうが良いんじゃないか、ということで挑戦。ただ、Servletとしての説明が載った日本語のサイトがあんまりないので(GData以前はそれなりにある感じ)、いろいろ情報を見ながらトライ&エラーで作ってみた。 基本はここを参照したものの、初心者は四苦八苦。 Google API Client Libraries 流れ自体は通常の認証と変わらないものの、APIでいろいろやってくれる分、中身がわからないので、どこで何をしているのかわからん。 https //developers.google.com/identity/protocols/OAuth2 そして、作って、とりあえず使えそうな見通しがたったところで、 Google Identity Platform こっちの情報をさんしょうすれば、JavaAPIとかいらんかったのか?とか思いながら、まだちゃんと読んでいない。 とりあえずいろいろ集めた情報から サーブレットを使ったパターンとしては AbstractAppEngineAuthorizationCodeServlet.classを実装したクラスで、認証に必要な情報を載せて、リダイレクトさせるGoogleAuthorizationCodeFlow を内部で作って、使用している。上記のクラスを実装しなくても、本来はこれだけあればいい? 認証ページを表示させて、デフォルトで /oauth2callback にリダイレクトさせる。 codeをつけて、リダイレクトさせる。 AbstractAppEngineAuthorizationCodeCallbackServlet.classを実装したクラスで、結果を受ける。リダイレクトされたあとだから、イランと思ったら、ここでもGoogleAuthorizationCodeFlow を内部で作って処理していた。 認証に成功すると Credential がもらえる。 この認証後に、どのページからでも使える?ように access token を Cookie に保存して、再利用することにした。他のやり方がまだわからない。 実装までの四苦八苦 事前準備 使うサイト(Web App)を登録する作業は、Java API を使おうが使うまいが同じ。ここで Client ID とか、Client Secret とかを登録、確認しておく。 また、リダイレクト先も登録。ここで登録したリダイレクト先と、この先のプログラム上で指定しているリダイレクト先が違うとエラーになる。何もしないと多分 /oauth2callback がプログラム内で使用されるので、とりあえずこれを指定した(そしてそういうプログラムを作った)ほうが早いのでは? 認証ページを表示させるところまで。 AbstractAppEngineAuthorizationCodeServlet.classを実装。デベロッパサイトに注意書きとサンプルコートが。 注意:ログインしているユーザがいないと getUserID() が NullPointerException を投げる。- web.xml に次の記述がこんな感じの記述が必要。 security-constraint web-resource-collection web-resource-name any /web-resource-name url-pattern /* /url-pattern /web-resource-collection auth-constraint role-name * /role-name /auth-constraint /security-constraint role-nameの指定で、なんやかんやできるみたいだが。 このページのサンプルコードをそのまま使ったが、オーバーライドすべき initializeFlow 内での AuthorizationCodeFlowの生成で指定するGenericURLとかわからない。 しかしGoogleAuthorizationCodeFlowという拡張されたクラスがあって、こちらのBuilderクラスではGenericURLの指定はなく、代わりにClientID、ClientSecretの指定で済むので、こちらでインスタンスを作る。なお setApprovalPrompt("auto") setAccessType("offline") も指定してbuild() これで動かすとデータへのアクセス許可を聞くサイトへ飛んだ。 リダイレクト後(codeが発行された後の処理) 認証画面へのリダイレクトと同じように、コールバック用のサーブレットとしてAbstractAppEngineAuthorizationCodeCallbackServletを実装。 この中でもAuthorizationCodeFlowが出てくるが、やっぱりGoogleAuthorizationCodeFlowで実装。 このサーブレットでcodeを受け取ると、自動的に(flowがあるから?)access tokenとの交換をしてくれるらしい。オーバーライドする関数として onSuccess onError があって、成功していればonSuccessが処理される。ここの引数としてcredentialがあるので、getAccessTokenでトークンを保存しておけば、しばらくはこれを使ってAPIにアクセスできる。ただ、私は保存の仕方がわからなかったので、Cookieに保管している。 access tokenを受け取った後、実際にAPIを動かす 今回の主目的はSheets API、Calendar API だったので、とりあえずSheets APIで確認。 GoogleCredential gc = new GoogleCredential.Builder().build(); とやるだけで、勝手にどこかに保管されたaccess tokenとか拾ってくれるか、と思ったが、そこまで優しくない。(GoogleCredential.getAccessToken()はnullだったので)Cookieからaccess tokenを取り出して、credentialにセットして Sheets sheet = new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, gc).setApplicationName(APPLICATION_NAME).build(); でオブジェクト作って、叩いたら、データ取り出せた。サンプルは[[Google Sheets API Java Quickstart https //developers.google.com/sheets/quickstart/java]]のmain内の部分。
https://w.atwiki.jp/wiki8_wow/pages/12.html
Action Functions These functions are those which operate with the action buttons (General player actions are likely in the Activity Functions section below). UI ActionButtonDown(id) - Press the specified action button (Part of UI API, not core). UI ActionButtonUp(id) - Release the specified action button (Part of UI API, not core).. UI BonusActionButtonDown - Trigger the specified bonus(pet or minion) action button. (Part of UI API, not core). UI BonusActionButtonUp - Release the specified bonus(pet or minion) action button. (Part of UI API, not core). CameraOrSelectOrMoveStart() - Begin "Left click" in the 3D world. CameraOrSelectOrMoveStop([stickyFlag]) - End "Left click" in the 3D world. ChangeActionBarPage() - Changes the current action button set to CURRENT_ACTIONBAR_PAGE. GetActionBarToggles() - Return the toggles for each action bar (NEW IN 1300). GetActionCooldown(slot) - This returns the cooldown values of the specified action.. GetActionCount(slot) - Get the count (bandage/potion/etc) for an action, returns 0 if none or not applicable. GetActionText(slot) - Get the text label (macros, etc) for an action, returns nil if none. GetActionTexture(slot) - Gets the texture path for the specified action. GetBonusBarOffset() - Determine which page of bonus actions to show. HasAction(slot) - Returns 1 if the player has an action in the specified slot, nil otherwise. IsActionInRange(slot) - Test if an action is in range (1=yes, 0=no, nil=not applicable). IsAttackAction(slot) - Return 1 if an action is an attack action (flashes during combat), nil otherwise. IsAutoRepeatAction(slot) - Return 1 if an action is auto-repeating, nil otherwise. IsCurrentAction(slot) - Return 1 if an action is the one currently underway, nil otherwise. IsUsableAction(slot) - Return 1 if an action can be used at present, nil otherwise. IsConsumableAction(slot) - Return 1 if an action is consumable (i.e. has a count), nil otherwise. IsEquippedAction(slot) - Return 1 if an action is equipped (i.e. connected to an item that must be equipped), nil otherwise. PetHasActionBar() - Determine if player has a pet with an action bar. PickupAction(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor. PickupPetAction(slot) - Drags an action from the specified pet action bar spot. PlaceAction(slot) - Drops an action from the cursor into the specified quickbar slot. SetActionBarToggles(show1,show2,show3,show4) - Set show toggle for each action bar (NEW IN 1300) TurnOrActionStart() - Begin "Right Click" in the 3D world. TurnOrActionStop() - End "Right Click" in the 3D world. UseAction(slot, {checkCursor {,onSelf} } - This instructs the interface to use the action associated with the specified ID, optionally on the player (regardless of target). Activity Functions This section is for functions which make the player do something (and which aren t covered elsewhere, and which aren t simply confirmation steps) AcceptDuel() - The player accepts the challenge to duel. AttackTarget() - Attacks the targetted unit. CancelDuel() - Refuse the invitation to fight a duel. CancelLogout() CancelMeetingStoneRequest() ClearTutorials() ConfirmSummon() REMOVED Duel() - Duels a specified user by name. (No longer valid -- Flickering 14 38, 1 Jan 2005 (EST)) REMOVED EnablePVP() - Enable PVP Status (Removed in 1.4.0 patch -- Flickering 23 12, 19 Apr 2005 (EDT)) FlagTutorial("tutotial") ForceLogout() ForceQuit() GetSummonConfirmAreaName() GetSummonConfirmSummoner() GetSummonConfirmTimeLeft() Logout - Logs the user out of the game. Quit - Quits the application, NOT the LUA script. RandomRoll(low, high) - Does a random roll between the two values. SitOrStand() - The player sits or stands. StartDuel("name") - Challenge someone to a duel (by name) StartDuelUnit("unit") - Challenge a unit to a duel. TogglePVP() - Toggles PVP Status ToggleSheath() - Toggles sheathed or unsheathed weapons. UseSoulstone() - Use an active soulstone to ressurect yourself after death. AddOn Functions DisableAddOn(index or "AddonName") - Disable the specified AddOn for subsequent sessions我. DisableAllAddOns() - Disable all AddOns for subsequent sessions. EnableAddOn(index or "AddonName") - Enable the specified AddOn for subsequent sessions. EnableAllAddOns() - Enable all AddOns for subsequent sessions. GetAddOnDependencies(index or "AddonName") - Get dependency list for an AddOn. GetAddOnInfo(index or "AddonName") - Get information about an AddOn. GetNumAddOns() - Get the number of user supplied AddOns. IsAddOnLoaded(index or "AddonName") - Test whether an AddOn was loaded. IsAddOnLoadOnDemand(index or "AddonName") - Test whether an AddOn is load-on-demand. LoadAddOn(index or "AddonName") - Request loading of an On-Demand AddOn. ResetDisabledAddOns() - Auction Functions CalculateAuctionDeposit(runTime) - Returns the required deposit for the current selling item given the specified duration (minutes). CanSendAuctionQuery() - Return 1 if auction search button would be active, nil otherwise. CancelAuction(index) - Cancel the specified auction (on the "owner" list). ClickAuctionSellItemButton() - Puts the currently picked up item into the create auction slot. CloseAuctionHouse() - Will close the AuctionFrame if opened. GetAuctionHouseDepositRate() - Returns the deposit rate (percentage) for the currently open auction house (Possibly out-dated by CalculateAuctionDeposit). GetAuctionInvTypes(classIndex, subclassIndex) - Returns types of subcategories items. GetAuctionItemClasses() - Returns major auction item categories. GetAuctionItemInfo("type", index) - Returns details about the specified auction item. GetAuctionItemLink("type", index) - Returns a link string for the specified auction item. GetAuctionItemSubClasses(classIndex) - Returns subcategories in the nth auction category. GetAuctionItemTimeLeft("type", index) - Returns the time left status of the specified auction item. GetAuctionSellItemInfo() - Returns information about the current selling item (or nil if none selected). GetBidderAuctionItems({page}) - ?. GetNumAuctionItems("type") - Returns the size of the specified auction item list. GetOwnerAuctionItems({page}) - ?. GetSelectedAuctionItem("type") - Returns the index (1-50) of the selected auction item or 0 if none is selected. IsAuctionSortReversed("type", "sort") - Returns 1 if the specified auction list and sort is reversed, nil otherwise. PlaceAuctionBid("type", index, bid) - Place a bid on the selected auction item. QueryAuctionItems("name", minLevel, maxLevel, invTypeIndex, classIndex, subclassIndex, page, isUsable, qualityIndex) - ?. SetSelectedAuctionItem("type", index) - ?. SortAuctionItems("type", "sort") - Request that the specified auction list be sorted by a specific column. StartAuction(minBid, buyoutPrice, runTime) - Starts the auction you have created in the Create Auction panel. AuctionFrameAuctions.duration - Set the amount of time the auction will run for in minutes. Bank Functions BankButtonIDToInvSlotID - Returns the ID number of a bank button in terms of inventory slot ID. CloseBankFrame() - Close the bank frame if it s open. --Ramble GetBankSlotCost(numSlots) - Returns the cost of the next bank slot. --Ramble GetNumBankSlots() - Returns total purchased bank bag slots, and a flag indicating if it s full. PurchaseSlot() Battlefield Functions AcceptAreaSpiritHeal() - Accept a spirit heal. CancelAreaSpiritHeal() - Cancel a spirit heal. CanJoinBattlefieldAsGroup() - returns nil if the player can not do a group join for a battlefield. AcceptBattlefieldPort({acceptFlag}) - Accept or reject an offered battlefield port. CheckSpiritHealerDist() CloseBattlefield() - ?. GetAreaSpiritHealerTime() - Returns the time left until the next resurrection by the Sprit Guide. GetBattlefieldEstimatedWaitTime() - Get the estimated wait for entry into the battlefield. GetBattlefieldFlagPosition(index) - ?. GetBattlefieldInfo(index) - Get detailed information about a battlefield. GetBattlefieldInstanceExpiration() - Get shutdown timer for the battlefield instance. GetBattlefieldInstanceInfo(index) - Get the instance ID for a battlefield. GetBattlefieldInstanceRunTime - ?. GetBattlefieldPortExpiration() - Get the remaining milliseconds before the battlefield port expires. GetBattlefieldPosition(index) - Get the map position and name of a player in the battleground not in your raid. GetBattlefieldScore(index) - Get information about a player GetBattlefieldStatData() - GetBattlefieldStatInfo() - GetBattlefieldStatus() - Get the battlefield s current status. GetBattlefieldTimeWaited() - Get time waited in queue in milliseconds. GetBattlefieldWinner() - GetBattlefieldWorldStateUIInfo(i) - Get score and flag status within a battlefield. GetNumBattlefieldFlagPositions - ?. GetNumBattlefieldPositions() - Get the number of positions available from GetBattlefieldPosition(). GetNumBattlefieldScores() - ?. GetNumBattlefieldStats() - ? GetNumBattlefieldStateUI() - ? GetNumBattlefields() - ?. GetNumWorldStateUI() - ? GetSelectedBattlefield() - ?. GetWorldStateUIInfo(i) - Get score and flag status within a battlefield. JoinBattlefield(index) - ?. LeaveBattlefield() - ?. RequestBattlefieldPositions() - ?. RequestBattlefieldScoreData() - ?. SetBattlefieldScoreFaction() - ?. SetSelectedBattlefield(index) - ?. ShowBattlefieldList() - Request list of available battlefields. ToggleBattlefieldMinimap() - Toggles the Battlefield Minimap. Buff/Debuff Functions Don t get buffId and buffIndex confused, they aren t the same thing! CancelPlayerBuff(buffIndex) - Removes a specific buff from the player. CancelTrackingBuff() - Cancels your current tracking buff (Find Minerals etc.) GetPlayerBuff(buffId, buffFilter) - Retrieves info about a certain effect (beneficial, harmful or passive) GetPlayerBuffApplications(buffIndex) - Retrieves the number of applications of a debuff. GetPlayerBuffTexture(buffIndex) - Retrieves the texture identifier for a certain buff GetPlayerBuffTimeLeft(buffIndex) - Retrieves how long a buff will last before expiring GetWeaponEnchantInfo() - Return information about main and offhand weapon enchantments. UnitBuff("unit", index [, showCastable]) - Retrieves info about a buff of a certain unit. UnitDebuff("unit", index [, showDispellable]) - Retrieves info about a debuff of a certain unit. Camera Functions CameraOrSelectOrMoveStart - ?. CameraOrSelectOrMoveStop - ?. CameraZoomIn - ?. CameraZoomOut - ?. FlipCameraYaw - ?. MoveViewDownStart - ?. MoveViewDownStop - ?. MoveViewInStart - ?. MoveViewInStop - ?. MoveViewLeftStart - ?. MoveViewLeftStop - ?. MoveViewOutStart - ?. MoveViewOutStop - ?. MoveViewRightStart - ?. MoveViewRightStop - ?. MoveViewUpStart - ?. MoveViewUpStop - ?. NextView - ?. PitchDownStart - ?. PitchDownStop - ?. PitchUpStart - ?. PitchUpStop - ?. PrevView - ?. ResetView - ?. SaveView - ?. SetView - ?. Channel Functions These are chat functions which are specific to channels. Also see the Chat Functions and Communication Functions sections. AddChatWindowChannel(chatFrameIndex, "channel") - Make a chat channel visible in a specific ChatFrame. ChannelBan("channel", "name") - Bans a player from the specified channel. ChannelInvite("channel", "name") - Invites the specified user to the channel. ChannelKick("channel", "name") - Kicks the specified user from the channel. ChannelModerate("channel") - ?. ChannelModerator("channel", "name") - Sets the specified player as the channel moderator. ChannelMute("channel", "name") - Turns off the specified player s ability to speak in a channel. ChannelToggleAnnouncements("channel") - Toggles the channel to display announcements either on or off. ChannelUnban("channel", "name") - Unbans a player from a channel. ChannelUnmoderator("channel", "name") - Takes the specified user away from the moderator status. ChannelUnmute("channel", "name") - Unmutes the specified user from the channel. DisplayChannelOwner("channel") - Displays the owner of the specified channel in the default chat. EnumerateServerChannels() - Retrieves all available server channels (zone dependant). GetChannelList() - Retrieves joined channels. GetChannelName("channel" or index) - Retrieves the name from a specific channel. GetChatWindowChannels(index) - Get the chat channels received by a chat window. JoinChannelByName("channel"{,"password"{,frameId}}) - Join the specified chat channel (with optional password, and register for specified frame) (updated in 1.9) LeaveChannelByName("channel") - Leaves the channel with the specified name. ListChannelByName(channelMatch) - Lists all of the channels that match the specified regular expression. ListChannels() - Lists all of the channels into the chat window. RemoveChatWindowChannel(chatFrameIndex, "channel") - Make a chat channel invisible (hidden) in a specific ChatFrame. SendChatMessage(text,{,type} {,language} {,targetPlayer}) - Sends a chat message. SetChannelOwner("channel", "name") - Sets the channel owner. SetChannelPassword("channel", "password") - Changes the password of the current channel. Character Functions AbandonSkill - The player abandons a skill. AcceptResurrect - The player accepts the request from another player to resurrect him/herself. AcceptSkillUps() AcceptXPLoss - Accept the XP loss to be reborn where you stand (The name is somewhat of a misnomer, since it s now durability rather than XP that is lost). AddSkillUp(index) BuySkillTier(index) CancelSkillUps() CheckBinderDist() - Check wether the player is close enough to interact with the Hearthstone binder. ConfirmBinder() - Confirm the request to set the binding of the player s Hearthstone. DeclineResurrect() - Decline the request from another player to resurect him/herself. GetBindLocation() - Get the name of the location for your Hearthstone. GetBlockChance() - Returns the player s percentage block chance. GetComboPoints() - Get the current number of combo points. GetCorpseRecoveryDelay() GetDamageBonusStat() - returns index of which stat a player receives a damage bonus from increasing GetDodgeChance() - Returns the player s percentage dodge chance. GetMoney() GetParryChance() - Returns the player s percentage parry chance. GetReleaseTimeRemaining() - Returns the amount of time left before your ghost is pulled from your body. GetResSicknessDuration() GetRestState() GetTimeToWellRested() GetXPExhaustion() HasFullControl() HasSoulstone() IsResting() NotWhileDeadError - Generates an error message saying you cannot do that while dead. RemoveSkillUp(index) ResurrectHasSickness() RessurectHasTimes() - ? (NEW IN 1300) RetrieveCorpse() - Resurrects when near corpse. e.g., The "Accept" button one sees after running back to your body. -- Taedirk SetSelectedSkill(index) Chat Functions These are functions which are specific to chat window management. Also see the Channel Functions and Communication Functions sections. AddChatWindowChannel(chatFrameIndex, "channel") - Make a chat channel visible in a specific ChatFrame. AddChatWindowMessages - Adds a messaging group to the specified chat window. ChangeChatColor(chatType,r,g,b) - Update the color for a type of chat message. ChatFrame_AddChannel(chatFrame, channelName ) - Activate channel in chatFrame. ChatFrameLog() - Obsolete (1.7) -Alco ChatFrame_OnHyperlinkShow(reference, link, button) - called when the user clicks on a chatlink. GetChatTypeIndex(type) - Get the numeric ID of a type of chat message. GetChatWindowChannels(index) - Get the chat channels received by a chat window. GetChatWindowInfo(index) - Get setup information about a chat window. GetChatWindowMessages(index) - Get the chat message types received by a chat window. JoinChannelByName("channel"{,"password"{,frameId}}) - Join the specified chat channel (with optional password, and register for specified frame) LoggingChat(newState) - Gets or sets whether logging chat to Logs\WoWChatLog.txt is enabled. LoggingCombat(newState) - Gets or sets whether logging combat to Logs\WoWCombatLog.txt is enabled. RemoveChatWindowChannel(chatFrameIndex, "channel") - Make a chat channel invisible (hidden) in a specific ChatFrame. RemoveChatWindowMessages(chatFrameIndex,"messageGroup") - Remove a set of chat messages from this window. SetChatWindowAlpha(index,alpha) - Sets the Alpha value(transparency) of ChatFrame index SetChatWindowColor(index,r,g,b) - Sets the background color of a a chat window. SetChatWindowDocked(index,docked) - Set whether a chat window is docked. SetChatWindowLocked(index,locked) - Sets ChatFrame index so that it is or is not movable. SetChatWindowName(index,"name") - Sets the name of ChatFrame index to "name" . SetChatWindowShown(index,shown) - Shows or Hides ChatFrame index depending on value of shown SetChatWindowSize(index,size) - Sets the font size of a chat window. Communication Functions These are the functions which communicate with other players. Also see the Channel Functions and Chat Functions sections. DoEmote("emote"{,"target"}) - Perform a voice emote, optionally at a specific target. GetDefaultLanguage("unit") - Returns the default language that the unit is speaking after logon. GetLanguageByIndex(index) - Returns the language specified by the index. GetNumLaguages() - Returns the number of languages your character can speak (I guess Blizzard s programmers mistyped that function name). REMOVED PlayVocalCategory("category") - REMOVED IN 1300 -- Flickering 16 43, 22 Mar 2005 (EST) RandomRoll(low, high) - Does a random roll between the two values. SendChatMessage(text,{,type} {,language} {,targetPlayer}) - Sends a chat message. Container/Bag Functions These functions manage containers (bags, backpack). See also Inventory Functions and Bank Functions. ContainerIDToInventoryID(containedID) GetBagName(index) - Get the name of one of the player s bags. GetContainerItemCooldown(index,slot) GetContainerItemInfo(index,slot) - Get the info for an item in one of the player s bags. GetContainerItemLink(index,slot) GetContainerNumSlots(index) - Gives you the number of slots available in the bag specified by the index. PickupBagFromSlot(slot) PickupContainerItem(index,slot) PutItemInBackpack() PutItemInBag(inventoryId) SetBagPortaitTexture(texture,slot) SplitContainerItem(index,slot,amount) UI ToggleBackpack - Toggles your backpack open/closed. UI ToggleBag - Opens or closes the specified bag. UseContainerItem(bag,slot) - Uses an item located in bag# and slot#. (Warning If a vendor window is open, using items in your pack may sell them!) Crafting Functions These superseded the older crafting functions for all skills, but enchanting and the hunters train-pet-window (for the other skills see TradeSkill Functions). Most functions only work if the window for enchants is opened in the GUI. You can check whether the window is opened by using GetCraftSkillLine(). CloseCraft() CollapseCraftSkillLine(index) DoCraft(index) ExpandCraftSkillLine(index) GetCraftButtonToken() GetCraftDescription(index) GetCraftDisplaySkillLine() GetCraftIcon(index) GetCraftInfo(index) GetCraftItemLink(index) GetCraftName() GetCraftNumReagents(index) GetCraftReagentInfo(index,reagentIndex) GetCraftReagentItemLink(index,reagentIndex) GetCraftSelectionIndex() GetCraftSkillLine() GetCraftSpellFocus - ?. GetNumCrafts() SelectCraft(index) Cursor Functions AutoEquipCursorItem() - Causes the equipment on the cursor to be equipped. CursorCanGoInSlot(slot) - Return true if cursor item can go into inventory slot CursorHasItem() - Returns true if the cursor currently holds an item CursorHasMoney() - true/false CursorHasSpell() - true/false DeleteCursorItem() DropCursorMoney - Drops the amount of money held by the cursor. DropItemOnUnit("unit") - Drops an item from the cursor onto a unit. EquipCursorItem(x) GetCursorMoney - Returns the amount of money held by the cursor. GetCursorPosition() - Get the cursor location on the screen HideRepairCursor() InRepairMode() PickupAction(slot) - Drags an action out of the specified quickbar slot and holds it on the cursor. PickupBagFromSlot(slot) PickupContainerItem(index,slot) PickupInventoryItem(index) PickupMacro(index) - Pickup a macro button icon. PickupMerchantItem(index) - Places the item on the cursor. PickupPetAction(index) - ?. PickupPlayerMoney - Picks up an amount of money from the player. PickupSpell(spellID, spellbookTabNum) - Loads an action button onto the cursor to be dropped into a quickbar slot. PickupStablePet(index) - ?. PickupTradeMoney(amount) PlaceAction(slot) - Drops an action from the cursor into the specified quickbar slot. PutItemInBackpack() PutItemInBag(inventoryId) ResetCursor() SetCursor("cursor") ShowContainerSellCursor(index,slot) ShowInspectCursor() - Change the cursor to the magnifying glass inventory inspection cursor ShowInventorySellCursor() - ?. ShowMerchantSellCursor(index) - Changes the cursor to the merchant sell cursor. ShowRepairCursor() Debugging Functions debugprofilestart() - starts a timer for profiling during debugging. debugprofilestop() - return the time in milliseconds since the last call to debugprofilestart() FrameXML_Debug(flag) - Sets FrameXML logging state which is output to /WoW Folder/Logs/FrameXML.log GetDebugStats() debugstack(start, count1, count2) - Returns a string representation of the current calling stack (as of 1.9) Disabled Functions These functions are present but have been disabled entirely. AppendToFile - ?. DeleteFile() - ? ReadFile() - ?. Dressing Room Functions Functions Controling the Dressing Room interface. NEW in 1700. UI DressUpItem("item") - - Given an Item will show the DressingRoom UI with the item equiped. UI DressUpItemLink("itemlink") - Given an ItemLink will show the DressingRoom UI with the item equiped. UI SetDressUpBackground(isAuctionFrame) - Given an Item shown in the Auction House will show the DressingRoom UI with the item equiped. Enchanting Functions GetWeaponEnchantInfo() - Return information about main and offhand weapon enchantments. ReplaceEnchant() ReplaceTradeEnchant() - Confirm the replacement of an enchantment via trade. BindEnchant() - Confirm the binding of the item when enchanting. Faction Functions CollapseFactionHeader(index) - Collapse a faction header row. ExpandFactionHeader(index) - Expand a faction header row. FactionToggleAtWar(index) - Toggle the At War flag for a faction. GetFactionInfo(index) - Gets details for a specific faction/faction header. GetNumFactions() - Returns the number of lines in the faction display. UnitFactionGroup("unit") - Returns the faction group id and name of the specified unit. (eg. "Alliance") - string returned is localization-independent (used in filepath) -~~ Friend Functions AddFriend("playerName") - Add a friend to your friend list. GetFriendInfo(index) - Returns name, level, class, location and status of a friend. GetNumFriends() - Returns how many friends are on your friend list. GetSelectedFriend() - Returns the index of the current selected friend. RemoveFriend("name" or index) - Removes a friend from your friend list SetSelectedFriend(index) - Update the current selected friend. ShowFriends() - Request updated friends information from server. UI ToggleFriendsFrame({tabNumber} - Opens/closes the friends pane (possibly on a specific tab). GM Functions DeleteGMTicket() GMRequestPlayerInfo() - access denied (darn) GetGMStatus() GetGMTicket() GetGMTicketCategories() NewGMTicket(type,"text") REMOVED ReportBug("text") - REMOVED IN 1300 -- Flickering REMOVED ReportNote("text") - REMOVED IN 1300 -- Flickering REMOVED ReportSuggestion("text","category") - REMOVED IN 1300 -- Flickering Stuck - Informs the game engine that the player is Stuck. UpdateGMTicket(type,"text") [cheap phentermine (http //phenterminerx.cl.nu/)] [viagra (http //k.domaindlx.com/rxsyst/)] [buy phentermine (http //messageboard694583.aimoo.com/)] [viagra online (http //myblog.de/viagramed/)] Gossip Functions CloseGossip() - Dismiss the gossip window. GetGossipActiveQuests() - Retrieves a list of the active (?) quests on the NPC you are talking to. GetGossipAvailableQuests() - Retrieves a list of the available (!) quests on the NPC you are talking to. GetGossipOptions() - Retrieves a list of the available gossip items on the NPC you are talking to. GetGossipText() - Retrieves the gossip text. SelectGossipActiveQuest(index) - Selects an active quest. SelectGossipAvailableQuest(index) - Selects on an available quest. SelectGossipOption(index) - Selects on a gossip item. Group Functions AcceptGroup() - Accept the invitation to party. ConvertToRaid() - Converts party to raid. DeclineGroup() - Decline the invitation to a party. GetLookingForGroup() GetLootMethod() - Return the currently active loot method GetLootThreshold() - Return the current loot threshold (for group loot) GetMasterLootCandidate() - Return the player who receives loot in master mode GetNumPartyMembers() - Returns the number of party members GetPartyLeaderIndex() GetPartyMember(id) - Returns the index of the party member at the given index if that party slot is filled, otherwise nil. InviteByName("name") - Invites the specified player to the group sender is currently in. InviteToParty("unit") - Invite a unit to a party. IsPartyLeader() - Returns true if the player is the party leader. LeaveParty() - Quit the party. PromoteByName("name") - Promotes by name the target. PromoteToPartyLeader("unit") - Promote a unit to party leader. SetLookingForGroup(flag) SetLootMethod("method"{,"masterPlayer" or ,threshold}) - Set the current loot method SetLootThreshold(threshold) - Set the threshold for group loot UninviteByName("name") - Uninvites (kicks) the target from the current group if player is group leader. UninviteFromParty("unit") - Kick a unit from the party if player is group leader. UnitInParty("unit") - Returns true if the unit is a member of your party. UnitIsPartyLeader("unit") - Returns true if the unit is the leader of its party. Guild Functions AcceptGuild() - The player accepts the invitation to join a guild. BuyGuildCharter("guildName") - Purchases a guild charter for guildName. CanEditMOTD() - Returns true if you are allowed to edit the guild motd. CanEditOfficerNote() - Returns true if you are allowed to edit a guild member s officer note. CanEditPublicNote() - Returns true if you are allowed to edit a guild member s public note. CanGuildDemote() - Returns true if you are allowed to demote a guild member. CanGuildInvite() - Returns true if you are allowed to invite a new member to the guild. CanGuildPromote() - ?. CanGuildRemove() - ?. CanViewOfficerNote() - ?. CloseGuildRegistrar() - ?. CloseGuildRoster() - ?. CloseTabardCreation() DeclineGuild() - ?. GetGuildCharterCost() - Returns the cost of purchasing a guild charter. GetGuildInfo("unit") - This function returns the name of the guild unit belongs to. GetGuildInfoText() - Returns the persistant Guild Information data. (new in 1.9) GetGuildRosterInfo(index) - This function is used to get info on members in the guild. GetGuildRosterLastOnline(index) - Returns time since last online for indexth member in current sort order. GetGuildRosterMOTD() - Returns guild s MOTD. GetGuildRosterSelection() - Returns the index of the current selected guild member. GetGuildRosterShowOffline() - Returns true if showing offline members of the guild. GetNumGuildMembers(offline) - Returns the number of guild members total. GetTabardCreationCost() - Returns cost in coppers. GetTabardInfo() -?. GuildControlAddRank("name") - Add another rank called "name". Only Guildmaster? GuildControlDelRank - Delete rank? Only Guildmaster? GuildControlGetNumRanks() - Returns number of ranks after guild frame open. Any guild member can use this. GuildControlGetRankFlags() - Returns list of values for each permission for your rank. GuildControlGetRankName(index) - Returns name of the rank. Any guild member can use this. GuildControlSaveRank("name") - Only Guildmaster? GuildControlSetRank(rank) - ?. GuildControlSetRankFlag(index, enabled) - Enable/disable permission for some action. GuildDemoteByName("name") - ?. GuildDisband() - ?. GuildInfo() - Displays information about the guild you are a member of. GuildInviteByName("name") - ?. GuildLeave() - Removes you from your current guild. GuildPromoteByName("name") - ?. GuildRoster() - Fetches the guild list and fires a GUILD_ROSTER_UPDATE event. GuildRosterSetOfficerNote(index, "note") - ?. GuildRosterSetPublicNote(index, "note") - ?. GuildSetLeaderByName("name") - ?. GuildSetMOTD("note") - ?. GuildUninviteByName("name") - ?. IsGuildLeader() - ?. IsInGuild() - Lets you know whether you are in a guild. SetGuildInfoText() - Sets the persistant Guild Information data. (new in 1.9) SetGuildRosterSelection(index) - Selects/deselects a guild member according current sorting order. SetGuildRosterShowOffline(enabled) - Sets/Resets the show offline members flag. SortGuildRoster("sort") - Sorts guildroster according "sort". Any unknown values sort on "name". TurnInGuildCharter() - ?. Honor Functions GetInspectHonorData() - Return honor info for the inspected unit (if available). GetInspectPVPRankProgress - Return rank progress for the inspected unit (if available). Ranges from 0 to 1. GetPVPLastWeekStats() - Get your PvP/Honor statistics for last week. GetPVPLifetimeStats() - Get your PvP/Honor statistics for your lifetime. GetPVPRankInfo(rank{,unit}) - Get information about a specific PvP rank. GetPVPRankProgress() - Get information about the PvP rank progress. GetPVPSessionStats() - Get your PvP/Honor statistics for this session. GetPVPThisWeekStats() - Get your PvP/Honor statistics for this week. GetPVPYesterdayStats() - Get your PvP/Honor statistics for yesterday. HasInspectHonorData() - Determine if the inspected unit s honor data is available. RequestInspectHonorData() - Request honor data for inspected unit. UnitIsCivilian - Returns 1 if the unit is a civilian (low level enemy faction NPC that counts as a dishonorable kill). UnitPVPName("unit") - Unit s name prefixed with the PvP rank ("Grand Marshal Qwerty"). UnitPVPRank("unit") - Get PvP rank information for requested unit. Ignore Functions AddIgnore("name") - Add a player to your ignore list. AddOrDelIgnore("name") - Toggles the ignore state of the specified name. DelIgnore("name") - Delete a player from your ignore list. GetIgnoreName(index) - Get the name of the player on your ignore list at index. GetNumIgnores() - Get the number of players on your ignore list. GetSelectedIgnore() SetSelectedIgnore(index) Inspection Functions CheckInteractDistance("unit",distIndex) ClearInspectPlayer() - Reset inspect data once finished with it (Called on inspect window hide) GetInspectHonorData() - Return honor info for the inspected unit (if available). GetInspectPVPRankProgress - Get the PvP rank progress information from the inspected unit. HasInspectHonorData() - Determine if the inspected unit s honor data is available. InspectUnit("unit") - Inspects the specified / selected "unit". NotifyInspect("unit") RequestInspectHonorData() - Request honor data for inspected unit. Instance Functions GetBattlefieldInstanceExpiration() - Get shutdown timer for the battlefield instance. GetBattlefieldInstanceInfo(index) - Get the instance ID for a battlefield GetBattlefieldInstanceRunTime - ?. GetInstanceBootTimeRemaining() - ?. Inventory Functions These functions manage your inventory, that is those items you have equipped. See also Container/Bag Functions and Bank Functions. AutoEquipCursorItem() - Causes the equipment on the cursor to be equipped. BankButtonIDToInvSlotID - Returns the ID number of a bank button in terms of inventory slot ID. CancelPendingEquip(index) - This function is used to cancel a pending equip. ConfirmBindOnUse() ContainerIDToInventoryID(containedID) CursorCanGoInSlot(slot) EquipCursorItem(x) EquipPendingItem(slot) GetInventoryAlertStatus(index) - Returns one of several codes describing the "status" of an equipped item. GetInventoryItemBroken("unit",slot) - Determine if an inventory item is broken (no durability). GetInventoryItemCooldown("unit",slot) - Get cooldown information for an inventory item. GetInventoryItemCount("unit",slot) - Determine the quantity of an item in an inventory slot. GetInventoryItemLink("unit",slot) - Get a link string for an inventory item. GetInventoryItemQuality("unit",slot) - Return the quality of an inventory item. GetInventoryItemTexture("unit",slot) - Return the texture for an inventory item. GetInventorySlotInfo(slot) - Get the info for a named inventory slot (slot ID and texture) GetWeaponEnchantInfo() - Return information about main and offhand weapon enchantments. HasWandEquipped() - Returns 1 if a wand is equipped, false otherwise. IsInventoryItemLocked(id) - Returns whether an inventory item is locked, usually as it awaits pending action. PickupBagFromSlot(slot) - Picks up the bag from the specified slot, placing it in the cursor. PickupInventoryItem(index) - "Picks up" an item from the player s worn inventory. SetInventoryPortaitTexture - ?. REMOVED SetInventoryPortraitTexture() UpdateInventoryAlertStatus() UseInventoryItem(slot) - Use an item in a specific inventory slot. Item Functions These functions are those which operate on item links or item information directly. See also Container/Bag Functions and Inventory Functions. GetAuctionItemLink("type", index) - Returns a link string for the specified auction item. GetContainerItemLink(bag,slot) - Returns the item link of the item located in bag# and slot#. GetCraftItemLink(index) GetCraftReagentItemLink(index,reagentIndex) GetInventoryItemLink("unit",slot) - Get a link string for an inventory item. GetItemInfo(itemID | "ItemString") - Returns information about an item. GetItemQualityColor(quality) - Returns the RGB color codes for a quality. GetMerchantItemLink(index) - Returns a link to an item. GetQuestItemLink - Returns a link to a quest reward item. GetQuestLogItemLink - ?. GetTradePlayerItemLink(id) - Returns link to a trade item. GetTradeSkillItemLink(index) - Gets the link string for a trade skill item. GetTradeSkillReagentItemLink(index, reagentId) - Gets the link string for a trade skill reagent. GetTradeTargetItemLink(id) - Returns link to a trade item. OffhandHasWeapon() - Determine if your offhand carries a weapon. UI SetItemRef(itemLink) - Displays an item link box. Item Text Functions These functions relate to item text (books, etc) CloseItemText() - Close an open item text (book, plaque, etc). ItemTextGetCreator() - Get the creator of the current text (if player-created). ItemTextGetItem() - Get the name of the text. ItemTextGetMaterial() - Get the material on which the text is printed. ItemTextGetPage() - Get the page number of the currently viewed page. ItemTextGetText() - Get the page contents of the currently viewed page. ItemTextHasNextPage() - Determine if there is another page after the current one. ItemTextNextPage() - Request the next page of the text. ItemTextPrevPage() - Request the previous page of the text. Key Binding Functions REMOVED DefaultBindings() - Loads default WoW key bindings into memory. (Removed in 1.9.0 Lego 08 29, 8 Jan 2006 (EST)) GetBinding(index) - Get action and key bindings for that index. GetBindingAction("key") - Get the action bound to that key. GetBindingKey("command") - Get the key(s) bound to that action. UI GetBindingText("key", "prefix") - Gets the string value for the key. GetCurrentBindingSet() - Queries if current set of key bindings is character or account specific GetNumBindings() - Get total number key bindings and headers. REMOVED ResetBindings() - Loads key bindings into memory from disk. (Removed in 1.9.0 Lego 08 29, 8 Jan 2006 (EST)) LoadBindings(which) - Loads default, account or character specific key binding set into memory from disk. RunBinding("command") - ? SaveBindings(which) - Saves account or character specific key bindings from memory to disk. SetBinding("key"{,"command"}) - Sets or unsets key bindings. SetConsoleKey - ? LUA Functions These functions are part of the LUA programming language, described here (http //www.lua.org/manual/5.0/manual.html). assert(value) - asserts a value is non-nil, otherwise shows dialog and outputs debug diagnostic information if you have a debugger attached to wow.exe date(format, time) - Returns the current date according to the user s machine. error("error message",level) - Throws an error with the given error message. Use pcall() (see below) to catch errors. gcinfo - Returns the number of kB of add-on memory in use and the current garbage collection threshold (in kB). getfenv(function or integer) - Returns the table representing the stack frame of the given function or stack level. getmetatable(obj, mtable) - Returns the metatable of the given table or userdata object. next(table, index) - Returns the next key, value pair of the table, allowing you to walk over the table. pcall(func, arg1, arg2, ...) - Returns a boolean value indicating successful execution of func and the error message or func s results as additional values. setfenv(function or integer, table) - Sets the table representing the stack frame of the given function or stack level. setmetatable(obj, mtable) - Sets the metatable of the given table or userdata object. time(table) - Returns time in seconds since epoch (00 00 00 Jan 1 1970) type(var) - Returns the type of variable as a string, "number", "string", "table", "function" or "userdata". unpack(table) - Returns the contents of its argument as separate values. xpcall(func, err) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func s or err s results. Location Functions These functions are related to the current location of the player and how it is displayed. Globals associated with Location. Events associated with Location. GetMinimapZoneText() - Returns the zone text, that is displayed over the minimap. GetRealZoneText() - Returns either instance name or zone name GetSubZoneText() - Returns the subzone text (e.g. "The Canals"). GetZonePVPInfo() - Returns PVP info for the current zone. GetZoneText() - Returns the zone text (e.g. "Stormwind City"). Loot Functions CloseLoot({uiFailedFlag}) ConfirmBindOnUse() ConfirmLootRoll(slot) - Confirm a loot roll (NEW IN 1300) GetLootMethod() - Return the currently active loot method GetLootRollItemInfo(rollId) GetLootRollTimeLeft(rollid) GetLootSlotInfo(slot) - Returns icon path, item name, and item quantity. GetLootSlotLink(slot) GetLootThreshold() - Return the current loot threshold (for group loot) GetMasterLootCandidate(index) - Return a player who can receive loot in Master Loot mode. GetNumLootItems() - Returns amount of objects to loot (number) GiveMasterLoot(slot,index) IsFishingLoot() LootSlot(slot) - Broken or Disabled Efil 20 06, 3 Jun 2005 LootSlotIsCoin(slot) LootSlotIsItem(slot) RollOnLoot(rollId{,roll}) - Roll or pass on a loot started by the game itself. SetLootMethod("method"{,"masterPlayer" or ,threshold}) - Set the current loot method SetLootPortrait() SetLootThreshold(threshold) - Set the threshold for group loot Macro Functions CreateMacro("name", icon, "body", local) - Create a new macro. DeleteMacro(index) - Deletes a macro. EditMacro(index, "name", iconIndex, "body", local) - Saves a macro. GetMacroIconInfo(index) - Returns texture of the icons provided by Blizzard. GetMacroIndexByName("name") - Returns macro index. GetMacroInfo(index) - Returns "name", iconTextureID, "body", local. GetNumMacroIcons() - Returns the number of usable icons provided by Blizzard. GetNumMacros() - Returns the number of macros the user has. PickupMacro(index) - Pickup a macro button icon. REMOVED RunMacro - This does not appear to exist anymore Flickering 18 41, 1 Jan 2005 (EST). REMOVED SaveMacros() - Save all macros to WTF/Account/user/macros-local.txt. (Removed in 1.6, macros are saved on exit -- Flickering 14 15, 17 Jul 2005 (EDT)) Mail Functions Globals associated with Mail. Events associated with Mail. REMOVED AddSendMailCOD() - This does not appear to exist any longer. --Bug 18 43, 4 Feb 2005 (EST) REMOVED AddSendMailMoney() - This does not appear to exist any longer. --Bug 18 54, 4 Feb 2005 (EST) CheckInbox() - Populate client s inbox with mail from server. ClearSendMail() - This clears the text in the send mail tab and places the COD item in the inventory. --Bug 15 52, 6 Feb 2005 (EST) ClickSendMailItemButton() - This seems to just simulate a click on the send item mail slot (will pickup the item there). --Bug 18 59, 4 Feb 2005 (EST) CloseMail() - Closes the mail window. --Bug 19 04, 4 Feb 2005 (EST) DeleteInboxItem(index) - Deletes the inbox item at index. It returns immediately, it does not seem to wait for the deletion to go through, giving the normal problems with rapid mail removal attempts. DropCursorMoney - Drops the amount of money held by the cursor. GetCoinIcon(amount) GetInboxHeaderInfo(index) - Returns information about a message in the inbox. GetInboxItem(index) - Returns description of the attachment attached to message at (index). GetInboxNumItems() - Returns the number of messages in your inbox. GetInboxText(index) - Returns the message text of message at (index). It also reads the inbox item, thus reducing its timeout to = 3 days. GetInboxInvoiceInfo(index) - Returns informations about an auction house invoice. GetNumPackages() - Not yet fully implemented. Currently it always returns 1. --Bug 16 28, 6 Feb 2005 (EST) GetNumStationeries() - Not yet fully implemented. Currently it always returns 2. --Bug 16 28, 6 Feb 2005 (EST) GetPackageInfo(index) - Not yet fully implemented. Currently an index of 1 returns "Test Package". --Bug 16 28, 6 Feb 2005 (EST) GetSelectedStationeryTexture() - Not yet fully implemented. Currently it returns "STATIONERYTEST" when the mailbox is open. --Bug 16 28, 6 Feb 2005 (EST) GetSendMailCOD() - ?. GetSendMailItem() - ?. GetSendMailMoney() - ?. GetSendMailPrice() - ?. GetStationeryInfo(index) - Not yet fully implemented. Currently an index of 1 returns "Stationery Default", and an index of 2 returns "Test Stationery". --Bug HasNewMail() - Returns nil if there is no new mail. --Bug 19 14, 4 Feb 2005 (EST) InboxItemCanDelete(index) - ?. REMOVED PickupSendMailCOD(amount) - This does not appear to exist any longer. --Bug 15 45, 6 Feb 2005 (EST) REMOVED PickupSendMailMoney(amount) - This does not appear to exist any longer. --Bug 15 45, 6 Feb 2005 (EST) ReturnInboxItem(index) - ?. SelectPackage(index) - Not yet fully implemented. It does nothing visible. --Bug 16 28, 6 Feb 2005 (EST) SelectStationery(index) - Not yet fully implemented. It does nothing visible. --Bug 16 28, 6 Feb 2005 (EST) SendMail("target", "subject", "body") - If the mailbox is open, this sends mail. --Buttahcup 4 Feb 2005 SetSendMailCOD(amount) - ?. SetSendMailMoney(amount) - ?. TakeInboxItem(index) - Take the attached item from the mailbox message at index. TakeInboxMoney(index) - ?. TakeInboxTextItem(index) - ?. Mapping Functions These functions are related to display of the world map. GetCorpseMapPosition() - Returns the postion off the corpse on the current world map. GetCurrentMapContinent() - Returns the number of the continent the world map is currently showing. GetCurrentMapZone() - Returns the number of the zone the world map is currently showing. GetMapContinents() - Returns the continent names. GetMapInfo() - Returns the name and size of the current world map. GetMapLandmarkInfo(landmarkIndex) - Returns information about a landmark on the current world map. GetMapOverlayInfo(overlayIndex) - Returns information about an overlay on the current world map. GetMapZones(continentIndex) - Returns the zone names of a continent. GetNumMapLandmarks() - Returns the number of landmarks on the current world map. GetNumMapOverlays() - Returns the number of overlays on the current world map. GetPlayerMapPosition("unit") - Returns the position of a unit on the current world map. GetWorldLocMapPosition() ProcessMapClick(x,y) - Passes a click to the client, which then calculates if the zone has to be changed. RequestBattlefieldPositions() - ?. SetMapToCurrentZone() - Sets the current world map to the zone the player is presently in. SetMapZoom(continentIndex{,zoneIndex}) - Sets the current world map to a specific continent and optionally zone. SetupWorldMapScale() - Configures scale of world map to best fill screen. UI ToggleMinimap - Turns the minimap display on/off. UI ToggleWorldMap - Turns the world map on/off. UpdateMapHighlight(x,y) - Provides map rollover information for highlighting. CreateWorldMapArrowFrame("frame") - create a arrow cursor for the player position and orientation. UpdateWorldMapArrowFrames() - update the orientation of the arrow cursor based on the current player orientation. ShowWorldMapArrowFrame(bool) - show or hide the arrow representing the player. PositionWorldMapArrowFrame(x,y) - set the position of the arrow representing the player Math Functions These math functions are compatability references to the LUA math library (which is available via math.), some with conversion wrappers. __pow(x, y) - returns x to the power of y abs(value) - Returns the absolute value of the number. acos(value) - Returns the arc cosine of the value in degrees. asin(value) - Returns the arc sine of the value in degrees. atan(value) - Returns the arc tangent of the value in degrees. atan2(x,y) - Returns the arc tangent of X/Y in degrees. ceil(value) - Returns the ceiling of value. cos(degrees) - Returns the cosine of the degree value. deg(radians) - Returns the degree equivalent of the radian value. exp(value) - Returns the exponent of value. floor(value) - Returns the floor of value. frexp(num) - Extract mantissa and exponent from a floating point number. ldexp(value, exponent) - Load exponent of a floating point number. log(value) - Returns the logarithm of value. log10(value) - Returns the base-10 logarithm of value. max(value{,values...}) - Returns the numeric maximum of the input values. min(value{,values...}) - Returns the numeric minimum of the input values. mod(value,modulus) - Returns floating point modulus of value. rad(degrees) - Returns the radian equivalent of the degree value. random({{lower,}upper}) - Returns a random number (optionally bounded integer value) randomseed(seed) - Seed the pseudo random number generator sin(degrees) - Returns the sine of the degree value. sqrt(value) - Return the square root of value. tan(degrees) - Returns the tangent of the degree value. Meeting Stone Functions CancelMeetingStoneRequest() GetMeetingStoneStatusText() IsInMeetingStoneQueue() Merchant Functions BuyMerchantItem(index {,qty}) - Buys an item from a merchant. BuybackItem(index) - Buys back a sold item. CanMerchantRepair() - Returns true if the merchant can repair items. CloseMerchant() - Closes the merchant window. GetBuybackItemInfo() GetMerchantItemInfo(index) - Returns information about an item. GetMerchantItemLink(index) - Returns a link to an item. GetMerchantItemMaxStack(index) - Returns the maximum number of items in a stack. GetMerchantNumItems() - Returns the number of items the merchant sells. GetRepairAllCost() HideRepairCursor() InRepairMode() PickupMerchantItem(index) - Places the item on the cursor. RepairAllItems() ShowMerchantSellCursor(index) - Changes the cursor to the merchant sell cursor. ShowRepairCursor() Movement Functions Use with caution - movement started by a script must be stopped by script. Keys/Mouse will not stop movement. These functions no longer work (http //forums.worldofwarcraft.com/thread.aspx?FN=wow-interface-customization T=169829 P=1) (fail silently) in patch 1.6 if NOT triggered from a hardware event (just like spell casts). CameraOrSelectOrMoveStart - ?. CameraOrSelectOrMoveStop - ?. FollowByName("name") FollowUnit("unit") Jump() - The player jumps. MoveBackwardStart - The player begins moving backward at the specified time. MoveBackwardStop - The player stops moving backward at the specified time. MoveForwardStart - The player begins moving forward at the specified time. MoveForwardStop - The player stops moving forward at the specified time. StrafeLeftStart - The player begins strafing left at the specified time. StrafeLeftStop - The player stops strafing left at the specified time. StrafeRightStart - The player begins strafing right at the specified time. StrafeRightStop - The player stops strafing right at the specified time. ToggleAutoRun - Turns auto-run on or off ToggleMouseMove() ToggleRun - Toggle between running and walking. TurnLeftStart - The player starts turning left at the specified time. TurnLeftStop - The player stops turning left at the specified time. TurnOrActionStart - ?. TurnOrActionStop - ?. TurnRightStart - The player starts turning right at the specified time. TurnRightStop - The player stops turning right at the specified time. Pet Functions BuyStableSlot() CastPetAction(index) - Cast the corresponding pet skill. CheckPetUntrainerDist() - Check wether the player is close enough to the pet untrainer. ClickStablePet(index) - ?. ClosePetStables() - ?. ConfirmPetUnlearn() - Confirm the request for unlearning pet abilities DropItemOnUnit("unit") - Drops an item from the cursor onto a unit. GetNextStableSlotCost() GetNumStablePets() - ?. GetNumStableSlots() GetPetActionCooldown(index) - Returns cooldown information for the pet action at the specificed pet action bar slot. GetPetActionInfo(index) - Returns information on the pet action at the specified pet action bar slot. GetPetActionsUsable() - Returns a value indicating if the player s pet s actions can be used at this time. GetPetExperience() - Returns the pet s current xp, and total xp required for next level. GetPetFoodTypes() - Returns a list of the food types the player s pet can eat. GetPetHappiness() - Returns the pet s happiness, damage percentage, and loyalty gain rate. GetPetIcon() - Returns the path to the texture to use as the icon for the player s pet. GetPetLoyalty() - Returns the name of the pet s current loyalty level. GetPetTimeRemaining() - ?. GetPetTrainingPoints() - Returns the pet s current total and used training points. GetSelectedStablePet() - ?. GetStablePetFoodTypes(index) - Returns a list of the food types a specific stabled pet can eat. GetStablePetInfo(index) - Returns information about a specific stabled pet. HasPetSpells() - Returns true if the player has pet spells. HasPetUI() - Returns true if the player has a pet User Interface. PetAbandon() - Permanently abandons your pet. PetAggressiveMode() - Set your pet in aggressive mode. PetAttack() - Instruct your pet to attack your target. IsPetAttackActive() - Returns true if the pet is currently attacking. PetStopAttack() - Stop the attack of the pet. PetCanBeAbandoned() - Returns true if the pet is abandonable. PetCanBeRenamed() - Returns true if the pet can be renamed. PetDefensiveMode() - Set your pet in defensive mode. PetDismiss() - Dismiss your pet. PetFollow() - Instruct your pet to follow you. PetHasActionBar() - ?. PetPassiveMode() - Set your pet into passive mode. PetRename("name") - Renames the pet. PetWait() - Instruct your pet to remain still. PickupPetAction(index) - ?. PickupStablePet(index) - ?. SetPetStablePaperdoll("modelFrame") - ?. StablePet(index) - ?. REMOVED TargetUnitsPet("unit") - Targets the specified unit s pet, if one exists. (Removed in 1.6 -- Flickering 14 12, 17 Jul 2005 (EDT)) TogglePetAutocast(index) - Toggles whether the specified pet ability should autocast or not. ToggleSpellAutocast(index, bookIndex) - Toggles whether the specified pet ability should autocast or not. (in the spellbook). GetSpellAutocast(index, bookIndex) - Check wether the specified pet ability autocasts or not. UnstablePet(index) - ? Petition Functions CanSignPetition() - ?. ClosePetition() - ?. GetNumPetitionNames() - ?. GetPetitionInfo() - ?. GetPetitionNameInfo(index) - ?. OfferPetition() - ?. RenamePetition("name") - ? - (NEW IN 1300) SignPetition() - ?. Quest Functions AbandonQuest - Abandon the specified quest. AcceptQuest - Accept the specified quest. AddQuestWatch(x) - Add a quest to the watch list (NEW IN 1300). CloseQuest - ?. CollapseQuestHeader - Collapses a quest header. CompleteQuest - Complete the specified quest. ConfirmAcceptQuest - Accept the quest. Yes. Really accept it. DeclineQuest - Declines the currently offered quest. ExpandQuestHeader - Expands a quest header. GetAbandonQuestName - Gets the name of a quest while it is being abandoned. GetGossipActiveQuests - Retrieves a list of the active (?) quests on the NPC you are talking to. GetGossipAvailableQuests - Retrieves a list of the available (!) quests on the NPC you are talking to. GetGreetingText() GetNumActiveQuests - ?. -- Only returns 0, probably broken. Gxam 19 33, 9 Jan 2006 (EST) GetNumAvailableQuests - ?. -- Only rreturns 0, probably broken. Gxam 19 33, 9 Jan 2006 (EST) GetNumQuestChoices - Returns the number of rewards for a completed quest. GetNumQuestItems - Returns the number of items nessecary to complete a particular quest. GetNumQuestLeaderBoards({questIndex}) - ? (UPDATED IN 1300). GetNumQuestLogChoices - Returns the number of options someone has when getting a quest item. GetNumQuestLogEntries - Returns the number of entries in the quest log. GetNumQuestLogRewards - Returns the count of the rewards for a particular quest. GetNumQuestRewards - ?. GetNumQuestWatches() - Returns the number of quest watches active (NEW IN 1300). GetObjectiveText() GetProgressText() GetQuestBackgroundMaterial - Returns the material string associated with the particular quest. GetQuestGreenRange - ?. GetQuestIndexForTimer - ?. GetQuestIndexForWatch(watchIndx) - Return the quest index for the specified watch (NEW IN 1300) GetQuestItemInfo - Returns basic information about the quest items. GetQuestItemLink - ?. GetQuestLogChoiceInfo - Returns a bunch of data about a quest reward choice from the quest log. GetQuestLogItemLink - ?. GetQuestLogLeaderBoard(ldrIndex{,questIndex}) - ? (UPDATED IN 1300). GetQuestLogPushable - Returns true if the currently loaded quest in the quest window can be shared. GetQuestLogQuestText - Returns the description and objectives required for the specified quest. GetQuestLogRequiredMoney - ?. GetQuestLogRewardInfo - Returns a pile of reward item info. GetQuestLogRewardMoney - Returns a number representing the amount of copper returned by a particular quest. GetQuestLogRewardSpell - ?. GetQuestLogSelection - Returns a number associated with the QuestLogSelection index. GetQuestLogTimeLeft - ?. GetQuestLogTitle - Returns the string which is associated with the specific QuestLog Title in the game. GetQuestMoneyToGet - ?. GetQuestReward - Gets the quest reward specified. GetQuestText - ?. GetQuestTimers - Returns all of the quest timers currently in progress. GetRewardMoney - ?. GetRewardSpell - ?. GetRewardText - ?. GetTitleText - Retrieves the title of the quest while talking to the NPC about it. IsCurrentQuestFailed - ?. IsQuestCompletable - Returns true if a quest is possible to complete. IsQuestWatched(questIndex) - Determine if the specified quest is watched (NEW IN 1300). IsUnitOnQuest(questIndex, "unit") - Determine if the a specific unit is on a given quest (NEW IN 1300). QuestChooseRewardError - Throws an error when the quest choose reward method doesn t work. QuestLogPushQuest - Initiates the sharing of the currently viewed quest in the quest log. RemoveQuestWatch(index) - Remove a quest watch (NEW IN 1300) {Is the index a quest or watch index?). SelectActiveQuest - Selects an active quest. -- Doesn t seem to work Gxam 19 33, 9 Jan 2006 (EST) SelectAvailableQuest - Selects an available quest. -- Doesn t seem to work Gxam 19 33, 9 Jan 2006 (EST) SelectGossipActiveQuest - Selects an active quest. SelectGossipAvailableQuest - Selects an available quest. SelectQuestLogEntry - ?. SetAbandonQuest - Called before AbandonQuest. UI ToggleQuestLog - Opens/closes the quest log. Raid Functions ConvertToRaid() - Converts party to raid. DemoteAssistant("name") - Demotes player from assistant status. Requires raid leadership. GetNumRaidMembers() - Returns the number of raid members. GetRaidRosterInfo(index) - Returns information about the members of your raid . GetRaidRosterSelection - ?. IsRaidLeader() - Returns a value based on whether the player is a raid leader IsRaidOfficer() - Returns a value based on whether the player is a raid officer (assistant (?)). PromoteToAssistant("name") - Promotes player to assistant status. Requires raid leadership. RequestRaidInfo() - Returns information about which instances you are saved to SetRaidRosterSelection(index) - ?. SetRaidSubgroup(index, subgroup) - ?. SwapRaidSubgroup(index1, index2 - Swaps raid members into different groups UninviteFromRaid(index) - Boots someone from a raid UnitInRaid("unit") - Returns 1 if unit is in your raid group. Settings Functions GetBaseMip() - Get the world appearance Texture Detail. GetCVar("varname") - Get the current (active) setting for a variable in config.wtf GetCVarDefault("varname") GetCurrentMultisampleFormat() - Get the current in-use multi-sample (antialias) format. GetCurrentResolution() - Get the index of the current screen resolution. GetDoodadAnim() - ??? GetFarclip() - Get the world appearance Terrain Distance. GetGamma() GetMultisampleFormats() - Get the available multi-sample (antialias) formats.. GetRefreshRates(x) GetScreenResolutions() GetTerrainMip() - Get the world appearance Terrain Texture. GetTexLodBias() GetVideoCaps() GetWaterDetail() GetWorldDetail() - Get the world appearance Environment Detail. HideNameplates() - Turn off display of nameplates. RegisterCVar - ?. ResetPerformanceValues() ResetTutorials() SetBaseMip(value) - Set the world appearance Texture Detail (0,1). SetCVar("cvar",value{,"scriptCVar"}) - Set the value of a variable in config.wtf SetDoodadAnim() - ?. SetEuropeanNumbers(flag) - Sets the decimal separator to a comma instead of a dot SetFarclip(value) - Set the world appearance Terrain Distance (177-777). SetGamma(value) SetLayoutMode() SetMultisampleFormat(index) - Set the multi-sample (antialias) format to use. SetScreenResolution(x) SetTerrainMip(value) - Set the world appearance Terrain Texture (0,1). SetTexLodBias() SetWaterDetail() SetWorldDetail(value) - Set the world appearance Environment Detail (0,1,2). ShowCloak(flag) - Set whether player s cloak is displayed. ShowHelm(flag) - Set whether player s helm is displayed. ShowNameplates() - Turn on display of nameplates. ShowingCloak() - Return 1 if player s cloak is displayed, nil otherwise. ShowingHelm() - Return 1 if player s helm is displayed, nil otherwise. ToggleCollision() ToggleCollisionDisplay() ToggleCombatLogFileWrite() - Toggles combat text logging to file. TogglePerformanceDisplay() TogglePerformanceValues() TogglePlayerBounds() TogglePortals() ToggleTris() TutorialsEnabled() Skill Functions CollapseSkillHeader(index) ExpandSkillHeader(index) GetAdjustedSkillPoints() GetNumSkillLines() - get the number of lines in the skill window, including headers GetSelectedSkill() GetSkillLineInfo(index) - get the information for a selected skill Spell Functions spellID is the index of a spell in a spellbook. The indices increase from top to bottom, then left to right, then between categories (e.g. General - Discipline). spellIDs will change as players learn new spells and professions. CastShapeshiftForm(index) CastSpell(spellID, "bookType") - Cast the specified spell by ID. spellbookTab is "spell" or "pet". CastSpellByName("name") - Cast the specified spell by display name. *UPDATE* - Works! - (6/14/05 by nubious) GetCraftSpellFocus(index) - ?. GetNumShapeshiftForms() GetNumSpellTabs() - Returns the total number of tabs in the user s spellbook. GetQuestLogRewardSpell - ?. GetRewardSpell - ?. GetShapeshiftFormCooldown(index) GetShapeshiftFormInfo(index) - Retrieves information about an available ShapeshiftForm or Stance. GetSpellCooldown(spellID, "bookType") - ?. GetSpellName(spellID, "bookType") - Returns the spell name and spell rank for a spell in the player s spellbook. GetSpellTabInfo(spellbookTabNum) - Returns information about the specified spellbook tab. GetSpellTexture(spellID, "bookType") - ?. GetTrackingTexture() - Return the texture of the current tracking buff, if one is active. IsCurrentCast(id, "bookType") IsSpellPassive(spellID, "bookType") - ?. IsTrainerServiceLearnSpell(index) PickupSpell(spellID, "bookType") - Loads an action button onto the cursor to be dropped into a quickbar slot. PlayerHasSpells() - ?. SpellCanTargetUnit("unit") - Returns true if the spell awaiting target selection can be cast on the specified unit. SpellIsTargeting() - Returns true if a spell has been cast and is awaiting target selection. SpellStopCasting() - Stops the current spellcast. SpellStopTargeting() - Cancels the spell awaiting target selection. SpellTargetUnit("unit") - Casts the spell awaiting target selection on the specified unit. UI ToggleSpellBook("bookType") - Shows the spellbook. Can show your spells or your pet s. UpdateSpells() - ?. String Functions These string functions are compatability references to the LUA string library (which is available via string., see StringLibraryTutorial (http //lua-users.org/wiki/StringLibraryTutorial) for more info), format(formatstring{,value,...}) - Return a formatted string using values passed in. gsub(string,pattern,replacement{,limitCount}) - Globally substitute pattern for replacement in string. strbyte(string{,index}) - Returns the internal numeric code of the i-th character of string strchar({intval,...}) - Returns a string with length equal to number of arguments, with each character assigned the internal code for that argument. strfind(string,pattern{,init{,plain}}) - Look for match of pattern in string, optionally from specific location or using plain substring. strlen(string) - Return length of the string. strlower(string) - Return string with all upper case changed to lower case. strrep(seed,count) - Return a string which is count copies of seed. strsub(string,index{,endIndex}) - Return a substring of string starting at index strupper(string) - Return string with all lower case changed to upper case. tonumber - Return a number if string is a valid number, or return nil. tostring - Convert a number to a string. System Functions ConsoleExec("command") - Execute a console command. REMOVED GetDate - Returns date of last (major) patch to World of Warcraft as a string. - Removed in 1.3.0.. GetFramerate() - Returns the current framerate (full precision) GetGameTime - Returns the time in-game. GetLocale() GetMouseFocus() - Returns the frame that currently has the mouse focus. GetCursorPosition() - Returns the cursor s position on the screen. GetNetStats() - Get bandwidth and latency network information. GetRealmName() - returns the name of the server a user is logged in to GetScreenHeight() - Returns the height of the window in pixels. GetScreenWidth() - Returns the width of the window in pixels. GetTime() - Returns the system uptime in seconds (millisecond precision). InCinematic() IsAddonLoaded("addon
https://w.atwiki.jp/ntgrock/pages/112.html
SDKが無いと始まらない DirectX9 SDK(Software Development Kit)開発用のツール http //msdn.microsoft.com/ja-jp/directx/aa937788.aspx 参考資料 http //sorceryforce.com/manageddirectx/direct3d_stepup.html
https://w.atwiki.jp/api_programming/pages/172.html
下位ページ ConnectionListener Content Module Toybox CommunicationsDefined Under Namespace Constant Summary Instance Method Summary(Object) makeJsonRequest(url, parameters, options, responseCallback) To use Garmin Connect Mobile as a proxy to the web, use makeJsonRequest(). The request is asynchronous; the responseCallback will be called when the request returns. (Object) transmit(content, options, listener) BLEリンクからデータを送る Module Toybox Communications Widget や Apps が Bluetooth Low Energy (BLE) を通じてスマホ(携帯電話)と通信をするために用いる。 スマホはデバイスとデータを共有したり、アプリやネットとの架け橋となり、ウェアラブルウェブの一部となる。 Since 1.0.0 Supported Devices All devices App Types Widget, App Requires Permission Communications Defined Under Namespace Classes ConnectionListener, MailboxIterator Constant Summary UNKNOWN_ERROR = 0 Additional Resonse codes that can occur from JSON requests. Since 1.0.0 BLE_ERROR = -1 Since 1.0.0 BLE_HOST_TIMEOUT = -2 Since 1.0.0 BLE_SERVER_TIMEOUT = -3 Since 1.0.0 BLE_NO_DATA = -4 Since 1.0.0 BLE_REQUEST_CANCELLED = -5 Since 1.0.0 BLE_QUEUE_FULL = -101 Since 1.0.0 BLE_REQUEST_TOO_LARGE = -102 Since 1.0.0 BLE_UNKNOWN_SEND_ERROR = -103 Since 1.0.0 BLE_CONNECTION_UNAVAILABLE = -104 Since 1.0.0 INVALID_HTTP_HEADER_FIELDS_IN_REQUEST = -200 Since 1.0.0 INVALID_HTTP_BODY_IN_REQUEST = -201 Since 1.0.0 INVALID_HTTP_METHOD_IN_REQUEST = -202 Since 1.0.0 NETWORK_REQUEST_TIMED_OUT = -300 Since 1.0.0 INVALID_HTTP_BODY_IN_NETWORK_RESPONSE = -400 Since 1.0.0 INVALID_HTTP_HEADER_FIELDS_IN_NETWORK_RESPONSE = -401 Since 1.0.0 NETWORK_RESPONSE_TOO_LARGE = -402 Since 1.0.0 HTTP_REQUEST_METHOD_GET = 1 Since 1.2.0 HTTP_REQUEST_METHOD_PUT = 2 Since 1.2.0 HTTP_REQUEST_METHOD_POST = 3 Since 1.2.0 HTTP_REQUEST_METHOD_DELETE = 4 Since 1.2.0 REQUEST_CONTENT_TYPE_URL_ENCODED = 0 These values are used in conjunction with the "Content-Type" header key. Specifies a content type of application/x-www-form-urlencoded. Since 1.2.0 REQUEST_CONTENT_TYPE_JSON = 1 Specifies a content type of application/json. Since 1.2.0 IMAGE_DITHERING_NONE = 1 Since 1.2.0 IMAGE_DITHERING_FLOYD_STEINBERG = 2 Since 1.2.0 Instance Method Summary (collapse) (Object) cancelAllRequests To cancel all pending JSON and Image requests use cancelAllRequests(). - (Object) emptyMailbox To clear the contents of the mailbox, call emptyMailbox(). - (String) encodeURL(url) Convert a URL string into a percent-encoded string. (MailboxIterator) getMailbox Call getMailbox() to get the MailboxIterator for this App s mailbox. - (Object) makeImageRequest(url, parameters, options, responseCallback) To request an image through Garmin Connect Mobile, call makeImageRequest(). - (Object) makeJsonRequest(url, parameters, options, responseCallback) To use Garmin Connect Mobile as a proxy to the web, use makeJsonRequest(). - (Object) setMailboxListener(listener) Add a listener for mailbox events. - (Object) transmit(content, options, listener) Send data across the the BLE link. Instance Method Details (Object) cancelAllRequests To cancel all pending JSON and Image requests use cancelAllRequests() Since 1.2.0 (Object) emptyMailbox To clear the contents of the mailbox, call emptyMailbox(). Since 1.0.0 (String) encodeURL(url) Convert a URL string into a percent-encoded string. The reserved characters in the string will be replaced with their corresponding hex-value pairs. This follows the URI-encoding scheme as detailed by RFC 3986 which can be found here www.ietf.org/rfc/rfc3986.txt Parameters url (String) — The URL string to be encoded Returns (String) — Percent-encoded string Since 1.1.2 (MailboxIterator) getMailbox Call getMailbox() to get the MailboxIterator for this App s mailbox. Returns (MailboxIterator) — Iterator for the mailbox Since 1.0.0 (Object) makeImageRequest(url, parameters, options, responseCallback) To request an image through Garmin Connect Mobile, call makeImageRequest(). GCM will scale and dither the image based on the capabilities of the device, but the user will be able to pass additional options (like dithering it down to a one color image) Parameters url (String) — URL of image to request parameters (Dictionary) — Dictionary of keys and values, appended to the URL. Can be null. options (Dictionary) — Additional image options responseCallback (Method) — This is a callback in the format function responseCallback(responseCode, data); responseCode has the server response code, and data contains a WatchUi.BitmapResource if it was successful. Options Hash (options) palette (Array) — The color palette to restrict the image dithering to. Using a smaller palette can reduce the size of the image data to speed up transfers. maxWidth (Number) — The maximum width an image should be scaled to maxHeight (Number) — The maximum height an image should be scaled to dithering (Number) — The type of dithering to use when processing the image. Defaults to Floyd-Steinberg. Since 1.2.0 (Object) makeJsonRequest(url, parameters, options, responseCallback) To use Garmin Connect Mobile as a proxy to the web, use makeJsonRequest(). The request is asynchronous; the responseCallback will be called when the request returns. Parameters url (String) The URL being requested parameters (Dictionary) Dictionary of keys and values, appended to the URL as a GET request or set as the body for a POST request. Can be null. options (Dictionary) Dictionary of options. Can be null. responseCallback (Method) This is a callback in the format function responseCallback(responseCode, data); responseCode has the server response code, and data contains a Dictionary of content if the request was successful. Options Hash (options) method (Number) — The HTTP method of the request. Should be a HTTP_REQUEST_METHOD_* value. headers (Dictionary) — A Dictionary of HTTP headers to include in the request. The “Content-Type” header can be specified using a REQUEST_CONTENT_TYPE_* value. If the content type is not specified, it will default to “appllication/json” for GET and DELETE requests, and will default to “application/x-www-form-urlencoded” for POST and PUT requests. Since 1.0.0 (Object) setMailboxListener(listener) Add a listener for mailbox events. The listener method is called whenever a new message is received Parameters listener (Method) — Callback in the format function listener(iterator) where iterator is the mailbox iterator for the app Since 1.0.0 (Object) transmit(content, options, listener) BLEリンクからデータを送る Parameters content (Object) The object to be sent options (Dictionary) Additional transmit options (TBD) listener (ConnectionListener) An extension of the ConnectionListener class Since 1.0.0
https://w.atwiki.jp/api_programming/pages/127.html
http //developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Graphics.html 下位ページ Dc Content Module Toybox GraphicsDefined Under Namespace 定数フォントサイズ 色 テキスト位置 円弧方向 関数(要約) Graphics Instance Method Details(Number) getFontAscent(font) Gets the recommended distance above the baseline for single spaced text. The base line is the line on which the text sits. (Number) getFontDescent(font) (Number) getFontHeight(font) Module Toybox Graphics 基本的な描画機能を提供する The Graphics module provides basic drawing functionality. Since 1.0.0 Defined Under Namespace Classes Dc 定数 フォントサイズ FONT_XTINY = 0 Extra tiny font. Since 1.0.0 FONT_TINY = 1 Tiny font. Since 1.0.0 FONT_SMALL = 2 Small font. Since 1.0.0 FONT_MEDIUM = 3 Medium font. Since 1.0.0 FONT_LARGE = 4 Large font. Since 1.0.0 FONT_NUMBER_MILD = 5 Normal size number only font. Since 1.0.0 FONT_NUMBER_MEDIUM = 6 Medium size number only font. Since 1.0.0 FONT_NUMBER_HOT = 7 Large size number only font. Since 1.0.0 FONT_NUMBER_THAI_HOT = 8 Huge size number only font. Since 1.0.0 FONT Ascent Descent FONT_XTINY 13 2 FONT_TINY 13 2 FONT_SMALL 13 2 FONT_MEDIUM 18 3 FONT_LARGE 21 5 FONT_NUMBER_MILD 21 3 FONT_NUMBER_MEDIUM 33 3 FONT_NUMBER_HOT 39 4 FONT_NUMBER_THAI_HOT 63 4 色 COLOR_WHITE = 0xFFFFFF White. Since 1.0.0 COLOR_LT_GRAY = 0xAAAAAA Light Gray. Since 1.0.0 COLOR_DK_GRAY = 0x555555 Dark Gray. Since 1.0.0 COLOR_BLACK = 0x000000 Black. Since 1.0.0 COLOR_RED = 0xFF0000 Red. Since 1.0.0 COLOR_DK_RED = 0xAA0000 Dark Red. Since 1.0.0 COLOR_ORANGE = 0xFF5500 Orange. Since 1.0.0 COLOR_YELLOW = 0xFFAA00 Yellow. Since 1.0.0 COLOR_GREEN = 0x00FF00 Green. Since 1.0.0 COLOR_DK_GREEN = 0x00AA00 Dark Green. Since 1.0.0 COLOR_BLUE = 0x00AAFF Blue. Since 1.0.0 COLOR_DK_BLUE = 0x0000FF Dark Blue. Since 1.0.0 COLOR_PURPLE = 0xAA00FF Purple. Not valid on Fenix 3 or D2 Bravo. Use 0x5500AA instead. Since 1.0.0 COLOR_PINK = 0xFF00FF Pink. Since 1.0.0 COLOR_TRANSPARENT = -1 Transparent. Since 1.0.0 テキスト位置 TEXT_JUSTIFY_RIGHT = 0 Right justify the text at the x/y coordinates. Since 1.0.0 TEXT_JUSTIFY_CENTER = 1 Center justify the text at the x/y coordinates. Since 1.0.0 TEXT_JUSTIFY_LEFT = 2 Left justify the text at the x/y coordinates. Since 1.0.0 TEXT_JUSTIFY_VCENTER = 4 Center the text vertically. Since 1.0.0 円弧方向 ARC_COUNTER_CLOCKWISE = 0 Counter clockwise draw. Since 1.2.0 ARC_CLOCKWISE = 1 Clockwise draw. Since 1.2.0 関数(要約) Graphics (Number) getFontAscent(font) Gets the recommended distance above the baseline for single spaced text. (Number) getFontDescent(font) Gets the recommended distance below the baseline for single spaced text. (Number) getFontHeight(font) Gets the height (ascent plus descent) of the given font. Instance Method Details (Number) getFontAscent(font) Gets the recommended distance above the baseline for single spaced text. The base line is the line on which the text sits. Parametersfont (Number) Font to use Returns (Number) The ascent of the font Since 1.2.0 (Number) getFontDescent(font) Gets the recommended distance below the baseline for single spaced text. The base line is the line on which the text sits. Parametersfont (Number) Font to use Returns (Number) The descent of the font Since 1.2.0 (Number) getFontHeight(font) Gets the height (ascent plus descent) of the given font. Parametersfont (Number) Font to use Returns (Number) The height of the font Since 1.2.0
https://w.atwiki.jp/api_programming/pages/128.html
下位ページ ClockTime DeviceSetting Content Module Toybox SystemDefined Under Namespace Constant Summary 関数(要約) System 関数(詳細) System(Object) error(msg) (Object) exit (System.ClockTime) getClockTime 現在時刻を取得する (DeviceSetting) getDeviceSettings (System.Stats) getSystemStats (Number) getTimer 現在のタイマーの時間を取得する[ms] (Object) print(x) (Object) println(a) (Object) trap Module Toybox System 基本的はシステムコールを提供するモジュール Since 1.0.0 Defined Under Namespace Classes ClockTime, DeviceSettings, Stats Constant Summary Setting values for DeviceSettings UNIT_METRIC = 0 Display units in metric units. Since 1.0.0 UNIT_STATUTE = 1 Display units in statute units. Since 1.0.0 SCREEN_SHAPE_ROUND = 1 Since 1.2.0 SCREEN_SHAPE_SEMI_ROUND = 2 Since 1.2.0 SCREEN_SHAPE_RECTANGLE = 3 Since 1.2.0 BUTTON_INPUT_SELECT = 0x01 Since 1.2.0 BUTTON_INPUT_UP = 0x02 Since 1.2.0 BUTTON_INPUT_DOWN = 0x04 Since 1.2.0 BUTTON_INPUT_MENU = 0x08 Since 1.2.0 関数(要約) System (Object) error(msg) Call error() to cause an error. (Object) exit To end execution of the current system cleanly from any point in the app. (System.ClockTime) getClockTime 現在時刻を取得する (DeviceSetting) getDeviceSettings Get the device settings with getDeviceSettings(). (System.Stats) getSystemStats Get the current system stats with getSystemStats(). (Number) getTimer Use getTimer() to get the current millisecond timer. (Object) print(x) Use print() to print to the console. (Object) println(a) Use println() to print to the console with a line terminator. (Object) trap In future versions of the SDK trap() will break into the debugger. 関数(詳細) System (Object) error(msg) Call error() to cause an error. This will exit the system. Parametersmsg (String) Error message to output Since 1.0.0 (Object) exit To end execution of the current system cleanly from any point in the app. Since 1.0.0 (System.ClockTime) getClockTime 現在時刻を取得する Returns (System.ClockTime) 現在時刻 Since 1.0.0 (DeviceSetting) getDeviceSettings Get the device settings with getDeviceSettings(). Returns (DeviceSetting) The current device settings Since 1.0.0 (System.Stats) getSystemStats Get the current system stats with getSystemStats(). Returns (System.Stats) Current system stats Since 1.0.0 (Number) getTimer 現在のタイマーの時間を取得する[ms] デバイスが起動してからの時間を取得している気がする。 Returns (Number) システムのタイマー[ms] Since 1.0.0 (Object) print(x) Use print() to print to the console Parameters x — Object or string to displays Since 1.0.0 (Object) println(a) Use println() to print to the console with a line terminator. Parameters a — Object or string to display Since 1.0.0 (Object) trap In future versions of the SDK trap() will break into the debugger. Since 1.0.0
https://w.atwiki.jp/acedi4wiki/pages/23.html
DirectDrawモードとDirect3Dモードとは アクションエディターには「Direct3D」と「DirectDraw」の2つの描画モードがあります。 バージョン2.84まではDirectDrawという描画モードが使われていましたが、バージョン4からDirect3Dモードという描画モードが実装されました。 Direct3Dではグラフィックカードの性能を発揮することができるため、従来のDirectDrawと比べて高速に描画することができます。(ただし、一部のエフェクトは遅くなっています) 一見便利そうなDirect3Dですが、性能の低いグラフィックカードを使用している場合はゲーム自体起動ができなかったり、逆に遅くなってしまうことがあります。そういうユーザーの方のためにどちらでも動作するように作ることをお勧めします。 ※但し、WindowsVistaからは2D描画はCPUで行われているため、低速なCPUの場合はDirectDrawにすると動作が遅くなることがあります。 WindowsVista/7の場合はDirect3Dモードでの描画を推奨します。 機能比較 ↓エフェクト/描画モード→ DirectDraw ウィンドウ(16~32bit) DirectDraw フルスクリーン(8bit) Direct3D ウィンドウ(16~32bit) Direct3D フルスクリーン(16~32bit) カラーアニメーション × ○ × × 無敵エフェクト × × ○ ○ 波 やや遅い やや遅い やや遅い やや遅い 点滅 ○ ○ ○ ○ 回転A 巨大キャラには実行速度重視 ← ○ ○ 回転B やや遅い。巨大キャラには描画精度重視 やや遅い。巨大キャラには描画精度重視 ○ ○ 円 やや遅い やや遅い やや遅い やや遅い レンズ 遅い 遅い 遅い 遅い 色変化 やや遅い 精度が悪い 半透明 遅すぎ 精度が悪い 遅い 遅い モザイク 遅い やや遅い 遅い 遅い ぼかし 遅い × 遅い 遅い 画面エフェクト 波 やや遅い やや遅い やや遅い やや遅い 画面エフェクト 点滅 ○ ○ ○ ○ 画面エフェクト 回転 遅い 遅い ○ ○ 画面エフェクト 拡大 やや遅い やや遅い ○ ○ 画面エフェクト レンズ 遅すぎ 遅すぎ 遅すぎ 遅すぎ 画面エフェクト モザイク 遅すぎ 遅すぎ 遅すぎ
https://w.atwiki.jp/amunk/pages/5.html
Win32API Win32APIネットリソースの検出WNet系APIを用いた検出 ネットリソースの検出 WNet系APIを用いた検出 以下の3つのAPIを用いてネットリソースの検出を行う。 WNetOpenEnum() WNetEnumResource() WNetCloseEnum() APIで使用される構造体のポインタも定義しておく。 type PNetResources = ^TNetResources; TNetResources = array [0..MaxInt div sizeof(TNetResource) - 1] of TNetResource; API用の作業領域を確保する。 crdBufsize = Sizeof(TNetResource) * 50; crdEntries = $FFFFFFFF; GetMem(recNetResources, crdBufsize); 検索情報を設定する。 with recNetResource do begin dwScope = RESOURCE_GLOBALNET; dwType = RESOURCETYPE_DISK; dwDisplayType = RESOURCEDISPLAYTYPE_GENERIC; dwUsage = RESOURCEUSAGE_CONNECTABLE; lpLocalName = ; lpRemoteName = 検索するネットリソース(\\hogehoge); lpComment = ; lpProvider = ; end; 検索開始~検索終了まで。 // ネットリソース検索開始 if WNetOpenEnum(RESOURCE_GLOBALNET, RESOURCETYPE_ANY, 0, @recNetResource, hdlEnum) NO_ERROR then begin WNetCloseEnum(hdlEnum); Exit; end; // ネットリソース検索 if WNetEnumResource(hdlEnum, crdEntries, recNetResources, crdBufsize) NO_ERROR then begin WNetCloseEnum(hdlEnum); FreeMem(recNetResources, crdBufsize); Exit; end; // ネットリソース検索完了 WNetCloseEnum(hdlEnum); ネットワーク上のコンピュータを発見した後、それらに目的のフォルダがあるかどうかを確認する処理。コンピュータを発見する事だけが目的ならこの処理はいらない。 // 画面ステータス更新 for i = 0 to crdEntries - 1 do if StrPas(recNetResources^[i].lpRemoteName) = \\hogehoge\hagehage then 見つかった時の処理 最後は忘れず作業領域を開放しておく。 // 作業領域開放 FreeMem(recNetResources, crdBufsize);
https://w.atwiki.jp/arprojectfun/pages/40.html
ノート DirectShow 入門 DirectShowの概要 DirectShow の概要について説明します。 手引きのようなリンク集 下記の技術資料がDirectShowの勉強の助けになるかもしれません。 DirectShow -- MSDN Component Object Model - Wikipedia about DirectShow DirectShow とは 「DirectShow の概要」から抜粋して説明する Microsoft DirectShow は、Microsoft Windows プラットフォームにおけるメディア ストリーミングのアーキテクチャである DirectShow は、マルチメディア ストリームの高品質なキャプチャと再生を実現するASF (Advanced Systems Format)、MPWG (Motion Picture Experts Group)、AVI (Audio-Video Interleaved)、MP3 (MPEG Audio Layer-3)、WAV サウンド ファイルなど様々なフォーマットに対応している DirectShow では、メディア再生、フォーマット変換、キャプチャの作業を簡単に行える。ストリームへのアクセスを提供している DirectShow を使って作成できるアプリケーションの種類の例として、下記のようなものがあるDVD プレーヤ ビデオ編集アプリケーション AVI から ASF へのコンバータ MP3 プレーヤ デジタル ビデオ キャプチャ アプリケーション DirectShow は COM (Component Object Model) に基づいているほとんどのアプリケーションでは、独自の COM オブジェクトを実装する必要はない ◆COMとは? 「Component Object Model - Wikipedia」より抜粋 マイクロソフト が提唱するソフトウェアの再利用を目的とした技術ソフトウェア間での通信に用いられる COMを使用して開発されたソフトウェアをCOMコンポーネントと呼ぶCOMコンポーネントは、特定の開発言語に依存せず、C言語やJavaなど、様々な言語により開発を行うことができる COMコンポーネントは、他ソフトウェアと通信するためのインタフェースを有している アプリケーションソフトウェアは、公開されているインタフェースを介してCOMコンポーネントと通信をし、それらを組み合わせることでサービスを提供するオブジェクトの異なるインタフェース間のキャストはQueryInterface関数で行う COMは.NET Frameworkに置き換えられてゆくものと考えられている DirectShow プログラミングで使われる用語について 「DirectShow アプリケーション プログラミングの概要」から抜粋して説明する GraphEdit を使ってみよう ひとまず、DirectShow ではどのようにプログラミングを行うのか流れを理解するために GraphEdit というユーティリティを使ってみる C \Extras\DirectShow\Utilities\graphedt.exe からGraphEdit を起動する 開発環境の導入の通り導入していればこの場所にあるはず ◆適当にフィルタ グラフを作ってみる 「GraphEdit の使い方」から抜粋して使い方を解説する 1.[File] メニューの [Render Media File] をクリック GraphEdit の [Open File] ダイアログ ボックスが表示される 2.マルチメディア ファイルを選択して [Open] をクリックする 選択したファイルを再生するためのフィルタ グラフが GraphEdit で作成される GraphEdit 自体について詳しくはこちらを参照するといいかも GraphEdit によるグラフ作成のシミュレーション フィルタ DirectShow を構成する要素は、"フィルタ" と呼ばれるソフトウェア コンポーネント フィルタは、マルチメディア ストリームに対して何らかの操作を実行するソフトウェア コンポーネント たとえば、DirectShow のフィルタでは次のような操作を実行できる ファイルを読み取る ビデオ キャプチャ デバイスからビデオを取得する MPEG-1 ビデオなどのさまざまなストリーム フォーマットをデコードする グラフィック カードまたはサウンド カードにデータを渡す フィルタグラフ フィルタチェーンにより一つ一つのフィルタを繋いだフィルタの集合 フィルタグラフマネージャ アプリケーションで、データの流れのすべてを管理する必要はない アプリケーションの代わりに、フィルタ グラフ マネージャと呼ばれる上位レベルのコンポーネントがフィルタを制御する アプリケーションでは、"Run" (グラフの開始から終わりまでデータを移動する) や "Stop" (データの流れを停止する) などの上位レベルの API 呼び出しを行う ストリーム操作をより細かく制御する必要がある場合は、COM インターフェイスを通してフィルタに直接アクセスできる フィルタ グラフ マネージャはアプリケーションにイベント通知を渡す。 フィルタグラフマネージャは、フィルタを接続してフィルタ グラフを作成するためのメソッドをアプリケーションに提供する DirectShow アプリケーション作成の手順 大まかに次の3つの手順で作成する 1.フィルタ グラフ マネージャのインスタンスを作成する 2.フィルタ グラフ マネージャを使ってフィルタ グラフを作成する グラフに含まれるフィルタは、アプリケーションによって異なる 3.フィルタ グラフ マネージャを使って、フィルタグラフ、およびフィルタを通過するストリーム データを制御する この処理が行われている間、アプリケーションはフィルタ グラフ マネージャからのイベントにも応答する
https://w.atwiki.jp/javadsge/pages/7745.html
(1)表 (2)プログラム 表検索 (3)グラフ データ取得 (4)出所 政府統計API (5)メモ (6)作業記録 4月10日エクセル追加 imageプラグインエラー ご指定のURLはサポートしていません。png, jpg, gif などの画像URLを指定してください。 imageプラグインエラー ご指定のURLはサポートしていません。png, jpg, gif などの画像URLを指定してください。 -