Jump to content

Scite commands for AutoIt


Recommended Posts

Hey all,

Ive been using Autoit for about a month now, and im working on a little project.

Its going very well but at one point i get stuck, I hope you can help me with that

I want to be able to open a script with Scite. I want AutoIt to do this for me. I COULD simulate with mouseclicks, but i dont want that.

So ive got 2 problems:

- A command to open a script with scite e.g. RunWithScite ("myscript.au3") or whatever you can come up with and i need a Notepad variation of that also e.g. RunWithNotepad ("myscript.au3")

-I need to detect where scite is installed on a system, so i can make sure people have Scite installed, and i can undertake actions depending on that

I just dont find those mouse simulations nice, so i was wondering if you guys have any ideas

I have no code examples for these problems, cause i have absolutely no idea

Hope you can help me out!

Link to comment
Share on other sites

FileChageDir ( RegRead ( "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir" ) )

If Not FileExists ( "SciTe" ) Then
MsgBox ( 64, "Error", "SciTe is not installed, or it could not be found." )
Exit
EndIf
$location = FileOpenDialog ( "Locate au3 Script", @MyDocumetsDir, "AutoIt Scripts (*.au3;*.aut), 2 )
Run ( "SciTe\SciTe.exe " & $location )

untested.

or you could change this line:

FileOpenDialog ( "Locate au3 Script", @MyDocumetsDir, "AutoIt Scripts (*.au3;*.aut), 2 )

to the location of the file you want to open.

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

I'm not really sure what you are trying to achive. Why not put a shortcut to both SciTe and Notepad in your "Send To" folder, and then you can right click your file and choose which application to send it to?

Edited by Confuzzled
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...