MSFN Forum: Scripts - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Scripts I have no idea where to post this.. Lol Rate Topic: -----

#1 User is offline   TiXer 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 29-November 04

Posted 22 August 2005 - 06:40 AM

So, I have to learn about scripts. How to make/write them, how to make them work and how they'll (hopefully) work when they're done..

The thing is.. I just need something about scripts in general.. Like scripting written in notepad. I'm a total noob when it comes to this area, so any help will be grately accepted!! :D

So if you e.g. know of any basic scripting tutorials or stuff like that, could you post it here?

And, oh.. Sorry about posting this on the general board. I had no idea where it would fit.. :blushing:


#2 User is offline   Andromeda43 

  • Retired PC Tech.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 983
  • Joined: 14-August 05
  • OS:XP Pro x86
  • Country: Country Flag

Posted 22 August 2005 - 07:14 AM

With moderators closing threads, moving threads and threatening to ban users who post in the "incorrect" place,,,,,I'm afraid to post anything. So, I won't.

I have a half dozen topics that need discussion but in the current climate, I won't post anything.

It's time that the moderators realize that this is just a public forum and not an IRS audit.
Where the 'public' is involved, there is always SOME diss-co-ordination anyway.

Good Luck,
B)

PS: Are you talking about an Visual Basic Script?
Here's a very good example of one, to create a Restore Point.
It's name is SetRestorePoint.vbs
******************************************

Set SRP=GetObject("winmgmts:\\.\root\default:Systemrestore")
CSRP=SRP.CreateRestorePoint("Hacked the registry", 0, 100)

*****************************************
I use this little script in my Startup folder, to force a restore point every time I boot up my system.

#3 User is offline   TiXer 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 29-November 04

Posted 22 August 2005 - 07:21 AM

Hehe.. Lol, Andromeda43. :D I think I'll just have to risk it then..!

I'm thinking more in the lines of really, really basic log on scripts and things like that.. Scripts you might need in a normal network like a school or things like that.. If that made any sence.. :lol:

#4 User is offline   Andromeda43 

  • Retired PC Tech.
  • PipPipPipPipPip
  • Group: Members
  • Posts: 983
  • Joined: 14-August 05
  • OS:XP Pro x86
  • Country: Country Flag

Posted 22 August 2005 - 07:41 AM

Gotcha!

Every one of us who really want to DO something with our PC's, can use a VBScript here or there.

I've been real lucky to meet several guys through the internet forums that are very accomplished in writing VBScripts.

A good place for you to start, would be to 'Google' for "VB Scripts".

There is a plethora of places on the net where people post their favorite little 'scripts'.
Who knows,,,,you may even find the very thing you're looking for. Or, find one that's close enough that you could modify.
At the very least, you'll find many good examples of HOW to write your own scripts.

Windows XP has the Visual Basic interpreter built in, so it can run any properly written VBScript that you may want to run.

Good Luck,
Andromeda43
PS: If you find one to print $20 bills on a Color Inkjet printer, please let me know. :thumbup

#5 User is offline   XPerties 

  • MSFN OG Senior
  • Group: Patrons
  • Posts: 2,989
  • Joined: 18-August 01

Posted 22 August 2005 - 09:10 AM

Andromeda43, on Aug 22 2005, 09:14 AM, said:

With moderators closing threads, moving threads and threatening to ban users who post in the "incorrect" place,,,,,I'm afraid to post anything.  So, I won't.

<{POST_SNAPBACK}>



Well maybe if people followed guidelines Mods/admins wouldn't have to be so hard on people.

An example is this topic. It has to do with scripting, so if you scrolled down the main index of the forums you would see:

The Developers Center

I that section you see:

Programming (C++, Delphi, VB, etc.)
Code snippets, tutorials, and help on implementing code



It would seem to me (maybe I'm wrong but I doubt it) that this topic would have been better placed in there.

#6 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 August 2005 - 04:19 PM

Topic moved as suggested :)

And hey for the rest of you, you have no reason to fear! If you have any doubts that your topic is posted incorrectly, then just click the "Report Post" button, and send what you think. Then a mod will take care of it.

And no, we dont like to be hard on people, we just end up looking that way.... :(

#7 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,117
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 22 August 2005 - 05:24 PM

prathapml, on Aug 22 2005, 11:19 PM, said:

If you have any doubts that your topic is posted incorrectly, then just click the "Report Post" button
Well that would have been a good idea, but I hadn't seen one of those buttons for months now…have they just re-appeared? are they only available in some forum groups? or have I just been blind?

<Edit>
I am starting to think I may have been slightly blind, since the option only appears to be visible once you are logged in…

Back to the subject, Free interactive Batch Course
<Edit>

This post has been edited by Yzöwl: 25 August 2005 - 02:03 AM


#8 User is offline   TiXer 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 29-November 04

Posted 23 August 2005 - 12:28 AM

@Andromeda:

Quote

PS: If you find one to print $20 bills on a Color Inkjet printer, please let me know. thumbup.gif


I will do that. :lol:

And I'll look into the VBScripts.. :) Thanks.

@XPerties: Well, you see I know nothing about scripts and was thus not sure where to put it.. And since I have all faith in the mods, I didn't see the harm in posting it on the General Discussion board instead of placing it really wrong someplace else! :)

@prathapml: Thanks for moving it! :D

#9 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 August 2005 - 06:22 AM

Yzöwl, on Aug 23 2005, 04:54 AM, said:

I am starting to think I may have been slightly blind, since the option only appears to be visible once you are logged in…<{POST_SNAPBACK}>
Take a bit of rest, relax some... :)
I remember having playfully asked about whether you ever sleep - Now I'm beginning to think you really don't sleep much!



@TiXer
You could check out command-line scripts (via batch-files) as well - for example:
http://www.madfisher...s/tutorial.html

#10 User is offline   TiXer 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 29-November 04

Posted 23 August 2005 - 07:12 AM

Thanks prathapml! :D

This post has been edited by TiXer: 23 August 2005 - 07:13 AM


#11 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

Posted 23 August 2005 - 07:20 AM

Batches are great for beginning! After then I would switch to JScript/VBScript and later (after Vista) to MSH...

#12 User is offline   gunsmokingman 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,991
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 23 August 2005 - 09:29 AM

Simple Message Box In VBS, that ask if you want to open up
Hey Script Guys! web page. This is a good place to start to learn
about VBS scripts.

Quote

 
  Dim Act, Gsm, UName
 
  '''' Objects For The Script
  Set Act = CreateObject("Wscript.shell")
  UName = Act.ExpandEnvironmentStrings("%UserName%")
 
  '''' This Is Using A Popup Instead Of A Msgbox, The Popup, Has A Built In Timer Function
  '''' The Time Out Is Set At 15 Seconds
  Gsm = Act.Popup(Uname & ", Would You Like To Open," &_
  vbCrLf & "Hey Scripts Guys Web Page?" & vbCrLf & "Press Yes To Open The Web Page" &_
  vbCrLf & "No To Exit This Script" & vbCrLf & "If Nothing Is Selected Then" &_
  vbCrLf & "Then The Defualt Time-Out Will" & vbCrLf & "Close This Script", 15,"Demo YesNo Time Out", 4 + 64)
  '''' Below Here Is Where We Make The Selection
 
  '''' 6 Is The Return Value For Yes
  If Gsm = 6 Then
  Act.Run("http://www.microsoft.com/technet/scriptcenter/resources/qanda/hsgarch.mspx")
  End If
 
  '''' 7 Is The Return Value For No
  If Gsm = 7 Then
  Act.Popup UName & ", Has Selected To Exit The Script", 5,"Exit The Script", 0 + 32
  End If
 
   '''' -1 Is The Return Value For The Time Out
  If Gsm = -1 Then
  Act.Popup UName & ", The Defualt Time Out Occur" & vbCrLf & "Preparing To Exit", 5,"Exit The Script", 0 + 32
  End If

This post has been edited by gunsmokingman: 23 August 2005 - 09:31 AM


#13 User is offline   spiritpyre 

  • Grand Poobah
  • PipPip
  • Group: Members
  • Posts: 191
  • Joined: 28-April 05

Posted 24 August 2005 - 11:02 PM

or if you want to get going right away I'd say AutoIt is pretty good. Its really simple (but aren't all scripting? lol) and comes with a big help file that has all the reference you're likey to need.

#14 User is offline   TiXer 

  • Member
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 29-November 04

Posted 26 August 2005 - 02:20 AM

Thanks for all the help!! :thumbup

#15 User is offline   Fredledingue 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,139
  • Joined: 10-February 05
  • OS:98SE
  • Country: Country Flag

Posted 28 August 2005 - 03:05 PM

VBscript is much easier than batch (BAT, DOS), but it's true that DOS is the must-known language for any self-respecting geek.

I almost completely learned VBS by googling stuffs like "open web page vbs vb script"... and I almost found how to's.

Autoit is also very good, but require installing programs, while VBS don't at least in modern windows versions. But autoIt is very similar to vbscript.
You can also use autoitX in vbs, if you feel need it.

http://visualbasicscript.com/

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy