Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need some help with AutoIt?

Featured Replies

Hi,

I am trying to auto-associate mIRC with irc:// links. the only way to accomplish this seems to be to open mIRC, and then close it.

can anyone make a AutoIt Script (exe) to open: "%systemdrive%\Program Files\sysreset\mirc.exe", and then close it once it loads?


  • Author
Run("%systemdrive%\Program Files\sysreset\mirc.exe")

sleep(5000)

winclose("mIRC")

EXIT

I used this code, but it doesn't work...

it says it cannot find the file.

however, i checked a million times, that is the correct path.

can autoit use %systemdrive%? or maybe the problem is the space between 'Program' and 'Files'??

Here is a screenshot of the error, as well as the Program directory to show the file exists.

_error.gif

Edited by a06lp

in AUTOIT you can't use the system variables like that it needs to process them differently, try :

Run( @ProgramFilesDir & "\sysreset\mirc.exe")

sleep(5000)

winclose("mIRC")

EXIT

That should help the context for you

Welcome.

I wonder though if you couldn't just run a Registry file to accomplish the same thing, find out which key is being hit to make the association, and just use that instead. Would do away with having to run the program once.

Ahh well something to look into. Enjoy

  • 2 weeks later...
  • Author

Run( @ProgramFilesDir & "\sysreset\mirc.exe")
sleep(5000)
winclose("mIRC")
EXIT

ok, slight problem with this method.

works perfectly, in that it opens mIRC, and then closes it.

however, when testing it on a clean install, i noticed that when mIRC opens, the "Windows Firewall" opens and asks what to do (unlock, etc.).

Is there any way to add: "If windows firewall opens, then close it", so that IF the window opens, it is closed by this same autoit script?

Run( @ProgramFilesDir & "\sysreset\mirc.exe" )
WinWaitActive( "mIRC" )
WinClose( "mIRC" )

If WinExists( "Windows Firewall" ) Then WinClose( "Windows Firewall" )

EXIT

  • Author

the above code has the right idea, but didn't work.

here is the working modified code:

Run( @ProgramFilesDir & "\sysreset\mirc.exe" )
WinWaitActive( "mIRC" )
WinClose( "mIRC" )

If WinExists( "Windows Security Alert" ) Then WinClose( "Windows Security Alert" )

EXIT

Using a batch-file is far easier for future changes, ease-of-use, etc.

start %ProgramFiles%\mIRC\mirc.exe
REM to wait 10 seconds
sleep 10
pskill mirc.exe

get pskill

get sleep

The best part is, you can put those additional EXEs in your System32 folder and use them later on for other purposes as well.

a06lp -

Well didn't know the window title. :)

prathapml -

Yes those are handy, but they don't close the window that he's needing closed...or at least not with the code shown...or the extent of my know how.

They do actually. :)

The commands will start mirc.exe and close it. If I'm not mistaken, that's what is needed?

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.