Sign in to follow this  
Followers 0
Raffle

question

6 posts in this topic

i want to make a autoit³ script that will be kind or like a text based os that is invisible.

when i type "/" just looking at the desktop i want to see a little thing appear where i can type.

and then if i type in "run notepad" it will do what the command line

run("notepad.exe") but doing this without typing the .exe part.

please help me here i am new to autoit³

i use the default scite editor

~®affle

Share this post


Link to post
Share on other sites

i want to make a autoit³ script that will be kind or like a text based os that is invisible.

when i type "/" just looking at the desktop i want to see a little thing appear where i can type.

and then if i type in "run notepad" it will do what the command line

run("notepad.exe") but doing this without typing the .exe part.

please help me here i am new to autoit³

i use the default scite editor

~®affle

Why not use Send("#r")?

Share this post


Link to post
Share on other sites

i know that "!" is alt but other then that im clueless can you please tell me what the others mean or show me where i can find out?

Share this post


Link to post
Share on other sites

It sounds like you'll want to use HotKeySet() to make the '/' key run a function. The function would probably be an input box to get the command then you parse it out using string commands or else make the input compatable with the windows cmd directly.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I am assuming you are doing something like command prompt

May be

$x = Notepad

If $typed_message = $x THen

Run(notepad.exe)

Endif

Note - $typed messed will not just work like that. You will have to set up a function that will check to see what is typed

may be something like this:

If _Ispressed(whatever enter is here) Then

$typed_message = GuiCtrlread($imputbox)

GuiCtrlsetdata($inputbox, "")

Endif

Not tested - This is just ment to give you ideas

Cool idea

Edited by Dethredic

"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

i know that "!" is alt but other then that im clueless can you please tell me what the others mean or show me where i can find out?

If you want to create your own GUI then listen to Dethredic. If you want just use the hotkey stuff then use the following:

HotKeySet("/", "_Run")

HotKeySet("{END}", "Quit")

While 1

WEnd

Func _Run()

Send("#r")

EndFunc

Func Quit()

Exit

EndFunc

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