Jump to content
Sign in to follow this  
Funky2000

why are my buttons blank?

Recommended Posts

Funky2000

Hi,

Just trying to find out if Autoit compiled .exe scripts work under Windows PE 1.2 as I have compiled a script, and when I try to run it on Windows PE1.2, the buttons are blank, no text, and the image that I had added onto the form was blank.

$Form1 = GUICreate("Graphical Windows PE interface", 801, 401, -1, -1,)
GUISetBkColor(0xFFFFFF)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
$Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116, $BS_BITMAP)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$cdinstall = GUICtrlCreateButton("Install from CD", 50, 200, 300, 50, $BS_BITMAP)
GUICtrlSetTip(-1, "Local Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$nwinstall = GUICtrlCreateButton("Install from Network", 450, 200, 300, 50, $BS_BITMAP)
GUICtrlSetTip(-1, "Network Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Partition = GUICtrlCreateButton("Partition HDD", 250, 275, 300, 50, $BS_BITMAP)
GUICtrlSetTip(-1, "Partition the Harddisk")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Label1 = GUICtrlCreateLabel("Developed by XXXXXXX", 496, 482, 252, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)

Share this post


Link to post
Share on other sites
November

hi,

$BS_BITMAP overrides text in buttons!

#include <GUIConstants.au3>


$Form1 = GUICreate("Graphical Windows PE interface", 801, 401, -1,-1)
GUISetBkColor(0xFFFFFF)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
$Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116, $BS_BITMAP)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$cdinstall = GUICtrlCreateButton("Install from CD", 50, 200, 300, 50)
GUICtrlSetTip(-1, "Local Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$nwinstall = GUICtrlCreateButton("Install from Network", 450, 200, 300, 50)
GUICtrlSetTip(-1, "Network Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Partition = GUICtrlCreateButton("Partition HDD", 250, 275, 300, 50)
GUICtrlSetTip(-1, "Partition the Harddisk")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Label1 = GUICtrlCreateLabel("Developed by XXXXXXX", 496, 482, 252, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)

while 1
    sleep(20)
WEnd

Cheers

Edited by november

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
Funky2000

hi,

$BS_BITMAP overrides text in buttons!

#include <GUIConstants.au3>
$Form1 = GUICreate("Graphical Windows PE interface", 801, 401, -1,-1)
GUISetBkColor(0xFFFFFF)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
$Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116, $BS_BITMAP)
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$cdinstall = GUICtrlCreateButton("Install from CD", 50, 200, 300, 50)
GUICtrlSetTip(-1, "Local Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$nwinstall = GUICtrlCreateButton("Install from Network", 450, 200, 300, 50)
GUICtrlSetTip(-1, "Network Install")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Partition = GUICtrlCreateButton("Partition HDD", 250, 275, 300, 50)
GUICtrlSetTip(-1, "Partition the Harddisk")
GUICtrlSetFont(-1, 18, 400, 0, "Times New Roman")
$Label1 = GUICtrlCreateLabel("Developed by XXXXXXX", 496, 482, 252, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)

while 1
    sleep(20)
WEnd

Cheers

The buttons display fine in Windows XP tho, even with $BS_BITMAP on them, and not only that, the image ($Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116, $BS_BITMAP)) doesn't show either in PE1.2

Share this post


Link to post
Share on other sites
November

Hi,

I run the script and no buttons appear in my WinXP, so i removed the $BS_BITMAP and runned smooth.

Just for troubleshooting, remove all $BS_BITMAP and try to run!

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
Funky2000

Hi,

I run the script and no buttons appear in my WinXP, so i removed the $BS_BITMAP and runned smooth.

Just for troubleshooting, remove all $BS_BITMAP and try to run!

Cheers

removed all the $BS_BITMAP all the buttons show properly, thanks.. however the image that I wanted to show still won't show.. is the control wrong, or do pictures just not work in PE1.2 ? the image is in the same directory as the .exe, when I run the script in xp, as long as the .jpg file exists in the same directory as the .exe then the pic shows, just not in PE.

thanks

Share this post


Link to post
Share on other sites
November

Worked with me!

renamed a jpg file to the file name that you have in your script and the new Toyota Auris come up in the GUI.

You can remove the $BS_BITMAP of the $Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116) too.

You can include once the image file in the script and decompress him in a specific folder!

Cheers!


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites
Funky2000

Worked with me!

renamed a jpg file to the file name that you have in your script and the new Toyota Auris come up in the GUI.

You can remove the $BS_BITMAP of the $Pic1 = GUICtrlCreatePic("My_Image.jpg", 16, 40, 724, 116) too.

You can include once the image file in the script and decompress him in a specific folder!

Cheers!

Done all this, but STILL CAN'T get the picture to show in Windows PE 1.2, it DOES work in Windows XP...

any ideas?

Share this post


Link to post
Share on other sites
November

Hi...

Just 4 troubleshoot... try to use PE 1.1.

'Cause PE 1.2 is disgned for Win2k3 family and WinXP SP2!

Cheers

Edited by november

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
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
Sign in to follow this  

×