mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 106
S
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
could a script be made where i log on windows xp and then mirc starts up atuomaticly?

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
A mIRC script can't know when you login to Windows since mIRC isn't running when you login to Windows.

Just make a link to mirc.exe in the Startup folder of your Start Menu or alternately create a registry entry in either:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
First of all put qwerty's $regwrite in remote.

Code:
alias regwrite {
  var %a = regwrite $+ $ticks
  .comopen %a WScript.Shell
  if $comerr { return 0 }
  if d isin $3 { var %3 = REG_DWORD, %type = ui4 }
  elseif b isin $3 { var %3 = REG_BINARY, %type = ui4 }
  else { var %3 = REG_SZ, %type = bstr }
  if $com(%a,RegWrite,3,bstr,$1,%type,$2,bstr,%3) { 
    .comclose %a
    return 1 
  }
  .comclose %a
  return 0
}


Now type:

Code:
//.echo -q $regwrite(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\mIRC\,$+(",$mircexe,"),s)

L
LostShadow
LostShadow
L
Would that work for other os's? Do you have one for Win98 and 2000?

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
I don't know, you'll have to try it.

C
CtrlAltDel
CtrlAltDel
C
Quote:
Would that work for other os's? Do you have one for Win98 and 2000?


a shortcut to the mirc.exe in the startup folder?

D
DaveC
DaveC
D
thats ok for 2k and 98
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Quote:
Quote:
Would that work for other os's? Do you have one for Win98 and 2000?


a shortcut to the mirc.exe in the startup folder?


Heh... that's what I was thinking. Why suggest someone go through the registry? It's easier to just set it up in the startup folder. smile

D
DaveC
DaveC
D
Problem is in locating the the startup folder, since it can be anywhere.

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Both the locating of the startup folder and the writing of shortcuts can be done with COM, on all OS'es from Windows 98 and onwards.

D
DaveC
DaveC
D
And that is starting to get harder than just writting to the reg, thats all im meaning.

Not that its a bad thing, but you can also stop the startup group running. (hold shift down i thinks)

Last edited by DaveC; 11/07/05 05:42 PM.
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
Nah, it's fairly easy, I've done it before laugh

But anyway it's not so important...the OP has been helped, let's move along.

Joined: Feb 2004
Posts: 206
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
Quote:
Problem is in locating the the startup folder, since it can be anywhere.


Please define "anywhere", because on all of the machines that I have looked in, the Startup folder for individual accounts has always been in the same place.
"C:\Documents and Settings\[User name]]Start Menu\Programs\Startup" and if it is not there, then it will be somewhere very close.

In addition - this is a "do once" issue:" The member just creates a shortcut in there, no need for fancy scripting , no need for "dangerous" registry edits. A simple task that even I can do without breaking anything!

Cheers,

DK

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
True. Yes, the startup folder can be in more than one place (each user account, plus all users). However, you only need to place a link in your startup folder, or in the all users one if you want it to start up for every account.

Joined: May 2005
Posts: 106
S
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
ok so i'm an OP hey? i'm gonna like this
lol
jk

anyways could someone just give me the script i've been away got back and flooded with e-mails and server crashed and lots of [censored] so i'm too busy too make it myself


Link Copied to Clipboard