Author Topic: Trial Reset  (Read 624 times)

morbid

  • Trial Moderator
  • Junior
  • ***
  • Posts: 61
  • Reputation +0/-0
  • I own you
  • Location: I'm probably standing right behind you.
    • View Profile
Trial Reset
« on: February 24, 2011, 07:32:56 pm »
Just a simple resetting of your trial sub. with mIRC I used it for the longest but then I paid for it.


FYI: You don't need this snippet if you have a paid version.[/i]


Code: [Select]
alias trial {
  if ($readini($mircini,about,portable) == yes) {
    remini $qt($mircini) user lastrun
  }
  else {
    comopen trial WScript.Shell
    comclose trial $com(trial,RegDelete,3,bstr,HKEY_CURRENT_USER\Software\mIRC\LastRun\)
  }
  echo -s Now you can restart mIRC
}
 

Type /trial
and then you will see this

Quote
* Opened Com 'trial' (WScript.Shell)
-
* Closed Com 'trial'
-
Now you can restart mIRC

Share on Bluesky Share on Facebook


Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Trial Reset
« Reply #1 on: February 25, 2011, 01:15:38 pm »
Not working for me, morbid.

morbid

  • Trial Moderator
  • Junior
  • ***
  • Posts: 61
  • Reputation +0/-0
  • I own you
  • Location: I'm probably standing right behind you.
    • View Profile
Re: Trial Reset
« Reply #2 on: February 25, 2011, 04:39:55 pm »
Not working for me, morbid.

hm. maybe mirc overwrite this ini-key when exit. just check [about] and [user] section in your $mircini if you install mirc in portable mode, or HKEY_LOCAL_MACHINE\SOFTWARE\mIRC\LastRun in registry editor (Start -> Run -> regedit).



Or you can also just go to start then Run > Regedit > current_user > Software > Delete the mirc folder.

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Trial Reset
« Reply #3 on: February 26, 2011, 07:22:21 am »
Thanks, the regedit works!