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.IO; | |
using System.Windows.Forms; | |
using Awesomium.Core; | |
using Awesomium.Windows.Forms; | |
namespace WindowsFormsApplication3 | |
{ | |
static class Program | |
{ |
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 Awesomium.Core; | |
namespace AwesomiumNewTest | |
{ | |
public static class WebViewHelper | |
{ | |
public static string GetJsSingleXpathString(string xpath) | |
{ |
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; | |
namespace WebViewHelpers | |
{ | |
public static class WebViewHelper | |
{ | |
// returns Javascript XPath query string for getting a single element | |
public static string GetJsSingleXpathString(string xpath) | |
{ | |
return |
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 Awesomium.Core; | |
namespace WebViewHelpers | |
{ | |
public static class WebViewExtensions | |
{ | |
/// <summary> | |
/// Simulates mouse movement to the specified coordinates and click. | |
/// As I remember it requires coordinates relative to the currently displayed area, and also will not work if specified coordinates are out of that area. |
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.Collections.Generic; | |
namespace WindowsFormsApplication19 | |
{ | |
class Drive | |
{ | |
public string DeviceId { get; set; } | |
public string Model { get; set; } |
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
#Persistent | |
SetKeyDelay, 0 | |
SetTimer, SkypeUpgrade, 250 | |
return | |
SkypeUpgrade: | |
If WinExist("ahk_class TUpgradeForm") | |
{ | |
ControlSend, , {Esc}, ahk_class TUpgradeForm |
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
var doOnce = function() { | |
var completed = false; | |
return function() { | |
if (!completed) { | |
console.log('hello'); | |
completed = true; | |
} | |
}; | |
}(); |
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
import os | |
import zlib | |
# for Linux (Steam/Proton): | |
# /home/<USER>/.steam/debian-installation/steamapps/compatdata/1030840/pfx/drive_c/users/steamuser/My Documents/My Games/Mafia Definitive Edition/Data/<USER_ID>/profiles/temporaryprofile/gameinputmodule.pf | |
file_path = 'C:/Users/<USER>/My Documents/My Games/Mafia Definitive Edition/Data/<USER_ID>/profiles/temporaryprofile/gameinputmodule.pf' | |
size = os.path.getsize(file_path) |