yugioh47 Posted April 12, 2015 Share Posted April 12, 2015 hi there, i've found a script online for the computer to talk to me. dose anyone know where the code for put a picture.jpg in this script: Set Sapi = Wscript.CreateObject("SAPI.SpVoice")dim strif hour(time) < 12 thenSapi.speak "Good Morning yugioh47 "elseif hour(time) > 12 thenif hour(time) > 16 thenSapi.speak "Good evening yugioh47 "elseSapi.speak "Good afternoon yugioh47 "end ifend ifend if thanks Link to comment Share on other sites More sharing options...
drakulaboy Posted April 12, 2015 Share Posted April 12, 2015 (edited) Open notepad, paste the code you have, File>Save As, your_desired_name.VBS , and don't forget to save not like Text Document but All files , and don't forget about ,VBS at the end save it to desktop and doubleclick it , Enjoy Edited April 12, 2015 by drakulaboy Link to comment Share on other sites More sharing options...
yugioh47 Posted April 12, 2015 Author Share Posted April 12, 2015 Open notepad, paste the code you have, File>Save As, your_desired_name.VBS , and don't forget to save not like Text Document but All files , and don't forget about ,VBS at the end save it to desktop and doubleclick it , Enjoy yes, i'm looking to put a code for a picture in TEXT.VBS by which i don't know the script code for the picture. Link to comment Share on other sites More sharing options...
drakulaboy Posted April 12, 2015 Share Posted April 12, 2015 maybe you want to open a picture? more details what do you want to achieve) Link to comment Share on other sites More sharing options...
yugioh47 Posted April 12, 2015 Author Share Posted April 12, 2015 maybe you want to open a picture? more details what do you want to achieve)what i'm look for is that... open at startup it will then close after everything is loaded. that's what i want. Link to comment Share on other sites More sharing options...
Tripredacus Posted April 13, 2015 Share Posted April 13, 2015 Sounds like you want to add a splash image? Link to comment Share on other sites More sharing options...
yugioh47 Posted April 13, 2015 Author Share Posted April 13, 2015 (edited) Sounds like you want to add a splash image?yes i do. thank you. Edited April 14, 2015 by yugioh47 Link to comment Share on other sites More sharing options...
yugioh47 Posted April 14, 2015 Author Share Posted April 14, 2015 (edited) can some please help me modify this script for splash image please? Edited April 14, 2015 by yugioh47 Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 14, 2015 Share Posted April 14, 2015 You can not do what you want with an image and VBSHowever here is a work around this is a HTA that youcould add a image to it. The HTA will close after theVBS script is executed.SplashScreen.hta<TITLE>Splash Screen</TITLE><HTA:APPLICATION ID='SplashScreen' Scroll='No' SCROLLFLAT ='No' SingleInstance='Yes' SysMenu='No' ShowInTaskBar='No' MaximizeButton='No' MinimizeButton='nO' Border='Thick' BORDERSTYLE ='complex' INNERBORDER ='Yes' Caption='No' WindowState='Normal' APPLICATIONNAME='Splash' Icon='%SystemRoot%\explorer.exe'><STYLE Type="text/css"> Body{ BackGround-Color:#00a4a4;Text-Align:Center;Vertical-Align:Top; Font-Size:10.05pt;Font-Weight:Bold;Color:#001254; Font-Family:Arial,Tahoma,Comic Sans MS,Segoe Ui; Margin-Top:1;Margin-Bottom:1;Margin-Left:4;Margin-Right:4; Padding-Top:1;Padding-Bottom:1;Padding-Left:4;Padding-Right:4; Border-Top:2px Solid #a6a29e;Border-Bottom:3px Solid #cbc7c3; Border-Left:2px Solid #b2aeaa;Border-Right:3px Solid #bcb8b4; }</STYLE><SCRIPT LANGUAGE="VBScript">'-> Resize And Move Window Dim Wth :Wth = int(325) Dim Hht :Hht = int(125) window.ResizeTo Wth, Hht MoveTo ((Screen.Width / 2) - (Wth / 2)),((Screen.Height / 2) - (Hht / 2))'-> Window Onload And Execute The Code Then Close Window Function Window_onLoad() Set Sapi = CreateObject("SAPI.SpVoice") If hour(time) < 12 Then Sapi.speak "Good Morning yugioh47 " If hour(time) > 12 And hour(time) < 16 Then Sapi.speak "Good afternoon yugioh47" if hour(time) > 16 Then Sapi.speak "Good evening yugioh47" window.close() End Function</SCRIPT><BODY>Splash Screen</BODY>SplashScreen.zip Link to comment Share on other sites More sharing options...
jaclaz Posted April 14, 2015 Share Posted April 14, 2015 And the image could be -say - an animated gif like: or: jaclaz Link to comment Share on other sites More sharing options...
yugioh47 Posted April 14, 2015 Author Share Posted April 14, 2015 (edited) where do i put the animated picture on this script? can you give me an example? Edited April 14, 2015 by yugioh47 Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 14, 2015 Share Posted April 14, 2015 Just Google HTA add a animated gif Link to comment Share on other sites More sharing options...
Tripredacus Posted April 14, 2015 Share Posted April 14, 2015 where do i put the animated picture on this script? can you give me an example? You can do it in HTML, in the HTA you can see the Body section. Link to comment Share on other sites More sharing options...
yugioh47 Posted April 14, 2015 Author Share Posted April 14, 2015 I don't understand hta. can you simplify it for me for where to put the destination and then animated image? like this c:\temp\hal 2000.gift? Link to comment Share on other sites More sharing options...
Tripredacus Posted April 15, 2015 Share Posted April 15, 2015 Here is w3schools, showing how to put a picture in HTML:http://www.w3schools.com/html/html_images.asp 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