CodyBarrett Posted December 19, 2008 Share Posted December 19, 2008 yeah i want to make a .bmp i have PERMENANTLY on the gui BUT i want the gui to make it everytime it loads. can i do this? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted December 19, 2008 Share Posted December 19, 2008 Use FileInstall() Example... #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> $My_pic = @TempDir & "\MyPicture.jpg" FileInstall("C:\Program Files\AutoIt3\MyPicture.jpg", $My_pic) $My_GUI = GUICreate("My GUI") GUICtrlCreatePic($My_pic, 0, 0, 100, 200) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState() Sleep(5000) Exit 8) Link to comment Share on other sites More sharing options...
CodyBarrett Posted December 19, 2008 Author Share Posted December 19, 2008 so your saying... fileinstall will have the specified file on my comp loaded into the exe, and when some one else runs it on their computer it would copy on their computer to be used? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Valuater Posted December 19, 2008 Share Posted December 19, 2008 yes! 8) Link to comment Share on other sites More sharing options...
CodyBarrett Posted December 19, 2008 Author Share Posted December 19, 2008 ill post my script later on today.... and when i tried file install it didnt load on a seperate computer.. [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
CodyBarrett Posted December 20, 2008 Author Share Posted December 20, 2008 here is the script.. how would i put file install in? expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> DirCreate ( "C:\Utilitarian\" ) FileInstall ( "C:\Utilitarian\Kluarph.bmp", "C:\Utilitarian\Kluarph.bmp" ,1 ) FileInstall ( "C:\Utilitarian\1597532846.INI","C:\Utilitarian\1597532846.INI" ,1 ) If FileExists("C:\Utilitarian\1597532846.INI") Then Else IniWrite("c:\Utilitarian\1597532846.INI","PASS","USER","PASSWORD") IniWrite("c:\Utilitarian\1597532846.INI","PASS","ADMIN","TBHOEB") EndIf FileSetAttrib("C:\Utilitarian\1597532846.INI","+H") $GUI = GUICreate("Utilitarian",500,190) GUISetBkColor(0X000000) $Pic1 = GUICtrlCreatePic("C:\Utilitarian\Kluarph.bmp", 380, 0, 145, 233, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) $HIDE = GUICtrlCreateButton("HIDE",320,10,70,20) $INPUT = GUICtrlCreateInput("C:\directory\file.extension",10,10,300,20) $UNHIDE = GUICtrlCreateButton("UNHIDE",320,40,70,20) $INPUT2 = GUICtrlCreateInput("C:\directory\file.extension",10,40,300,20) $READ =GUICtrlCreateButton("READ",320,70,70,20) $INPUT3 = GUICtrlCreateInput("C:\directory\file.extension",10,70,300,20) $WRITE =GUICtrlCreateButton("WRITE",320,100,70,20) $INPUT4 = GUICtrlCreateInput("C:\directory\file.extension",10,100,300,20) $INPUT5 = GUICtrlCreateInput("PASSWORD",10,130,140,20, $ES_PASSWORD) $UNLOCK = GUICtrlCreateButton("UNLOCK",160,130,70,20) $INPUT6 = GUICtrlCreateInput("PASSWORD",10,160,140,20, $ES_PASSWORD) $BACKUP = GUICtrlCreateButton("BACKUP",160,160,70,20) $LOCK = GUICtrlCreateButton("LOCK",240,130,70,20) $CHANGE = GUICtrlCreateButton("CHANGE",320,130,70,20) $NOTEPAD = GUICtrlCreateButton("RUN NOTEPAD",240,160,150,20) GUISetState() GUICtrlSetState($HIDE ,$GUI_DISABLE) GUICtrlSetState($UNHIDE ,$GUI_DISABLE) GUICtrlSetState($READ ,$GUI_DISABLE) GUICtrlSetState($WRITE ,$GUI_DISABLE) GUICtrlSetState($INPUT ,$GUI_DISABLE) GUICtrlSetState($INPUT2 ,$GUI_DISABLE) GUICtrlSetState($INPUT3 ,$GUI_DISABLE) GUICtrlSetState($INPUT4 ,$GUI_DISABLE) GUICtrlSetState($CHANGE ,$GUI_DISABLE) GUICtrlSetState($INPUT6 ,$GUI_DISABLE) GUICtrlSetState($BACKUP ,$GUI_DISABLE) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $UNLOCK If GUICtrlRead($INPUT5) = IniRead("C:\1597532846.INI","PASS","USER","") Then GUICtrlSetState($HIDE ,$GUI_ENABLE) GUICtrlSetState($UNHIDE ,$GUI_ENABLE) GUICtrlSetState($READ ,$GUI_ENABLE) GUICtrlSetState($WRITE ,$GUI_ENABLE) GUICtrlSetState($INPUT ,$GUI_ENABLE) GUICtrlSetState($INPUT2 ,$GUI_ENABLE) GUICtrlSetState($INPUT3 ,$GUI_ENABLE) GUICtrlSetState($INPUT4 ,$GUI_ENABLE) GUICtrlSetState($CHANGE ,$GUI_ENABLE) GUICtrlSetState($INPUT6 ,$GUI_DISABLE) GUICtrlSetState($BACKUP ,$GUI_DISABLE) Else GUICtrlSetState($INPUT6 ,$GUI_ENABLE) GUICtrlSetState($BACKUP ,$GUI_ENABLE) EndIf Case $msg = $BACKUP If GUICtrlRead($INPUT6) = IniRead("C:\1597532846.INI","PASS","ADMIN","") Then GUICtrlSetState($HIDE ,$GUI_ENABLE) GUICtrlSetState($UNHIDE ,$GUI_ENABLE) GUICtrlSetState($READ ,$GUI_ENABLE) GUICtrlSetState($WRITE ,$GUI_ENABLE) GUICtrlSetState($INPUT ,$GUI_ENABLE) GUICtrlSetState($INPUT2 ,$GUI_ENABLE) GUICtrlSetState($INPUT3 ,$GUI_ENABLE) GUICtrlSetState($INPUT4 ,$GUI_ENABLE) GUICtrlSetState($CHANGE ,$GUI_ENABLE) GUICtrlSetState($INPUT6 ,$GUI_DISABLE) GUICtrlSetState($BACKUP ,$GUI_DISABLE) Else GUICtrlSetState($INPUT6 ,$GUI_ENABLE) GUICtrlSetState($BACKUP ,$GUI_ENABLE) EndIf Case $msg = $LOCK GUICtrlSetState($HIDE ,$GUI_DISABLE) GUICtrlSetState($UNHIDE ,$GUI_DISABLE) GUICtrlSetState($READ ,$GUI_DISABLE) GUICtrlSetState($WRITE ,$GUI_DISABLE) GUICtrlSetState($INPUT ,$GUI_DISABLE) GUICtrlSetState($INPUT2 ,$GUI_DISABLE) GUICtrlSetState($INPUT3 ,$GUI_DISABLE) GUICtrlSetState($INPUT4 ,$GUI_DISABLE) GUICtrlSetState($CHANGE ,$GUI_DISABLE) Case $msg = $CHANGE IniWrite("C:\1597532846.INI","PASS","USER",GUICtrlRead($INPUT5)) Case $msg = $HIDE FileSetAttrib(GUICtrlRead($INPUT), "+H" ) Case $msg = $UNHIDE FileSetAttrib(GUICtrlRead($INPUT2), "-H" ) Case $msg = $READ FileSetAttrib(GUICtrlRead($INPUT3), "+R" ) Case $msg = $WRITE FileSetAttrib(GUICtrlRead($INPUT4), "-R" ) Case $msg = $NOTEPAD Run("NOTEPAD.EXE") EndSelect WEnd [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Tomb Posted December 20, 2008 Share Posted December 20, 2008 you need to compile for fileinstall to include the bmp in the compiled exe so it can install it when ran. Link to comment Share on other sites More sharing options...
CodyBarrett Posted December 20, 2008 Author Share Posted December 20, 2008 how do i compile it? like make into exe? i tried that and nothing, the help file doesnt metion anything that i can see, maybe im not looking in the right placves, what do i do to compile? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
rasim Posted December 20, 2008 Share Posted December 20, 2008 how do i compile it? like make into exe? i tried that and nothing, the help file doesnt metion anything that i can see, maybe im not looking in the right placves, what do i do to compile?Example Link to comment Share on other sites More sharing options...
CodyBarrett Posted December 20, 2008 Author Share Posted December 20, 2008 (edited) wow thanks i think i got it now... il get back on this topic if i gots another question(if it doesnt work) EDIT <Doesnt show picture on GUI> well i dont understand FILEINSTALL could someone explain how it compiles and extracts upon runing script? or maybe how to compile my picture to it. i dunno Edited December 21, 2008 by bob00037 [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now