Class: WBSystem
Source Location: /php/ui/winbinder/WBSystem.php
Class WBSystem
Inherited Properties, Constants, and Methods
Method Summary
static
void
|
command() |
cmd ¸í·É¾î ½ÇÇà , ¸í·É¾î ½ÇÇàâÀ» ¿¬´Ù. |
static
void
|
exec() |
¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù. |
static
void
|
findFile() |
Windows or system32 µð·ºÅ丮¿¡¼ ÆÄÀÏÀ» °Ë»öÇÑ´Ù. |
static
mixed
|
getRegistry() |
µî·ÏµÈ ·¹Áö½ºÆ®¸® °ªÀ» °¡Áö°í ¿Â´Ù. |
static
array
|
getScreen() |
ȸé Àüü ÇØ»óµµ¸¦ ±¸ÇÑ´Ù. |
static
void
|
info() |
Windows(OS) ½Ã½ºÅÛ Á¤º¸¸¦ ¾ò¾î¿Â´Ù. |
static
void
|
isRunInstance() |
phpw ½ºÅ©¸³Æ®·Î ½ÇÇàÇÑ À©µµ¿ìÀÇ ÀνºÅϽºÀÇ ½ÇÇà¿©ºÎ¸¦ üũÇÑ´Ù. |
static
void
|
mail() |
¸ÞÀÏ ÇÁ·Î±×·¥À» ¿ÀÇ |
static
void
|
open() |
µð·ºÅ丮 ¿ÀÇ |
static
void
|
play() |
½Ã½ºÅÛ »ç¿îµå¸¦ Àç»ýÇÑ´Ù. |
static
void
|
run() |
À©µµ¿ì ½Ã½ºÅÛ ¸í·É¾î ½ÇÇà |
static
void
|
script() |
phpw ½ºÅ©¸³Æ® ½ÇÇà |
static
void
|
url() |
¿ÜºÎ ºê¶ó¿ìÀú¸¦ ÀÌ¿ëÇÏ¿© urlÀ» ½ÇÇàÇÑ´Ù. |
static
void
|
wait() |
Űº¸µå³ª ¸¶¿ì½º À̺£Æ®°¡ ÀϾ ¶§±îÁö ½Ã°£À» µô·¹ÀÌ ½ÃŲ´Ù. |
Methods
cmd ¸í·É¾î ½ÇÇà , ¸í·É¾î ½ÇÇàâÀ» ¿¬´Ù.
API Tags:
static void exec(
string
$command, [string
$param = '']
)
|
|
¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù.
Parameters:
string |
$command: |
½ÇÇàµÉ ¸í·É¾î |
string |
$param: |
¸í·É¾î¿¡ µé¾î°¡´Â Àμö |
API Tags:
static void findFile(
string
$filename
)
|
|
Windows or system32 µð·ºÅ丮¿¡¼ ÆÄÀÏÀ» °Ë»öÇÑ´Ù.
Parameters:
string |
$filename: |
°Ë»öµÉ ÆÄÀÏ À̸§ |
API Tags:
static array getAvailableScreen(
)
|
|
À̿밡´ÉÇÑ È¸é ÇØ»óµµ¸¦ ±¸ÇÑ´Ù.
½ÃÀÛÅø¹Ù¸¦ Á¦¿ÜÇÑ Å©±â¸¦ ±¸ÇÑ´Ù.
API Tags:
Return: | x,y,width,height ÀÇ ¿¬°ü¹è¿ |
Access: | public |
static array getFontInfo(
)
|
|
ÆùÆ® Á¤º¸¸¦ °¡Áö°í ¿Â´Ù.
¹è¿ÇüÅ·ΠÁ¤¸®Çؼ °¡Áö°í ¿Â´Ù.
API Tags:
Return: | font,size,type ÀÇ ¿¬°ü ¹è¿ |
Access: | public |
static mixed getRegistry(
string
$key, string
$subkey, [string
$entry = '']
)
|
|
µî·ÏµÈ ·¹Áö½ºÆ®¸® °ªÀ» °¡Áö°í ¿Â´Ù.
// ¸ÞÀÎŰ Á¾·ù
"HKCU" or "HKEY_CURRENT_USER"
"HKLM" or "HKEY_LOCAL_MACHINE"
"HKCR" or "HKEY_CLASSES_ROOT"
"HKU" or "HKEY_USERS"
"HKCC" or "HKEY_CURRENT_CONFIG"
"HKD" or "HKEY_DYN_DATA"
Parameters:
string |
$key: |
¸ÞÀΠŰ |
string |
$subkey: |
¼ºêŰ |
string |
$entry: |
¿£Æ®¸® |
API Tags:
Return: | µî·ÏµÈ ·¹Áö½ºÆ®¸® °ª |
Access: | public |
static array getScreen(
)
|
|
ȸé Àüü ÇØ»óµµ¸¦ ±¸ÇÑ´Ù.
API Tags:
Return: | x,y,width,height ÀÇ ¿¬°ü¹è¿ |
Access: | public |
static void info(
string
$info
)
|
|
Windows(OS) ½Ã½ºÅÛ Á¤º¸¸¦ ¾ò¾î¿Â´Ù.
- appmemory (string)
The total memory used by the application
- commandline (string)
The original Windows command line including the executable file
- computername (string)
The name of the computer inside the network
- consolemode (integer)
1 indicates that console mode (DOS box) is active, 0 otherwise
- diskdrives (string)
The list of all available disk drives
- exepath (string)
The path to the main executable (PHP.EXE)
- extensionpath (string)
The path to the current PHP extension
- fontpath (string)
The current font path
- freememory (integer)
The available physical memory
- gdiobjects (integer)
The number of currently allocated GDI handles
- instance (instance)
The instance identifier of the current application
- ospath (string)
The current OS path
- osversion (string)
The complete OS version name
- osnumber (string)
The numeric OS version number
- pgmpath (string)
The default OS application path
- screenarea (string)
The total area (x, y, width, height) of the screen, in pixels
ex) 0 0 1280 960
- systemfont (string)
The common (default) system font for dialog boxes
ex) Tahoma 8 Regular
- systempath (string)
The OS system path
- temppath (string)
The path used by the OS to hold temporary files
- totalmemory (string)
The total physical memory installed
- username (string)
The name of the currently logged user
- userobjects (integer)
The number of currently allocated USER handles
- workarea (string)
The valid area (x, y, width, height) of the screen, in pixels
ex) 0 0 1280 926
Parameters:
string |
$info: |
½Ã½ºÅÛ Á¤º¸ Ű¿öµå |
API Tags:
static void isRunInstance(
string
$title, [bool
$bring = false]
)
|
|
phpw ½ºÅ©¸³Æ®·Î ½ÇÇàÇÑ À©µµ¿ìÀÇ ÀνºÅϽºÀÇ ½ÇÇà¿©ºÎ¸¦ üũÇÑ´Ù.
Parameters:
string |
$title: |
ÀνºÅϽº°¡ »ý¼ºµÈ À©µµ¿ì Á¦¸ñ |
bool |
$bring: |
true ÀÌ¸é ½ÇÇàµÈ À©µµ¿ì ÀνºÅϽº¸¦ °¡Áö°í ¿Â´Ù. ±âº»°ªÀº false. |
API Tags:
static void mail(
string
$mailto
)
|
|
¸ÞÀÏ ÇÁ·Î±×·¥À» ¿ÀÇÂ
Parameters:
string |
$mailto: |
¸ÞÀÏ ÁÖ¼Ò |
API Tags:
static void open(
[string
$dir = '']
)
|
|
µð·ºÅ丮 ¿ÀÇÂ
Parameters:
string |
$dir: |
¿¸± µð·ºÅ丮, °ø¹éÀϰæ¿ì ÇöÀç µð·ºÅ丮 |
API Tags:
static void play(
int|string
$style
)
|
|
½Ã½ºÅÛ »ç¿îµå¸¦ Àç»ýÇÑ´Ù.
WBC_OK : Default system sound
WBC_INFO : System information sound
WBC_WARNING : Warning sound
WBC_STOP : Error sound
WBC_QUESTION : Question sound
WBC_BEEP :
Parameters:
API Tags:
static void run(
string
$command, [string
$param = '']
)
|
|
À©µµ¿ì ½Ã½ºÅÛ ¸í·É¾î ½ÇÇà
Parameters:
string |
$command: |
½ÇÇàµÉ ¸í·É¾î |
string |
$param: |
¸í·É¾î Àμö |
API Tags:
static void script(
string
$phpw, [string
$param = '']
)
|
|
phpw ½ºÅ©¸³Æ® ½ÇÇà
Parameters:
string |
$phpw: |
½ºÅ©¸³Æ® ÆÄÀÏ (.phpw) |
string |
$param: |
¸í·É¾î Àμö |
API Tags:
static void setRegistry(
string
$key, string
$subkey, [string
$entry = ''], [mixed
$value = null]
)
|
|
·¹Áö½ºÆ®¸® °ªÀ» µî·ÏÇÑ´Ù.
Parameters:
string |
$key: |
¸ÞÀΠŰ |
string |
$subkey: |
¼ºêŰ |
string |
$entry: |
¿£Æ®¸® |
mixed |
$value: |
µî·ÏµÉ ·¹Áö½ºÆ®¸® °ª |
API Tags:
static void url(
string
$url
)
|
|
¿ÜºÎ ºê¶ó¿ìÀú¸¦ ÀÌ¿ëÇÏ¿© urlÀ» ½ÇÇàÇÑ´Ù.
Parameters:
API Tags:
static void wait(
[handle
$window = 0], [int
$pause = 0], [int
$flags = 0], int
3
)
|
|
Űº¸µå³ª ¸¶¿ì½º À̺£Æ®°¡ ÀϾ ¶§±îÁö ½Ã°£À» µô·¹ÀÌ ½ÃŲ´Ù.
// Ű ÀÔ·ÂÀÌ ÀÖÀ» ¶§ ±îÁö µô·¹ÀÌ
echo "esc key pressed ";
}
// 5ÃÊ ¶Ç´Â keyboard ۸¦ ´·¶À» ¶§
Parameters:
handle |
$window: |
winbinder À©µµ¿ì ÇÚµé |
int |
$pause: |
µô·¹ÀÌ ½Ã°£ , 1000ºÐÀÇ 1ÃÊ ´ÜÀ§, ex) 5000 = 5ÃÊ |
int |
$flags: |
»ó¼ö WBC_MOUSEDOWN, WBC_MOUSEUP, WBC_KEYDOWN, WBC_KEYUP |
int |
3: |
key code |
API Tags:
|
|