Sign in to follow this  
Followers 0
Rolstoelfreak

Scite commands for AutoIt

3 posts in this topic

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0