Jump to content

Gui did not appear when music is added to exe background


Recommended Posts

Music is added, (wav format for sure!). Everything is working, but Gui window didnt appear! :)

CODE

#AutoIt3Wrapper_UseUpx=n

#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, alus.jpg, rcdata, TEST_JPG_1, 0

#AutoIt3Wrapper_run_after=ResHacker.exe -add %out%, %out%, C:\mikefoyle.wav, sound, TEST_WAV_1, 0

#AutoIt3Wrapper_Run_After=upx.exe --best --compress-resources=0 "%out%"

#include "GUIConstantsEx.au3"

#include "StaticConstants.au3"

#include "resources.au3"

GUICreate("AGLONA Party 2009", 800, 520)

$picl = GUICtrlCreatePic("aglonaready.jpg", 0, 0, 800, 520)

GUICtrlSetState(-1, $GUI_DISABLE)

_ResourceSetImageToCtrl($picl, "TEST_JPG_1")

_ResourcePlaySound("TEST_WAV_1")

_ResourcePlaySound("TEST_WAV_1", $SND_ASYNC)

$labell = GUICtrlCreateLabel("", 00, 10, 400, 25, $SS_CENTER)

GUICtrlSetFont(-1, 14)

GUICtrlSetColor(-1, 0xffff00)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlCreateGroup("", 45, 35, 210, 260)

GUICtrlCreateLabel("Òóñîâêà", 130, 27, 100, 20)

GUICtrlSetFont(-1, 9, 400)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Òóñîâêà", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox1 = GUICtrlCreateCheckbox("", 70, 45, 13, 13)

GUICtrlCreateLabel("Îëåã", 87, 47, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Îëåã", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox2 = GUICtrlCreateCheckbox("", 70, 75, 13, 13)

GUICtrlCreateLabel("Ðîìàíû÷", 87, 77, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Ðîìàíû÷", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox3 = GUICtrlCreateCheckbox("", 70, 105, 13, 13)

GUICtrlCreateLabel("Æåíüêà", 87, 107, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Æåíüêà", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox4 = GUICtrlCreateCheckbox("", 70, 135, 13, 13)

GUICtrlCreateLabel("Øóðèê", 87, 137, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Øóðèê", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox5 = GUICtrlCreateCheckbox("", 70, 165, 13, 13)

GUICtrlCreateLabel("Ïåòðî", 87, 167, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Ïåòðî", $GUI_BKCOLOR_TRANSPARENT)

$CheckBox6 = GUICtrlCreateCheckbox("", 70, 195, 13, 13)

GUICtrlCreateLabel("Ïàâåë", 87, 197, 100, 20)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Ïàâåë", $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetColor(-1, 0xff0000)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlCreateGroup("", 300, 35, 460, 260)

GUICtrlCreateLabel("Ðàññ÷¸ò ïðîäóêòîâ", 470, 27, 250, 20)

GUICtrlSetFont(-1, 9, 400, 0)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetBkColor("Ðàññ÷¸ò ïðîäóêòîâ", $GUI_BKCOLOR_TRANSPARENT)

;Input set Produkti i Toplivo

Local $input1, $input2, $input3, $input4, $input5, $input6, $input7, $input8

GUICtrlCreateLabel("Íàèìåíîâàíèå", 310, 45)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetColor(-1, 0x660000)

$input1 = GUICtrlCreateInput("", 310, 70, 100, 18)

$input2 = GUICtrlCreateInput("", 310, 100, 100, 18)

$input3 = GUICtrlCreateInput("", 310, 130, 100, 18)

$input4 = GUICtrlCreateInput("", 310, 160, 100, 18)

$input5 = GUICtrlCreateInput("", 310, 190, 100, 18)

$input6 = GUICtrlCreateInput("", 310, 220, 100, 18)

$input7 = GUICtrlCreateInput("", 310, 250, 100, 18)

GUICtrlCreateLabel("Òîïëèâî", 310, 300)

GUICtrlSetFont(-1, 9, 400)

GUICtrlSetColor(-1, 0x660000)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

$input8 = GUICtrlCreateInput("", 380, 300, 30, 20)

;Input end

;Input set Kolichestvo

Local $input9, $input10, $input11, $input12, $input13, $input14, $input15

GUICtrlCreateLabel("Êîëè÷åñòâî", 440, 45)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetColor(-1, 0x660000)

$input9 = GUICtrlCreateInput("", 440, 70, 60, 18)

$input10 = GUICtrlCreateInput("", 440, 100, 60, 18)

$input11 = GUICtrlCreateInput("", 440, 130, 60, 18)

$input12 = GUICtrlCreateInput("", 440, 160, 60, 18)

$input13 = GUICtrlCreateInput("", 440, 190, 60, 18)

$input14 = GUICtrlCreateInput("", 440, 220, 60, 18)

$input15 = GUICtrlCreateInput("", 440, 250, 60, 18)

;Input end

;Input set Cena

Local $input16, $input17, $input18, $input19, $input20, $input21, $input22

GUICtrlCreateLabel("Öåíà", 530, 45)

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlSetColor(-1, 0x660000)

$input16 = GUICtrlCreateInput("", 530, 70, 40, 18)

$input17 = GUICtrlCreateInput("", 530, 100, 40, 18)

$input18 = GUICtrlCreateInput("", 530, 130, 40, 18)

$input19 = GUICtrlCreateInput("", 530, 160, 40, 18)

$input20 = GUICtrlCreateInput("", 530, 190, 40, 18)

$input21 = GUICtrlCreateInput("", 530, 220, 40, 18)

$input22 = GUICtrlCreateInput("", 530, 250, 40, 18)

;Input end

Local $total1, $total2, $total3, $total4, $total5, $total6, $total7, $ALL

GUICtrlCreateLabel ("Total money: " & $ALL, 600, 70)

$ALL = Exp ($input9 * $input16)

GUISetState(@SW_SHOW)

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

Link to comment
Share on other sites

  • Moderators

electrico,

When I compiled and ran your script, the GUI appeared after the .WAV file had played twice, just as your code says it will. If you want the GUI to appear before the sound, then move the

_ResourcePlaySound("TEST_WAV_1")
_ResourcePlaySound("TEST_WAV_1", $SND_ASYNC)

lines after your

GUISetState(@SW_SHOW)

line.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...