Nice program. Really.
I'm getting a funny error: when I open your script from Xplorer2 it works fine, but when I try to launch it from another script...I get
Quote:
#Include file "CR_Util.ahk" cannot be opened.
CR_Util.ahk is there, in the same directory as RedStone.ahk...any thoughts?
I wanted to do away with the windows start menu and put a redstone link there. Here's what I did:
(I'm using XP with a classic theme, so it may not look right with the luna theme.)
Code:
Menu, MySubMenu, Add, My Start Button
Menu, tray, add, Options, :MySubMenu
StoneY := A_ScreenHeight - 30
Control, Disable, , Button1, ahk_class Shell_TrayWnd
Control, Hide, , Button1, ahk_class Shell_TrayWnd
SplashImage, 2:C:\freeware\system utils\AutoHotkey\Apps\Redstone\res\Redstone.bmp, B H30 W56 X0 Y%StoneY%
StartButtonShown = 0
; ...
My Start Button:
if StartButtonShown = 1
{
Control, Hide, , Button1, ahk_class Shell_TrayWnd
Control, Disable, , Button1, ahk_class Shell_TrayWnd
SplashImage, 2:C:\freeware\system utils\AutoHotkey\Apps\Redstone\res\Redstone.bmp, B H30 W56 X0 Y%StoneY%
StartButtonShown = 0
}
else
{
Control, Show, , Button1, ahk_class Shell_TrayWnd
Control, Enable, , Button1, ahk_class Shell_TrayWnd
SplashImage, 2:Off
StartButtonShown = 1
}
return
/*
note: where you see "My Start Button", these are not spaces between the words. AHK doesn't like that
for some reason. Instead, I used " ", the invisible character, entered by holding down the
Alt key and hitting 0 1 6 0 on the Numpad.
*/
~$lbutton::
MouseGetPos, X, Y
if (X <= 56 && Y >= %StoneY%)
Run C:\freeware\system utils\AutoHotkey\Apps\Redstone\RedStone.ahk
}
return
There's the icon:
WIP...
The two issues...
First, there's the one I mentioned above. Second, even if I specify AlwaysOnTop, the splash image will fall below the taskbar, turning a very funny color (probably wouldn't be able to see it at all if the taskbar wasn't transparent). I'll figure it out eventually; I
know I've faced this exact same problem before...
Thanks for the awesome launcher.
