This file contains hidden or 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
import os | |
import time | |
import thread | |
from datetime import datetime | |
cmd = """ | |
osascript -e 'tell application "System Events" to keystroke " "' | |
""" | |
def pressSpace(sign, sign1): | |
i = 0 |
This file contains hidden or 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
sudo kextunload /System/Library/Extensions/AppleHDA.kext | |
sudo kextload /System/Library/Extensions/AppleHDA.kext |
This file contains hidden or 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
var canvas = document.createElement('canvas'); | |
var ctx = canvas.getContext('2d'); | |
var img = new Image(); | |
img.src=""; | |
ctx.drawImage(img, 0 ,0); | |
var imageData = ctx.getImageData(0,0,canvas.width,canvas.height); |
This file contains hidden or 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
document.getElementById('tgb').contentWindow.document.getElementById('veditor1_Iframe').contentWindow.document.querySelector('div').innerHTML='呵呵'; | |
document.getElementById('tgb').contentWindow.document.querySelector('#btnPostMsg').click(); |