Allez, c'est cadeau, le voilà en open source.
ATTENTION AUX DATA SECTIONS! Utilisez vos images et sons.
Code : Tout sélectionner
;- Constantes
Enumeration
#WINMAIN
#SonIn
#PopUp_Raccourcis
#SystrayIcone
#WinMenuSetting
#ContainerTextReglages
#TextReglages
#TextOptionsIcons
#Check_IconsDesktopUser
#Check_IconsDesktopAllUsers
#Check_IconsQuickLaunch
#TextOptionsConfort
#Check_DemarrageWindows
#Check_Sonore
#ContainerSetting
#Btn_ApplySetting
#Check_params
#Btn_CancelSetting
#StatusSetting
#setting
#About
#Website
#QuitMiniDesktop
#DynMenu1 = 100
#DynMenu2 = 200
#DynMenu3 = 300
EndEnumeration
#PROGRAMNAME = "Mini DeskTop Menu"
#VERSION = "1.0.01.09"
#STATUT = "Freeware"
;-Catch Sounds
InitSound()
Global SonIn
SonIn = CatchSound(#SonIn, ?SonIn)
DataSection
SonIn : IncludeBinary "..\Salut Bonhomme.wav"
EndDataSection
;-Fonts
Global Font0
Font0 = LoadFont(0, "Arial", 8,#PB_Font_Bold|#PB_Font_HighQuality)
;-Images
Global Image0, Image1, Image2, Image3, Image4
Image0 = CatchImage(0, ?Image0)
Image1 = CatchImage(1, ?Image1)
Image2 = CatchImage(2, ?Image2)
Image3 = CatchImage(3, ?Image3)
Image4 = CatchImage(4, ?Image4)
Procedure.s GetSystDirectory(Flag.l)
hKey.l = 0
keyvalue.s = Space(255)
datasize.l = 255
If Flag < 24 Or Flag = 36
OpenKey.l = #HKEY_CURRENT_USER
Else
OpenKey.l = #HKEY_LOCAL_MACHINE
EndIf
SubKey.s = "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
Select Flag
Case 1 ; Dossier où se trouve les outils d'administration
ValueName.s = "Administrative Tools"
Case 2 ; Application Data
ValueName.s = "AppData"
Case 3 ; Repertoire temporaire pour les fichiers internet
ValueName.s = "Cache"
Case 4 ; Repertoire temporaire pour les fichiers à graver
ValueName.s = "CD Burning"
Case 5 ; Dossier des cookies
ValueName.s = "Cookies"
Case 6 ; Bureau de l'utilisateur
ValueName.s = "Desktop"
Case 7 ; Dossier des favoris
ValueName.s = "Favorites"
Case 8 ; Dossier contenant les polices de Windows
ValueName.s = "Fonts"
Case 9 ; Historique de Windows
ValueName.s = "History"
Case 10 ; Application Data dans paramètres locaux
ValueName.s = "Local AppData"
Case 11 ; Paramètres locaux
ValueName.s = "Local Settings"
Case 12 ; Dossier contenant vos musiques dans Mes Documents
ValueName.s = "My Music"
Case 13 ; Dossier contenant vos images dans Mes Documents
ValueName.s = "My Pictures"
Case 14 ; Dossier contenant vos vidéos dans Mes Documents
ValueName.s = "My Video"
Case 15 ; Voisinage réseau
ValueName.s = "NetHood"
Case 16 ; Mes Documents
ValueName.s = "Personal"
Case 17 ; Voisinage d'impression
ValueName.s = "PrintHood"
Case 18 ; Menu Démarrer\Progammes
ValueName.s = "Programs"
Case 19 ; Fichiers récemments ouverts (contient des raccourcis)
ValueName.s = "Recent"
Case 20 ; Dossier envoyer vers
ValueName.s = "SendTo"
Case 21 ; Menu Démarrer
ValueName.s = "Start Menu"
Case 22 ; Menu Démarrer\Progammes\Démarrage
ValueName.s = "Startup"
Case 23 ; Modèles
ValueName.s = "Templates"
Case 36 ; Microsoft\Internet Explorer\Quick Launch
ValueName.s = "AppData"
; Case 37 ; C:\WINDOWS\system32
; ValueName.s = "system32"
; Même chose mais pour 'Tous les utlisateurs'
Case 24
ValueName.s = "Common Administrative Tools"
Case 25
ValueName.s = "Common AppData"
Case 26
ValueName.s = "Common Desktop"
Case 27 ; Documents de tous les utilisateurs , il est aussi le dossier nommé 'Documents partagés'
ValueName.s = "Common Documents"
Case 28
ValueName.s = "Common Favorites"
Case 29
ValueName.s = "Common Programs"
Case 30
ValueName.s = "Common Start Menu"
Case 31
ValueName.s = "Common Startup"
Case 32
ValueName.s = "Common Templates"
Case 33
ValueName.s = "CommonMusic"
Case 34
ValueName.s = "CommonPictures"
Case 35
ValueName.s = "CommonVideo"
; Case 41 ; C:\WINDOWS\system32
; ValueName.s = "System32"
EndSelect
If RegOpenKeyEx_(OpenKey, SubKey, 0, #KEY_READ, @hKey)
MessageBeep_(#MB_ICONEXCLAMATION)
keyvalue = "Pas de clé"
Else
If RegQueryValueEx_(hKey, ValueName, 0, 0, @keyvalue, @datasize)
keyvalue = "" ; si la sous-clé n'éxiste pas renvoi un texte vide
Else
keyvalue = Left(keyvalue, datasize - 1) ; si la sous clé existe renvoi l'adresse du repertorie demandé
EndIf
RegCloseKey_(hKey)
EndIf
If Flag = 36
keyvalue = keyvalue + "\Microsoft\Internet Explorer\Quick Launch"
EndIf
If Right(keyvalue, 1) <> "\" : keyvalue = keyvalue + "\" : EndIf
ProcedureReturn keyvalue
EndProcedure
Procedure.l ExtractSmallIconFile(IconPath.s) ; 16*16
SHGetFileInfo_(IconPath, 0, @InfosFile.SHFILEINFO, SizeOf(SHFILEINFO), #SHGFI_ICON | #SHGFI_SMALLICON)
ProcedureReturn InfosFile\hIcon
EndProcedure
;-------------------------------------------------------
;-Registry functions
;-------------------------------------------------------
Structure OneByte
a.b
EndStructure
Procedure RegConvertRegKeyToTopKey(Key.s)
topKey.s=StringField(Key,1,"\")
topKey=UCase(topKey)
Select topKey
Case "HKEY_CLASSES_ROOT"
retour=#HKEY_CLASSES_ROOT
Case "HKEY_CURRENT_USER"
retour=#HKEY_CURRENT_USER
Case "HKEY_LOCAL_MACHINE"
retour=#HKEY_LOCAL_MACHINE
Case "HKEY_USERS"
retour=#HKEY_USERS
Case "HKEY_CURRENT_CONFIG"
retour=#HKEY_CURRENT_CONFIG
EndSelect
ProcedureReturn retour
EndProcedure
Procedure.s RegConvertRegKeyToKeyName(Key.s)
PositionSlash=FindString(Key,"\",1)
retour.s=Right(Key,(Len(Key)-PositionSlash))
ProcedureReturn retour
EndProcedure
Procedure RegDeleteKeyWithAllSubInternal(Key.s,ComputerName.s)
topKey=RegConvertRegKeyToTopKey(Key)
KeyName.s=RegConvertRegKeyToKeyName(Key)
i=0
a$=""
Repeat
b$=a$
a$=RegListSubKey(Key,0,"")
If a$<>""
RegDeleteKeyWithAllSubInternal(Key+"\"+a$,"")
EndIf
Until a$=b$
RegDeleteKey(Key, ComputerName)
EndProcedure
Procedure.l DeleteRegValue(topKey.l, sKeyName.s, sValueName.s)
GetHandle.l
hKey.l
lReturnCode.l
lhRemoteRegistry.l
If Left(sKeyName, 1) = "\"
sKeyName = Right(sKeyName, Len(sKeyName) - 1)
EndIf
GetHandle = RegOpenKeyEx_(topKey, sKeyName, 0, #KEY_ALL_ACCESS, @hKey)
If GetHandle = #ERROR_SUCCESS
GetHandle = RegDeleteValue_(hKey, @sValueName)
If GetHandle = #ERROR_SUCCESS
DeleteValue = #True
Else
DeleteValue = #False
EndIf
EndIf
RegCloseKey_(hKey)
ProcedureReturn DeleteValue
EndProcedure
Procedure.l CreateRegKey(topKey, sKeyName.s)
hNewKey.l
lpSecurityAttributes.SECURITY_ATTRIBUTES
GetHandle.l
lReturnCode.l
lhRemoteRegistry.l
If Left(sKeyName, 1) = "\"
sKeyName = Right(sKeyName, Len(sKeyName) - 1)
EndIf
GetHandle = RegCreateKeyEx_(topKey, sKeyName, 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_ALL_ACCESS, @lpSecurityAttributes, @hNewKey, @GetHandle)
If GetHandle = #ERROR_SUCCESS
GetHandle = RegCloseKey_(hNewKey)
CreateKey = #True
Else
CreateKey = #False
EndIf
ProcedureReturn CreateKey
EndProcedure
Procedure.l SetRegValue(topKey.l, sKeyName.s, sValueName.s, vValue.s, lType.l)
GetHandle.l
hKey.l
lType.l
lpcbData.l
lpData.s
lReturnCode.l
lhRemoteRegistry.l
If Left(sKeyName, 1) = "\"
sKeyName = Right(sKeyName, Len(sKeyName) - 1)
EndIf
GetHandle = RegOpenKeyEx_(topKey, sKeyName, 0, #KEY_ALL_ACCESS, @hKey)
If GetHandle = #ERROR_SUCCESS
lpcbData = 255
lpData = Space(255)
Select lType
Case #REG_SZ
GetHandle = RegSetValueEx_(hkey, sValueName, 0, #REG_SZ, @vValue, Len(vValue) + 1)
Case #REG_DWORD
lValue = Val(vValue)
GetHandle = RegSetValueEx_(hKey, sValueName, 0, #REG_DWORD, @lValue, 4)
EndSelect
RegCloseKey_(hkey)
ergebnis = 1
ProcedureReturn ergebnis
Else
RegCloseKey_(hKey)
ergebnis = 0
ProcedureReturn ergebnis
EndIf
EndProcedure
Procedure.s GetRegValue(topKey, sKeyName.s, sValueName.s)
GetHandle.l
hKey.l
lpData.s
lpDataDWORD.l
lpcbData.l
lType.l
lReturnCode.l
lhRemoteRegistry.l
Shared getRegValue.s
If Left(sKeyName, 1) = "\"
sKeyName = Right(sKeyName, Len(sKeyName) - 1)
EndIf
GetHandle = RegOpenKeyEx_(topKey, sKeyName, 0, #KEY_ALL_ACCESS, @hKey)
If GetHandle = #ERROR_SUCCESS
lpcbData = 255
lpData = Space(255)
GetHandle = RegQueryValueEx_(hKey, sValueName, 0, @lType, @lpData, @lpcbData)
If GetHandle = #ERROR_SUCCESS
Select lType
Case #REG_SZ
GetHandle = RegQueryValueEx_(hKey, sValueName, 0, @lType, @lpData, @lpcbData)
If GetHandle = 0
getRegValue = Left(lpData, lpcbData - 1)
Else
getRegValue = ""
EndIf
Case #REG_DWORD
GetHandle = RegQueryValueEx_(hKey, sValueName, 0, @lpType, @lpDataDWORD, @lpcbData)
If GetHandle = 0
getRegValue = Str(lpDataDWORD)
Else
getRegValue = "0"
EndIf
EndSelect
EndIf
EndIf
RegCloseKey_(hKey)
ProcedureReturn GetRegValue
EndProcedure
Procedure.l LoadParameter()
a.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_params")
b.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopUser")
c.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopAllUsers")
d.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsQuickLaunch")
e.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_DemarrageWindows")
f.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_Sonore")
SetGadgetState(#Check_params, Val(a))
SetGadgetState(#Check_IconsDesktopUser, Val(b))
SetGadgetState(#Check_IconsDesktopAllUsers, Val(c))
SetGadgetState(#Check_IconsQuickLaunch, Val(d))
SetGadgetState(#Check_DemarrageWindows, Val(e))
SetGadgetState(#Check_Sonore, Val(f))
ProcedureReturn Val(a)
EndProcedure
Procedure SaveParameter()
CreateRegKey(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_params", Str(GetGadgetState(#Check_params)), #REG_DWORD)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopUser", Str(GetGadgetState(#Check_IconsDesktopUser)), #REG_DWORD)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopAllUsers", Str(GetGadgetState(#Check_IconsDesktopAllUsers)), #REG_DWORD)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsQuickLaunch", Str(GetGadgetState(#Check_IconsQuickLaunch)), #REG_DWORD)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_DemarrageWindows", Str(GetGadgetState(#Check_DemarrageWindows)), #REG_DWORD)
SetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_Sonore", Str(GetGadgetState(#Check_Sonore)), #REG_DWORD)
EndProcedure
;--------------------------------------------------
;-ANALYSE BUREAU
;--------------------------------------------------
Procedure AnalyseBureau()
If LoadParameter() = 0
b.s = Str(0)
c.s = Str(0)
d.s = Str(0)
Else
b.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopUser")
c.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsDesktopAllUsers")
d.s = GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_IconsQuickLaunch")
EndIf
If Val(b)=1
dossier.s = GetSystDirectory(6)
If ExamineDirectory(n, dossier , "*.*")
nb=0
Repeat
FileType = NextDirectoryEntry(n)
If FileType = 1
nb + 1
nom.s = DirectoryEntryName(n)
If nom<>"desktop.ini" And nom<>"Thumbs.db" And nom<>"." And nom<>".."
icone = ExtractSmallIconFile(dossier+nom)
MenuItem(#DynMenu1+nb, nom, icone)
EndIf
EndIf
Until FileType = 0
EndIf
FinishDirectory(n)
MenuBar()
EndIf
If Val(c)=1
dossier.s = GetSystDirectory(26)
If ExamineDirectory(n1, dossier , "*.*")
nb=0
Repeat
FileType = NextDirectoryEntry(n1)
If FileType = 1
nb + 1
nom.s = DirectoryEntryName(n1)
If nom<>"desktop.ini" And nom<>"Thumbs.db" And nom<>"." And nom<>".."
icone = ExtractSmallIconFile(dossier+nom)
MenuItem(#DynMenu2+nb, nom, icone)
EndIf
EndIf
Until FileType = 0
EndIf
FinishDirectory(n1)
MenuBar()
EndIf
If Val(d)=1
dossier.s = GetSystDirectory(36)
If ExamineDirectory(n2, dossier , "*.*")
nb=0
Repeat
FileType = NextDirectoryEntry(n2)
If FileType = 1
nb + 1
nom.s = DirectoryEntryName(n2)
If nom<>"desktop.ini" And nom<>"Thumbs.db" And nom<>"." And nom<>".."
icone = ExtractSmallIconFile(dossier+nom)
MenuItem(#DynMenu3+nb, nom, icone)
EndIf
EndIf
Until FileType = 0
EndIf
FinishDirectory(n2)
EndIf
EndProcedure
Procedure MenuSetting()
If OpenWindow(#WinMenuSetting,0,0, 500, 305,"Réglage de "+#PROGRAMNAME, #PB_Window_SystemMenu |#PB_Window_ScreenCentered |#PB_Window_TitleBar)=0
End
EndIf
ContainerGadget(#ContainerTextReglages, 0,0,500,50,#PB_Container_Flat)
SetGadgetColor(#ContainerTextReglages, #PB_Gadget_BackColor, RGB(200, 203, 202))
TextGadget(#TextReglages, 10,0,480,45,"Appliquez vos choix des éléments à afficher dans le menu, ils seront effectifs lors du prochain lancement du programme. Pour les valider immédiatement, cliquez sur 'Appliquer'.")
SetGadgetColor(#TextReglages, #PB_Gadget_BackColor, RGB(200, 203, 202))
SetGadgetColor(#TextReglages, #PB_Gadget_FrontColor, RGB(113, 120, 118))
SetGadgetFont(#TextReglages,Font0)
CloseGadgetList()
TextGadget(#TextOptionsIcons, 10,60,200,15,"Choix des Items de menus")
SetGadgetFont(#TextOptionsIcons,Font0)
SetGadgetColor(#TextOptionsIcons, #PB_Gadget_FrontColor, RGB(113, 120, 118))
CheckBoxGadget(#Check_IconsDesktopUser,100,80,300,20,"Raccourcis bureau de l'utilisateur actuel")
CheckBoxGadget(#Check_IconsDesktopAllUsers,100,105,300,20,"Raccourcis bureau de tous les utilisateurs")
CheckBoxGadget(#Check_IconsQuickLaunch,100,130,300,20,"Raccourcis de la barre de lancement rapide")
TextGadget(#TextOptionsConfort, 10,160,200,15,"Autres options de confort")
SetGadgetFont(#TextOptionsConfort,Font0)
SetGadgetColor(#TextOptionsConfort, #PB_Gadget_FrontColor, RGB(113, 120, 118))
CheckBoxGadget(#Check_DemarrageWindows,100,180,300,20," Démarrer "+#PROGRAMNAME+" avec Windows")
CheckBoxGadget(#Check_Sonore,100,205,300,20,"Avertir lors de l'affichage du menu")
ContainerGadget(#ContainerSetting, 10,230,480,50,#PB_Container_Single)
CheckBoxGadget(#Check_params,10,10,100,20,"Paramètrer")
GadgetToolTip(#Btn_ApplySetting,"Cochez cette case pour utiliser ces paramètres lors du prochain lancement.")
ButtonGadget(#Btn_ApplySetting,265,10,100,25,"Appliquer")
GadgetToolTip(#Btn_ApplySetting,"Sauvegarde vos choix et quitte le programme. Redémarrez "+#PROGRAMNAME+" pour valider.")
ButtonGadget(#Btn_CancelSetting,375,10,100,25,"Annuler")
GadgetToolTip(#Btn_CancelSetting,"Fermer et conserver les choix précédents.")
CloseGadgetList()
If CreateStatusBar(#StatusSetting, WindowID(#WinMenuSetting))
AddStatusBarField(20)
AddStatusBarField(#PB_Ignore)
StatusBarImage(#StatusSetting,0,Image2,#PB_StatusBar_Raised)
StatusBarText(#StatusSetting,1,"WolfoRan LogEditor "+ Chr(169) + " 2006-2009 Tous droits réservés.",#PB_StatusBar_Raised|#PB_StatusBar_Right)
EndIf
LoadParameter()
Repeat
EventSetting = WaitWindowEvent()
If EventSetting = #PB_Event_Gadget
Select EventGadget()
Case #Btn_ApplySetting
SetGadgetState(#Check_params,1)
SaveParameter()
CloseWindow(#WinMenuSetting) : End
Case #Btn_CancelSetting : EventSetting = #PB_Event_CloseWindow
Case #Check_DemarrageWindows
If GetGadgetState(#Check_DemarrageWindows) = 1
If RegCreateKeyEx_(#HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_ALL_ACCESS, 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
StringBuffer$ = ProgramFilename()
RegSetValueEx_(NewKey, #PROGRAMNAME, 0, #REG_SZ, StringBuffer$, Len(StringBuffer$)+1)
RegCloseKey_(NewKey)
EndIf
Else
DeleteRegValue(#HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", #PROGRAMNAME)
EndIf
SaveParameter()
EndSelect
EndIf
Until EventSetting = #PB_Event_CloseWindow
CloseWindow(#WinMenuSetting)
EndProcedure
;--------------------------------------------------
;-FENETRE PRINCIPALE
;--------------------------------------------------
;-Vérification du Lancement
Global F.l
Procedure ExeLance(nomfenetre$)
F=FindWindow_(0, nomfenetre$)
If F<>0
ProcedureReturn 1
Else
ProcedureReturn 0
EndIf
EndProcedure
Procedure WinMain()
ExamineDesktops()
Largeur$ = Str(DesktopWidth(0))
Hauteur$ = Str(DesktopHeight(0))
FlagWin = #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_TitleBar |#PB_Window_Invisible
If OpenWindow(#WINMAIN,Val(Largeur$)-120,Val(Hauteur$)-170,100,100,#PROGRAMNAME ,FlagWin)=0
End
EndIf
;-PopUp Raccourcis Bureau
;{
HPopUpRaccourcis = CreatePopupImageMenu(#PopUp_Raccourcis,#PB_Menu_ModernLook)
If HPopUpRaccourcis
AnalyseBureau()
OpenSubMenu("Préférences utilisateur")
MenuItem(#setting, "Réglages", Image4)
MenuItem(#About, "A propos...", Image3)
MenuItem(#Website, "WolfoRan sur internet", Image2)
CloseSubMenu()
MenuItem(#QuitMiniDesktop, "Quitter "+#PROGRAMNAME, Image1)
EndIf
;}
AddSysTrayIcon(#SystrayIcone, WindowID(#WINMAIN), Image0)
SysTrayIconToolTip(#SystrayIcone, #PROGRAMNAME)
EndProcedure
;--------------------------------------------------
;-PROGRAMME
;--------------------------------------------------
If ExeLance(#PROGRAMNAME) = 1
MessageRequester(#PROGRAMNAME,#PROGRAMNAME+" a déjà été lancé!"+Chr(13)+"L'icône doit se trouver dans la zone de notification en bas à droite.",#MB_ICONINFORMATION)
End
Else
WinMain()
EndIf
Repeat
Event = WaitWindowEvent()
MenuID = EventMenu()
If Event = #PB_Event_Menu
If MenuID>#DynMenu1 And MenuID<#DynMenu2
RunProgram(GetSystDirectory(6)+"\"+GetMenuItemText(#PopUp_Raccourcis, MenuID))
ElseIf MenuID>#DynMenu2 And MenuID<#DynMenu3
RunProgram(GetSystDirectory(26)+"\"+GetMenuItemText(#PopUp_Raccourcis, MenuID))
ElseIf MenuID>#DynMenu3
RunProgram(GetSystDirectory(36)+"\"+GetMenuItemText(#PopUp_Raccourcis, MenuID))
Else
Select MenuID
Case #QuitMiniDesktop : quit=#True
Case #setting : MenuSetting()
Case #About
TexteAbout$ = #PROGRAMNAME+" "+#VERSION+" "+#STATUT+ Chr(13)+""+Chr(13)
TexteAbout$ = TexteAbout$ +"WolfoRan LogEditor"+Chr(169)+"2006-2009"+Chr(13)+""+Chr(13)
TexteAbout$ = TexteAbout$ +"Sur le web:"+Chr(13)
TexteAbout$ = TexteAbout$ +" http://www.wolforan.fr"+Chr(13)
TexteAbout$ = TexteAbout$ +" http://www.wolforan.com/PureSofts/"+Chr(13)+""+Chr(13)
TexteAbout$ = TexteAbout$ +"Merci d'utiliser notre produit, Jacobus"
MessageRequester("A propos de "+#PROGRAMNAME,TexteAbout$,#MB_ICONINFORMATION)
Case #Website
Connexion = ShellExecute_(0,"open","http://www.wolforan.com/PureSofts/",0,0,1)
If Connexion
;Event=#PB_Event_CloseWindow
Else
MessageRequester("Connexion...", "Impossible de se connecter au site web", #MB_ICONEXCLAMATION)
EndIf
EndSelect
EndIf
EndIf
If Event = #PB_Event_CloseWindow
quit=#True
EndIf
If Event = #PB_Event_SysTray
If EventType() = #PB_EventType_RightClick
If Val(GetRegValue(#HKEY_LOCAL_MACHINE, "Software\"+#PROGRAMNAME, "Check_Sonore"))=1
PlaySound(#SonIn)
EndIf
DisplayPopupMenu(#PopUp_Raccourcis, WindowID(#WINMAIN))
EndIf
EndIf
Until quit=#True
End
;-Data Images
DataSection
Image0 : IncludeBinary "ICONES48\WindowsVista01.ico"
Image1 : IncludeBinary "ICONES16\Shutdown.ico"
Image2 : IncludeBinary "ICONES16\wolforan.ico"
Image3 : IncludeBinary "ICONES16\Comments.ico"
Image4 : IncludeBinary "ICONES16\Affichage.ico"
EndDataSection