This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net.Sockets; | |
using System.Windows.Forms; | |
using TETCSharpClient; | |
using TETCSharpClient.Data; | |
using Newtonsoft.Json.Linq; | |
public class GazePoint : IGazeUpdateListener { | |
private TcpClient socket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import json | |
import codecs | |
from collections import defaultdict | |
import urllib.request | |
class Crawler(): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import time | |
import mechanize | |
def yahooLogin(username, password): | |
print u"ログイン開始" | |
#mechanizeの設定 | |
br = mechanize.Browser() | |
br.set_handle_robots(False) # robotsに従わない |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; | |
class SendKey { | |
[StructLayout(LayoutKind.Sequential)] | |
private struct MOUSEINPUT { | |
public int dx; | |
public int dy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.Runtime.InteropServices; | |
[StructLayout(LayoutKind.Sequential)] | |
public struct RECT { | |
public int left; | |
public int top; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import time | |
from ctypes import * | |
import win32gui, win32con | |
PUL = POINTER(c_ulong) | |
class KeyBdInput(Structure): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import cv2 | |
import numpy | |
src = numpy.zeros((400, 200), numpy.uint8) | |
color = (255, 255, 255) | |
#直線 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import time | |
import ImageGrab | |
import gtk | |
width = 1000 | |
height = 1000 | |
root_window = gtk.gdk.get_default_root_window() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import time | |
import gtk | |
import win32gui, win32com.client | |
shell = win32com.client.Dispatch('WScript.Shell') | |
shell.Run('Notepad') #メモ帳の起動 | |
time.sleep(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import time | |
import win32gui | |
import win32com.client | |
shell = win32com.client.Dispatch('WScript.Shell') | |
shell.Run('Notepad') #メモ帳の起動 |
NewerOlder