Load layout from command line?
-
MilesAhead
- Posts: 33
- Joined: 09.12.2007, 17:30
- Contact:
Load layout from command line?
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
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
-
MilesAhead
- Posts: 33
- Joined: 09.12.2007, 17:30
- Contact:
lots of odds and ends
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: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
http://www.autoitscript.com/forum/index.php?
-
MilesAhead
- Posts: 33
- Joined: 09.12.2007, 17:30
- Contact:
You're welcome. Hope you have fun with it.Bearded Kirklander wrote:Thanks much.
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
Who is online
Users browsing this forum: Bing [Bot] and 12 guests