Jump to content

[Help] with image placement


 Share

Recommended Posts

Hello I just started learning AutoIt and im kinda confused at how to add a image to the script iv tried everything. I got it to show up but it blocks out

all my buttons/ words. my friend made a patcher for my server and it had a image as the back ground and i dont know how he did it was wondering if im doing something

wrong please help if you can thank you so much.

Sincerely

Proxee

Link to comment
Share on other sites

you must set the state of the control that contains the image to $GUI_DISABLE so that the buttons overlapping will work

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

it gives me a error with it im still learning variables and stuff so its a bit confusing i did

GuiCreate("FFSilence Patcher",484,600,500,96 )

$list=GuiCtrlCreateList("Comming soon",345,10,128,25)
$news2=GUICtrlCreateList("Patcher is currently Under Construction",25,260,435,200)
$label2=GuiCtrlCreateLabel("Progress Bar",10,485,90,25)
$Progress=GuiCtrlCreateProgress(10,500,465,25)
$button1=GuiCtrlCreateButton("Start",10,530,75,25)
$button2=GuiCtrlCreateButton("Options",150,530,75,25)
$button3=GuiCtrlCreateButton("Register",265,530,75,25)
$button4=GuiCtrlCreateButton("Close",400,530,75,25)
$list2=GuiCtrlCreateList("Designed By Proxy",10,575,100,25)

$picture=GuiCtrlCreatePic("./Include/1033.jpg",0,0,485,600)
GUICtrlSetState($picture, $GUI_DISABLE)
GUISetState(@SW_Show)


While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
    

Wend




Func button1()

EndFunc

and it gives a error of

>"F:\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "F:\Autoit Scripts\ffsilence.au3"

F:\Autoit Scripts\ffsilence.au3 (26) : ==> Variable used without being declared.:

GUICtrlSetState($picture, $GUI_DISABLE)

GUICtrlSetState($picture, ^ ERROR

>Exit code: 1 Time: 0.371

sorry for being such a pain i want to learn this so bad xD

Link to comment
Share on other sites

Hmm, the code works for me so far. I get a gui pop up..

#include <GUIConstantsEx.au3>

$hGui=GuiCreate("FFSilence Patcher",484,600,500,96 )

$list=GuiCtrlCreateList("Comming soon",345,10,128,25)
$news2=GUICtrlCreateList("Patcher is currently Under Construction",25,260,435,200)
$label2=GuiCtrlCreateLabel("Progress Bar",10,485,90,25)
$Progress=GuiCtrlCreateProgress(10,500,465,25)
$button1=GuiCtrlCreateButton("Start",10,530,75,25)
$button2=GuiCtrlCreateButton("Options",150,530,75,25)
$button3=GuiCtrlCreateButton("Register",265,530,75,25)
$button4=GuiCtrlCreateButton("Close",400,530,75,25)
$list2=GuiCtrlCreateList("Designed By Proxy",10,575,100,25)

$picture=GuiCtrlCreatePic("./Include/1033.jpg",0,0,485,600)
GUICtrlSetState($picture, $GUI_DISABLE)
GUISetState(@SW_Show)


While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()


Wend




Func button1()

EndFunc

*edit*

(I added a name to your gui)

You may need this line right before the GUISetState(@SW_Show)

GuiCtrlSetState($hGui,$GUI_ONTOP)

You may need to play with some of the styles and extended styles for the gui and the pic control to find the one that works for you. I've never messed with lists and menus over a pic.

Edited by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

hmm ill keep finding fixes xD its hard i know @-@ if i had a copy of what the patcher looked like id show you it i had the source till i reformated and lost it D: qq it had a blank spot in the middle that showed my news.php and stuff im trying to remake it so far its almost there but there was other functions xD that i cant figure out the dll files ini files the sorts.

edit im off to bed ill be on later take care and thanks for the help :3

Edited by Proxee
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...