|
You last visited: Today at 07:33
Advertisement
Image doesnt show
Discussion on Image doesnt show within the AutoIt forum part of the Coders Den category.
06/22/2013, 12:17
|
#1
|
elite*gold: 0
Join Date: Apr 2013
Posts: 16
Received Thanks: 95
|
Image doesnt show
Hi guys when i run my script the image doesnt show to other people
Code:
#Region ### START Koda GUI section ###
$Form1 = GUICreate("Exivion", 650, 474, 713, 160)
GUISetIcon("C:\Users\User\Desktop\elogo.ico", -1)
GUICtrlSetState(-1, $gui_checked)
GUICtrlSetState(-1, $gui_disable)
$Pic1 = GUICtrlCreatePic("C:\Users\User\Desktop\exi.jpg", 176, 0, 473, 473)
$button1 = GUICtrlCreateButton("Exivion", 0, 0, 179, 473)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
(C:\Users\User\Desktop\exi.jpg) I know this is the problem but how can i fix this? so that ppl who download my .exe file also can see the image If my coding is wrong please correct it THX.
|
|
|
06/22/2013, 12:22
|
#2
|
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
|
|
|
|
06/22/2013, 12:23
|
#3
|
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
|
You can use macros.
The macro for the desktop path is @DesktopDir.
Quote:
|
GUISetIcon(@DesktopDir&"\elogo.ico", -1)
|
A full list of all macros: 
And all users need your images so send them with your code or use FileInstall
|
|
|
06/22/2013, 12:44
|
#4
|
elite*gold: 0
Join Date: Apr 2013
Posts: 16
Received Thanks: 95
|
so basically thats the function that allows other people to see the image like installing the image into their PC?
|
|
|
06/22/2013, 12:48
|
#5
|
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
|
Yes, when the image does not exist the script create it.
Otherwise you can send the images with the .exe.
|
|
|
06/22/2013, 12:54
|
#6
|
elite*gold: 0
Join Date: Apr 2013
Posts: 16
Received Thanks: 95
|
but still then if i send the image with the file they still cant see caz of the directory and im talking about this one
$Pic1 = GUICtrlCreatePic("C:\Users\User\Desktop\exi.jpg", 176, 0, 473, 473)
|
|
|
06/22/2013, 12:56
|
#7
|
elite*gold: 76
Join Date: Jun 2012
Posts: 1,043
Received Thanks: 216
|
use @DesktopDir
|
|
|
06/22/2013, 12:58
|
#8
|
elite*gold: 0
Join Date: Apr 2013
Posts: 16
Received Thanks: 95
|
still when they download or recieve the file it will be some where in the documents and stuff
|
|
|
06/22/2013, 13:21
|
#9
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
post your script
|
|
|
06/22/2013, 13:23
|
#10
|
elite*gold: 0
Join Date: Apr 2013
Posts: 16
Received Thanks: 95
|
Code:
FileInstall("C:\Users\User\Desktop\exi.jpg",@DesktopDir&"\exi.jpg")
#Region ### START Koda GUI section ###
$Form1 = GUICreate("Exivion", 650, 474, 713, 160)
GUISetIcon(@DesktopDir&"\elogo.ico", -1)
GUICtrlSetState(-1, $gui_checked)
GUICtrlSetState(-1, $gui_disable)
$Pic1 = GUICtrlCreatePic(@DesktopDir&"\exi.jpg", 176, 0, 473, 473)
$button1 = GUICtrlCreateButton("Exivion", 0, 0, 179, 473)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
|
|
|
06/22/2013, 13:55
|
#11
|
elite*gold: 235
Join Date: Jan 2012
Posts: 920
Received Thanks: 377
|
Are you sure that the exi.jpg is on the desktop when you start the script ?
FileInstall works only if the programm is compiled and the image is at the given path while AutoIT compile your script !
|
|
|
06/27/2013, 21:35
|
#12
|
elite*gold: 0
Join Date: Mar 2011
Posts: 173
Received Thanks: 347
|
use @TempDir its better ,,, but when you compile the script you should put all resources in the same folder
its should be look like this
Code:
FileInstall("exi.jpg", @TempDir & "\exi.jpg")
#Region ### START Koda GUI section ###
$Form1 = GUICreate("Exivion", 650, 474, 713, 160)
GUISetIcon(@DesktopDir&"\elogo.ico", -1)
GUICtrlSetState(-1, $gui_checked)
GUICtrlSetState(-1, $gui_disable)
$Pic1 = GUICtrlCreatePic(@TempDir & "\exi.jpg", 176, 0, 473, 473)
$button1 = GUICtrlCreateButton("Exivion", 0, 0, 179, 473)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
|
|
|
 |
Similar Threads
|
Imagesearch doesnt find Image !
05/02/2013 - AutoIt - 0 Replies
Hey Guys,
I really dont know what to do anymore , the script I made doesnt find the image that It should and I dont know what i am doin wrong.
I want that it always presses F2 until the Image was found and if the Image was found it should stop and exit.
Heres my code :
#RequireAdmin
#include <ImageSearch.au3>
GUICreate("AwakeBot" ,200,150 )
GUICtrlCreateLabel ("Versuche:", 1, 30, 50)
|
SRO doesn't show image verifi.
10/28/2008 - Silkroad Online - 12 Replies
Hey,
WHen I press Log in my image verification code doesn't show up, and I can't boot SRO through isroBot.
ANy suggestions?
Thanks,
|
AGbot doesnt show my name or skills or lvl.
06/09/2008 - Silkroad Online - 3 Replies
It doesnt change at all from the time I open it from the time I select my character. I've read the guide and FAQ 20 times. I've patched media.pk2, and done every single step. I've tried deleting all my folders and downloading it again and restarting my pc and doing everything. The only thing I havent done yet is reinstall SRO but I dont want to do that just yet. Does anyone know why its not work for me and how to fix it? It seems like im the only one this is happening to. I use windows firewall...
|
Artmoney doesnt show.
04/05/2008 - Conquer Online 2 - 14 Replies
I have no idea why, but when i get the art money adress, trade someone, and put the money up they don't see it. Why?
|
[help]agbot doesnt show up skill
03/27/2008 - Silkroad Online - 5 Replies
Iam logged on the game... and i see all the info in the info tab...
and isee stats str. int hp mp sp exp and so on..
but in the skill tab i just dont see any skill show up...
and i tried to change the ip in nuconnector to 26 -> 27 and so on...
tried to restart couple times..
iam level 78 so i have skills its like iam lvl 1 char with no skills -.- what it could be? the problem
|
All times are GMT +1. The time now is 07:34.
|
|