これを実行すると
#include "user32.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 FindWindow "FindWindowA" sptr,sptr #func GetWindowRect "GetWindowRect" sptr,sptr hwnd_=FindWindow("Shell_TrayWnd",0) dim lpRect,4
#HSP script preprocessor ver3.0a / onion software 1997-2005(c)
#Source file not found.[userdef.as]
#Error:symbol in use in line 12 [hsptmp]
#Fatal error reported.
と出てきてしまいます。
と
#include "user32.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"
に分けるとちゃんと実行できるのに。何ででしょう・・・
#uselib "user32.dll" #cfunc FindWindow "FindWindowA" sptr,sptr #func GetWindowRect "GetWindowRect" sptr,sptr hwnd_=FindWindow("Shell_TrayWnd",0) dim lpRect,4