Skip to content

Instantly share code, notes, and snippets.

View stuncloud's full-sized avatar
💭
( ‘(I¥‘)

Joey Takahashi stuncloud

💭
( ‘(I¥‘)
View GitHub Profile
@stuncloud
stuncloud / 0_UwscWebDriverWiki.md
Last active January 8, 2024 05:20
UwscWebDriverのwiki

UwscWebDriverのwikiの元となったmarkdownファイル群です。リンク等は機能しない可能性があります。

@stuncloud
stuncloud / webmod.uws
Created December 11, 2023 02:56
サンプル用webモジュール
module WebMod
public Name = "Web module"
endmodule
@stuncloud
stuncloud / 1635.diff
Created October 10, 2023 04:40
UWSC仮掲示板No.1635の修正
dn = replace(GET_UWSC_NAME, ".uws", "")
dp = GET_CUR_DIR + "\" + dn + "\Catogory\"
r_fpInitSetFile = GET_CUR_DIR + "\" + dn + "\InitSet.txt"
r_fpInitSetSubFile = GET_CUR_DIR + "\" + dn + "\InitSet_sub.txt"
w_fp = GET_CUR_DIR + "\" + dn + "\Summary.txt"
extension = ".uws"
@stuncloud
stuncloud / stonescript.txt
Last active September 3, 2023 18:43
StonestoryのStonescript
/* stonestory script */
disable banner
//import Cosmetics/PetBoo
//import Fishing
// HP減り過ぎたらポーション飲む
?hp < 10
activate potion
@stuncloud
stuncloud / stuncloud.uwscr.installer.yaml
Created December 22, 2022 02:06
winget v1.4.3531 + uwscr 0.9.0
# Created with YamlCreate.ps1 v2.1.2 $debug=NVS0.7-2-3
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.4.0.schema.json
PackageIdentifier: stuncloud.uwscr
PackageVersion: 0.9.0
InstallerLocale: ja-JP
MinimumOSVersion: 10.0.0.0
InstallerType: zip
NestedInstallerType: portable
NestedInstallerFiles:
@stuncloud
stuncloud / xinput.uws
Created August 22, 2022 06:02
UWSCでやるxinputの入力検知サンプル
dim VirtualKey, Unicode, Flags, UserIndex, HidCode
logprint(TRUE, 100, 100, 500, 1000)
while TRUE
if ! status(getid(GET_LOGPRINT_WIN), ST_VISIBLE) then
break
endif
XInputGetKeystroke(0, 0, VirtualKey, Unicode, Flags, UserIndex, HidCode)
@stuncloud
stuncloud / UwscHistory.md
Last active November 18, 2022 01:50
UWSC更新履歴をmarkdownで整形したもの

UWSC更新履歴

Ver5.3.0.2

  • SLCTBOX関数にて配列変数を使用した時にエラーが出るのを修正

Ver5.3.0

2017/04/18 Ver5.3.0

@stuncloud
stuncloud / settings.json
Last active May 13, 2022 05:35
winget (v1.3.1251-preview) でportableアプリとしてのuwscrをインストールするやつ
// winget settings で設定ファイルを開く
{
"$schema": "https://aka.ms/winget-settings.schema.json",
// v1.3.1251-preview で以下を設定します
"experimentalFeatures": {
"portableInstall": true
}
}
@stuncloud
stuncloud / call_from_url.uws
Last active April 29, 2022 07:08
callでURLを指定してスクリプトを読み込む
textblock msg
call url[http://example.com/hoge.uws]
のようにURLを記述することでweb上のスクリプトをcallできます
スクリプトのMIMEはtext/plainが良さそう
endtextblock
msgbox(msg)
@stuncloud
stuncloud / OCR.uws
Created September 20, 2021 10:41
UWSCでOCR
module OCR
function Get(path)
result = powershell(replace(ps1, "%filepath%", path))
fend
textblock ps1
[Windows.Media.Ocr.OcrEngine,Windows.Media.Ocr,ContentType=WindowsRuntime] | Out-Null
[Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
[Windows.Graphics.Imaging.BitmapDecoder,Windows.Graphics.Imaging,ContentType=WindowsRuntime] | Out-Null
Add-Type -AssemblyName System.Runtime.WindowsRuntime