Load layout from command line?

Suggestions and feature requests.
Locked
Message
Author
MilesAhead
Posts: 33
Joined: 09.12.2007, 17:30
Contact:

Load layout from command line?

#1 Post by MilesAhead » 11.08.2008, 22:14

If not possible already(can't find ref. to what command line params are implemented) it would be cool to load the named layout off the command line during startup. Then I could create a dedicated shortcut or alias to start with multiple tab layout instead of load, click layouts, then select.

MilesAhead
Posts: 33
Joined: 09.12.2007, 17:30
Contact:

AutoIt3 Workaround

#2 Post by MilesAhead » 13.08.2008, 00:00

This little AutoIt3 script will do the job until/if the command line option is available:

Code: Select all


#cs ----------------------------------------------------------------------------
	
	AutoIt Version: 3.2.12.1
	Author:         MilesAhead
	
	Script Function: launch FreeCommander then open particular Layout.
	
	Note that Send("!2") sends Alt+2 to the active window.  Change the
	Alt key combination to open the Layout you want.
	
	PsuedoCode: If FreeCommander not running, launch it, else set it as
	the active window.  Send Alt+2 (or some other) key combination to
	it in order to open the desired Layout.
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
Opt("WinTitleMatchMode", 2)
;use path to FreeCommander.exe on your machine
$freeCommander = "C:\Program Files\FreeCommander\FreeCommander.exe"
If Not ProcessExists("FreeCommander.exe") Then
	ShellExecute($freeCommander)
Else
	WinActivate("FreeCommander")
EndIf
WinWaitActive("FreeCommander")
Send("!2")
Exit

Bearded Kirklander
Posts: 250
Joined: 25.07.2008, 12:54

#3 Post by Bearded Kirklander » 13.08.2008, 00:40

Wow - I have never heard of AutoIt before. It looks pretty cool. Thanks for the tip - I gotta check it out!

Hey - is it possible to use something like AutoIt to deal with nagware screens? Like for DVDFab HD Decrypter (freeware but has that new nag screen)

Thanks

MilesAhead
Posts: 33
Joined: 09.12.2007, 17:30
Contact:

lots of odds and ends

#4 Post by MilesAhead » 13.08.2008, 07:47

Bearded Kirklander wrote:Wow - I have never heard of AutoIt before. It looks pretty cool. Thanks for the tip - I gotta check it out!

Hey - is it possible to use something like AutoIt to deal with nagware screens? Like for DVDFab HD Decrypter (freeware but has that new nag screen)

Thanks
AutoIt3 is good for lots of Windows odds and ends. Not only is it free, there's a forum where you can ask questions if you get stuck. For more info you should go there:



http://www.autoitscript.com/forum/index.php?

Bearded Kirklander
Posts: 250
Joined: 25.07.2008, 12:54

#5 Post by Bearded Kirklander » 13.08.2008, 17:01

Thanks much.

MilesAhead
Posts: 33
Joined: 09.12.2007, 17:30
Contact:

#6 Post by MilesAhead » 13.08.2008, 20:25

Bearded Kirklander wrote:Thanks much.
You're welcome. Hope you have fun with it. :)

btw I posted a bit better version on the AutoIt3 Forum. This one prompts for the location of FreeCommander.exe on first run and stores the location in an .ini file. Here's a link to the post:

http://www.autoitscript.com/forum/index ... opic=78238

Locked

Who is online

Users browsing this forum: No registered users and 8 guests