AutoHotkey Community

It is currently May 24th, 2012, 1:56 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 25th, 2005, 5:07 am 
Offline

Joined: March 2nd, 2005, 5:45 am
Posts: 8
Hi guys!

I often use the run dialog to launch stuff, much rather than navigating through a more or less long list of entries in the start menu.

I had the Win+R key (launched through an AHK script) on a seperate key on my keyboard and on a mouse button, cause it's just more convenient and faster that way.

It happened that the Run dialog wouldn't display when I was in VMware or when I was using the Remote Desktop feature. The Run dialog instead then displayed in the VMware guest OS or on the remote computer I was on.

So I decided to put a little script together which replaces the Run dialog. Check it out:

Code:
#SingleInstance force

IniRead, wert, run.ini, Default, Run

InputBox, eingabe, Run command, , , 200, 100, , , , , %wert%

if ErrorLevel <> 0
  ExitApp

IniWrite, %eingabe%, run.ini, Default, Run

Run, %eingabe%, , UseErrorLevel

if ErrorLevel = ERROR
  SoundBeep


I use the run.ini to store the last entry I made in the InputBox, just like the Windows-Run dialog would do. I haven't implemented a history yet though. :wink:

The run.ini file looks like this:

Code:
[Default]
Run=calc


Comments or suggestions are welcome.

~modah


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2005, 9:40 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
I also use Run a lot. Because Run isn't a program or a process (maybe something built-into Windows itself) it can't be launched with a hotkey normally. However, if you drag the Run icon from the start menu to your desktop, you can right-click>properties it to add a Windows hotkey (or make an ahk hotkey).

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 25th, 2005, 6:38 pm 
Offline

Joined: March 2nd, 2005, 5:45 am
Posts: 8
nice idea. i checked it out. in vmware it has no effect at all, the hotkey is just ignored. when in remote desktop the hotkey works, but the run dialog immediately looses focus after it opens. so that's of no use for me.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: cmulcahy, Exabot [Bot], tomoe_uehara, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group