SetLayeredWindowAttributes´Ø¿ô¤òÍѤ¤¤ë¤È
¥¢¥¯¥·¥ç¥ó¥Õ¥é¥°¤Ë¤è¤Ã¤Æ
¡¦¥¦¥£¥ó¥É¥¦Á´ÂΤÎȾƩÌÀ²½
¡¦»ØÄ꿧¤Î´°Á´Æ©ÌÀ²½
¤Ï²Äǽ¤Ç¤¹¡£º£²ó¼ÁÌ䤷¤¿¤¤¤³¤È¤Ï
¡¦ÇطʤΤßȾƩÌÀ²½
¤Ï²Äǽ¤«¡¢²Äǽ¤Ê¤é¤Ð¤É¤Î¤è¤¦¤Ë¹Ô¤¨¤Ð¤è¤¤¤Î¤«¡¡¤È¤¤¤¦¤³¤È¤Ç¤¹¡£
¥¦¥£¥ó¥É¥¦¤ÎȾƩÌÀ²½¤ò¤·¤Æ¤·¤Þ¤¦¤È¡¢È¾Æ©ÌÀ¤Ë¤·¤¿¤¯¤Ê¤¤¤â¤Î
¡Ê¥Ü¥¿¥ó¤Ê¤É¤Î¥³¥ó¥È¥í¡¼¥ë¡¢mesÌ¿Îá¤Ê¤É¤Çɽ¼¨¤·¤¿Ê¸»úÎóÅù¡Ë
¤Þ¤ÇȾƩÌÀ²½¤µ¤ì¤Æ¤·¤Þ¤¦¤¿¤á¸«¤Å¤é¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¡£
¼«Ê¬¤Ç¹Í¤¨¤¿ÊýË¡¤È¤·¤Æ¤Ï
¡ÇطʤȤʤëÏÈ̵¤·¥¦¥£¥ó¥É¥¦¡Ê¥¦¥£¥ó¥É¥¦A)¤òÍÑ°Õ¤·¡¢È¾Æ©ÌÀ²½¤¹¤ë
¢¥¦¥£¥ó¥É¥¦A¤Ë¤Ô¤Ã¤¿¤ê½Å¤Ê¤ë¤è¤¦¤Ë¥¦¥£¥ó¥É¥¦B¤ò¤Ä¤¯¤ë
£¥¦¥£¥ó¥É¥¦B¤ÎÇطʤòñ¿§¤ÇÅɤê¤Ä¤Ö¤·¡¢¤½¤Î¿§¤ò´°Á´¤ËÆ©ÌÀ¤Ë¤¹¤ë¡£
¤³¤ÎÊýË¡¤À¤È³Î¤«¤ËÇطʤΤßȾƩÌÀ¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¤¬
¡¦¥¦¥£¥ó¥É¥¦¤Î°ÜÆ°½èÍý
¡¦¥¦¥£¥ó¥É¥¦A¤È¥¦¥£¥ó¥É¥¦B¤ÎÁ°¸å´Ø·¸¡¢¤É¤Á¤é¤ò¼êÁ°¤Ëɽ¼¨¤¹¤ë¤«¡¡¤Î½èÍý
¤Ê¤É¡¢ÌÌÅݤÊÅÀ¤¬¿ô¿¤¯½Ð¤Æ¤¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
ñ¿§¤ò´°Á´¤ËÆ©ÌÀ¤Ë¤·¤¿¥¦¥£¥ó¥É¥¦¤ÎÃæ¤Ë
ȾƩÌÀ²½¤·¤¿¥Ñ¥Í¥ë¤òÇطʤȤ·¤Æɽ¼¨¤·¡¢¤½¤Î¾å¤ËÄ̾ï¤Î¥Ü¥¿¥ó¤Ê¤É¤òÇÛÃÖ¤¹¤ë¤³¤È¤ò
¹Í¤¨¤Þ¤·¤¿¤¬¡¢¥Ñ¥Í¥ë¤ÎÀßÃÖÊýË¡¤Ê¤É¤¬¸¡º÷¤·¤Æ¤âʬ¤«¤é¤Ê¤«¤Ã¤¿¤¿¤á¤³¤³¤Ç¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤¤Þ¤¹
²¿¤«Îɤ¤ÊýË¡¤Ê¤É¤¢¤ê¤Þ¤·¤¿¤é¤ª¶µ¤¨¤¯¤À¤µ¤¤¡£
°ì±þ°Ê²¼¤Ë¼«Ê¬¤Îºî¤Ã¤¿¤â¤Î¤òÄ¥¤Ã¤Æ¤ª¤¤Þ¤¹
//´Ø¿ô¤ÎÅÐÏ¿ #uselib "user32.dll" #func GetWindowLongA "GetWindowLongA" int , int #func SetWindowLongA "SetWindowLongA" int , int , int #func SetLayeredWindowAttributes "SetLayeredWindowAttributes" int , int , int , int #func SendMessageA "SendMessageA" int , int , int , int #func PostMessageA "PostMessageA" int , int , int , int //¥¦¥£¥ó¥É¥¦½é´ü²½ //ÇØ·Ê¥¦¥£¥ó¥É¥¦ bgscr 0, 700, 100, , 100, 100 : hwnd1 = hwnd cls 4 color 255, 255, 255 pos 10, 10 : button goto "½ªÎ»¤¹¤ë", *LAST pos 80, 10 : mes "¢«Ä̾ï¤Ï¤³¤Î¤è¤¦¤ËÉÁ²è¤·¤¿Ê¸»ú¤ä¥ª¥Ö¥¸¥§¥¯¥È¤Þ¤ÇȾƩÌÀ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹" //¥³¥ó¥Ý¡¼¥Í¥ó¥È¥¦¥£¥ó¥É¥¦ bgscr 1, 700, 100, , 100, 100 : hwnd2 = hwnd color 0, 0, 255 : boxf color 255, 255, 255 pos 10, 40 : button goto "½ªÎ»¤¹¤ë", *LAST pos 80, 40 : mes "¢«¼êÁ°¤Ë¤â¤¦°ì¤Ä¥¦¥£¥ó¥É¥¦¤òºî¤ë¤³¤È¤Ç¾åµ¤ÎÌäÂê¤ò²óÈò¤·¤Æ¤¤¤Þ¤¹\n¡¡¥¦¥£¥ó¥É¥¦¤Î°ÜÆ°¤ò¤¹¤ë¤Èɽ¼¨¤¬¤ª¤«¤·¤¯¤Ê¤ê¤Þ¤¹" //¥¹¥¿¥¤¥ë¤ÎÄɲà GetWindowLongA hwnd1 , -20 SetWindowLongA hwnd1 , -20 , stat | 0x00080000 GetWindowLongA hwnd2 , -20 SetWindowLongA hwnd2 , -20 , stat | 0x00080000 //ȾƩÌÀ SetLayeredWindowAttributes hwnd1, 0x000000, 128, 2 //ÀÄ¿§(0x0000FF)¤ò´°Á´¤ËÆ©ÌÀ¤Ë SetLayeredWindowAttributes hwnd2, 0xFF0000, 255, 1 //WM¤Î½èÍý gsel 0 oncmd gosub *WM_LBUTTONDOWN , 0x0201 gsel 1 oncmd gosub *WM_LBUTTONDOWN , 0x0201 stop //º¸¥¯¥ê¥Ã¥¯¤·¤¿»þ¥¦¥£¥ó¥É¥¦°ÜÆ° //¥¦¥£¥ó¥É¥¦1¤È¥¦¥£¥ó¥É¥¦2¤Î°ÌÃÖ¤¬¤º¤ì¤ë¤¿¤áɽ¼¨¤¬¤ª¤«¤·¤¯¤Ê¤ë *WM_LBUTTONDOWN PostMessageA hwnd1, 0x0000A1, 0x0002, lparam PostMessageA hwnd2, 0x0000A1, 0x0002, lparam return //½ªÎ»½èÍý *LAST end