The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled C# Code
Posted by: asdf | May 15, 2010 @ 11:39pm
C# Code
[
Download
]
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Steam4NET; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Steamworks.Load(); ISteamClient008 steamClient; //ISteamGameServer009 gameserver; ISteamFriends001 steamFriends; int pipe; int user; steamClient = Steamworks.CreateInterface<ISteamClient008>("SteamClient008"); pipe = steamClient.CreateSteamPipe(); user = steamClient.ConnectToGlobalUser(pipe); steamFriends = Steamworks.CastInterface<ISteamFriends001>(steamClient.GetISteamFriends(user, pipe, "SteamFriends001")); int etc; etc = steamFriends.GetFriendCount(); ulong[] blargh; blargh = new ulong[etc]; Console.WriteLine(etc); Console.ReadLine(); for (int a =0; a < etc - 1; a++) { blargh[a] = steamFriends.GetFriendByIndex(a); //steamFriends.SendMsgToFriend(76561197997948537, EFriendMsgType.k_EFriendMsgTypeChat, "Test"); Console.WriteLine(blargh[a]); try { steamFriends.SendMsgToFriend(76561197997948537, EFriendMsgType.k_EFriendMsgTypeChat, "123"); } catch { Console.WriteLine("Failed"); } System.Threading.Thread.Sleep(200); } Console.ReadLine(); } } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.52 / 8
48 Votes
http://codebin.yi.org/648
page generated in 0.00 seconds