#include "user32.as"
#include "hspext.as"
#define GWL_STYLE (-16)
#define BS_ICON 0x00000040
#define BM_SETIMAGE 0x00F7
#define WS_CHILD 0x40000000
#define WS_VISIBLE 0x10000000
#define IMAGE_ICON 1
#define IDI_APPLICATION 32512
#uselib "shell32"
#func global SHGetFileInfo "SHGetFileInfo" sptr, int, int, int, int
#uselib "user32.dll"
#cfunc FindWindows "FindWindowA" sptr,sptr
#func GetWindowRects "GetWindowRect" sptr,sptr
#cfunc CreatePopupMenus "CreatePopupMenu"
#func AppendMenuz "AppendMenuA" int, int, int, str
#func CheckMenuRadioItemz "CheckMenuRadioItem" int, int, int, int, int
#cfunc CreatePopupMenuss "CreatePopupMenu"
#func AppendMenus "AppendMenuA" int, int, int, str
#func TrackPopupMenus "TrackPopupMenu" int, int, int, int, int, int
#func DestroyMenus "DestroyMenu" int
#uselib "shell32"
#func global SHGetFileInfoas "SHGetFileInfo" sptr, int, int, int, int
#uselib "user32"
#func DrawStateas "DrawStateA" int, int, int, sptr, int, int, int, int, int, int
#func DestroyIconas "DestroyIcon" int
#uselib "shell32.dll"
#func DragAcceptFiles "DragAcceptFiles" int,int
#func DragQueryFile "DragQueryFileA" int,int,int,int
#func DragQueryPoint "DragQueryPoint" int,int
#func DragFinish "DragFinish" int
#define WM_DROPFILES 0x0233
hwnd_=FindWindows("Shell_TrayWnd",0)
dim lpRect,4
FindWindow "Shell_TrayWnd", 0
hTaskWnd = stat
dim rect, 4
GetWindowRect hTaskWnd, varptr(rect)
*はじめの法
gsel 0,-1
screen 3,300,150
参照です=""
*eaff
cls
color 0,0,0
pos 120,100
button "追加",*追加
pos 0,50:button "参照",*参照
pos 65,51:objsize 234,22
input 参照です
stop
*参照
dialog "",16
if stat=1:参照です=refstr
goto *eaff
stop
*追加
chdir dir_desktop
nameです="あああ"
fxlink nameです,参照です//ここに問題があるっぽい
gsel 3,-1
goto *はじめの法
stop
こんなスプリクトです