When AU3 script is run from right-click > run script, the background images, on the forms, are displayed correctly. However, when the compiled EXE is run, the background images are missing. Advice? Suggestions? Thanks in advance.
#include <AutoItConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $Form_Intro = GUICreate("Intro form", 463, 266, -1, -1, $WS_POPUP & BITOR($WS_EX_LAYERED, $WS_EX_TOOLWINDOW))
Global $Pic_Intro = GUICtrlCreatePic(@ScriptDir & "\intro.jpg", 0, 0, 463, 266, $GUI_DISABLE)
Global $Button1_Intro = GUICtrlCreateButton("One", 175, 234, 49, 25)
Global $Button2_Intro = GUICtrlCreateButton("Two", 229, 234, 49, 25)
Global $Button3_Intro = GUICtrlCreateButton("Three", 283, 234, 49, 25)
Global $Button4_Intro = GUICtrlCreateButton("Cancel", 358, 234, 97, 25)
_Intro()
Func _Intro()
WinSetOnTop($Form_Intro, "", $WINDOWS_ONTOP)
GUISetState(@SW_SHOW, $Form_Intro)
While 1
$Msg_Welcome = GUIGetMsg()
Switch $Msg_Welcome
Case $Button1_Intro
GUISetState(@SW_HIDE, $Form_Intro)
_One_Ask()
Exit
Case $Button2_Intro
GUISetState(@SW_HIDE, $Form_Intro)
_Two_Ask()
Exit
Case $Button3_Intro
GUISetState(@SW_HIDE, $Form_Intro)
_Three_Ask()
Exit
Case $Button4_Intro
GUISetState(@SW_HIDE, $Form_Intro)
_Cancel_Ask()
EndSwitch
WEnd
EndFunc