Skip to content

Instantly share code, notes, and snippets.

@kumatti1
kumatti1 / Module1.bas
Last active November 11, 2023 16:21
マウスカーソル直下の要素を取得
'目的の要素を選択
Sub Main()
Application.OnTime Now + TimeSerial(0, 0, 2), "GetSub"
End Sub
@kumatti1
kumatti1 / hoge.cpp
Created March 15, 2015 23:05
IHTMLDocument2からのIWebBrowser2取り出し
#include <windows.h>
#include <Shlwapi.h>
#include <oleacc.h>
#include <Exdisp.h>
#import <shdocvw.dll>
#import <mshtml.tlb>
#include <stdio.h>
#include <SHLGUID.h>
@kumatti1
kumatti1 / event.cpp
Last active August 29, 2015 14:17
C++でDocumentCompleteイベント
#include <Shlwapi.h>
#include <windows.h>
#include <Exdisp.h>
#import <shdocvw.dll>
#import <mshtml.tlb>
#using <System.dll>
#using <System.Windows.Forms.dll>
using namespace System;
@kumatti1
kumatti1 / Module1.bas
Last active November 16, 2020 02:30
VBAでIInternetExplorerManager
Option Explicit
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(0 To 7) As Byte
End Type
@kumatti1
kumatti1 / hoge.cpp
Created April 3, 2015 22:39
(C++)Twitterにログイン
#include <Shlwapi.h>
#include <windows.h>
#include <Exdisp.h>
#import <shdocvw.dll>
#import <mshtml.tlb>
#using <System.dll>
#using <System.Windows.Forms.dll>
using namespace System;
@kumatti1
kumatti1 / hoge.cpp
Last active April 10, 2025 07:14
(C++)DISPID_AMBIENT_DLCONTROL
#include <Shlwapi.h>
#include <windows.h>
#include <Exdisp.h>
//#include <OleIdl.h>
#import <shdocvw.dll>
#import <mshtml.tlb>
#import <Winhttp.dll>
#using <System.dll>
// HelloWorldBHO.cpp : CHelloWorldBHO の実装
#include "stdafx.h"
#include "HelloWorldBHO.h"
#using <System.dll>
using namespace System;
using namespace System::Runtime::InteropServices;
@kumatti1
kumatti1 / haraheri.cpp
Last active August 29, 2015 14:19
AtlWaitWithMessageLoop
#include <Shlwapi.h>
#include <windows.h>
#include <Exdisp.h>
#include <atlbase.h>
#import <shdocvw.dll>
#import <mshtml.tlb>
#using <System.dll>
using namespace System;
using namespace System::Runtime::InteropServices;
@kumatti1
kumatti1 / Module1.bas
Created April 12, 2015 22:40
IE11対策
Option Explicit
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(0 To 7) As Byte
End Type
'https://msdn.microsoft.com/en-us/library/52e6es3z.aspx
// HelloWorldBHO.cpp : CHelloWorldBHO の実装
#include "stdafx.h"
#include "HelloWorldBHO.h"