ENTERg Posted September 25, 2007 Share Posted September 25, 2007 hello to all in here i want to make a simple script (i think it is) which will have : 1)one fullscreen foto 2)some text which will b applications on the foto i think is simple i tried it but no result thnx in advance keep up the good work in here ! Link to comment Share on other sites More sharing options...
martin Posted September 25, 2007 Share Posted September 25, 2007 hello to all in here i want to make a simple script (i think it is) which will have : 1)one fullscreen foto 2)some text which will b applications on the foto i think is simple i tried it but no result thnx in advance keep up the good work in here ! This is one way #include <GUIConstants.au3> HotKeySet("{ESC}","Exit1") $Form1 = GUICreate("Form1", @DesktopWidth, @DesktopHeight, 0,0,$WS_POPUP,$WS_EX_TOPMOST) $picPath = ????? $Pic1 = GUICtrlCreatePic($picPath, 0, 0, @DesktopWidth, @DesktopHeight) $Label1 = GUICtrlCreateLabel("Label1", 272, 264, 83, 33) GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, 0xffffff) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Exit1() Exit EndFunc Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
ENTERg Posted September 25, 2007 Author Share Posted September 25, 2007 thnx so much 4 the reply man i dont know how you guys know so much about this and how you created this script.... i copied your text but i dont know how to make the path here : $picPath = ????? thx again Link to comment Share on other sites More sharing options...
Zedna Posted September 25, 2007 Share Posted September 25, 2007 thnx so much 4 the reply man i dont know how you guys know so much about this and how you created this script....i copied your text but i dont know how to make the path here :$picPath = ?????thx again RTFM!Do you know about English word HelpFile? Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ENTERg Posted September 25, 2007 Author Share Posted September 25, 2007 Do you know about English word HelpFile? Link to comment Share on other sites More sharing options...
ofLight Posted September 25, 2007 Share Posted September 25, 2007 (edited) the $picpath Variable I think will be the Path to the Location of the File to use as the background ?? $picPath = "C:\myDocuments\Picture01.jpg" Edited September 25, 2007 by ofLight There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
BrettF Posted September 25, 2007 Share Posted September 25, 2007 the $picpath Variable I think will be the Path to the Location of the File maybe ?? $picPath = "C:\myDocuments\Picture01.jpg"Correct. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ENTERg Posted September 25, 2007 Author Share Posted September 25, 2007 it was so simple guys sorry 4 the trouble.how can you create a second label and how can you make this labels run a program ?i s there a way for the label NOT to have white background ? Link to comment Share on other sites More sharing options...
Tasmania Posted September 25, 2007 Share Posted September 25, 2007 I think this post might help you.http://www.autoitscript.com/forum/index.php?showtopic=32299 Link to comment Share on other sites More sharing options...
ENTERg Posted September 25, 2007 Author Share Posted September 25, 2007 u mean the autoed ? Link to comment Share on other sites More sharing options...
martin Posted September 25, 2007 Share Posted September 25, 2007 it was so simple guys sorry 4 the trouble.how can you create a second label and how can you make this labels run a program ?i s there a way for the label NOT to have white background ?Zedna might have been a bit blunt but you should have taken notice of what he said.You have to look at each line of the code, look up the function names in the help file, struggle to understand every line, then try changing something that you think you understand and see if it has the effect you expected and so on. Then try to add something of your own.If and when you have been reduced to tears then post the code you have problems with and ask for help. At the moment I feel that you are not making as much effort to write your own script as I am, and that's where I stop. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
ENTERg Posted September 25, 2007 Author Share Posted September 25, 2007 ok thx i ll try to do this ... :) Link to comment Share on other sites More sharing options...
Zedna Posted September 26, 2007 Share Posted September 26, 2007 (edited) I was angry because martin posted almost whole needed code and you instead of looking at used functions in the helpfile (their arguments and so on) just posted another demand for basic thing. If martin wouldn't posted his code snippet I would probably help you by say AutoIt function names needed for your question so you may look into helpfile and reuse examples from there. I'm helpfull man but I have my psycho limits too :"> Edited September 26, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
ENTERg Posted September 27, 2007 Author Share Posted September 27, 2007 np zedna 4 me ... i just see it quite difficult...nevermind thx i ll keep trying Link to comment Share on other sites More sharing options...
ENTERg Posted September 27, 2007 Author Share Posted September 27, 2007 i make some changes in the label the "1st part" of my script look like this: #include <GUIConstants.au3> HotKeySet("{ESC}","Exit1") $Form1 = GUICreate("Form1", @DesktopWidth, @DesktopHeight, 0,0,$WS_POPUP,$WS_EX_TOPMOST) $picPath = "C:\1.jpg" $Pic1 = GUICtrlCreatePic($picPath, 0, 0, @DesktopWidth, @DesktopHeight) $Label1 = GUICtrlCreateLabel("Label1", 272, 264, 83, 33,) GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) the 2nd part i changed it to this : While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $msg = $Label1 Run('Notepad.exe') ; Will Run/Open Notepad Exit EndSwitch WEnd Func Exit1() Exit EndFunc i didn t find anywhere the $Nmsg and i change it to msg. my problem is that the notepad runs without pressing the "label".it runs automatically. how can i make the label to "run a program? and maybe when i reach the cursor there to change from a cursor to a hand (like when you execute a window at the internet).is there a way to b like this ? (i made 2 much trouble in here) Link to comment Share on other sites More sharing options...
Zedna Posted September 29, 2007 Share Posted September 29, 2007 (edited) #include <GUIConstants.au3> $Form1 = GUICreate("Form1", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP, $WS_EX_TOPMOST) $picPath = "C:\1.jpg" $Pic1 = GUICtrlCreatePic($picPath, 0, 0, @DesktopWidth, @DesktopHeight) GUICtrlSetState(-1, $GUI_DISABLE) $Label1 = GUICtrlCreateLabel("Label1", 272, 264, 83, 33) GUICtrlSetCursor(-1,0) GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $Label1 GUISetCursor(15,1) Run('Notepad.exe') ; Will Run/Open Notepad GUISetCursor(2) Exit EndSwitch WEnd Edited September 29, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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