Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Development environment for AHK


  • Please log in to reply
No replies to this topic
Ripper
  • Members
  • 17 posts
  • Last active: Jun 10 2008 07:32 PM
  • Joined: 24 Oct 2007
I have progged a little "Development environment" for AHK
I use as Editor PSPad
and as gui-edit SmartGui

Posted Image
start:
IniRead, Editor, Konfig.ini,Editor,Dir
IniRead, GuiEditor, Konfig.ini,GuiEditor,Dir
IniRead, Konfig, Konfig.ini,Konfig,Value
if Konfig=1
{
run,%Editor%
run,%GuiEditor%
Gui, Add, Button, x6 y5 w100 h30 gSmartGui, SmartGui
Gui, Add, Button, x116 y5 w100 h30 gCode, Code
Gui, Add, Button, x226 y5 w100 h30 gGuiClose, Exit
Gui, Show, x433 y234 h39 w332, SmartCodeGui
WinWait, SmartGUI Creator
WinMaximize, SmartGUI Creator
WinSet, TransColor, Off, SmartGUI Creator
WinSet, TransColor, 0x716f64 220, SmartGUI Creator
WinActivate, SmartGUI Creator
WinWait, ahk_class TfPSPad
WinMaximize, ahk_class TfPSPad
WinSet, TransColor, Off, SmartGUI Creator
WinActivate, ahk_class TfPSPad
Gui +AlwaysOnTop +ToolWindow
Return

GuiClose:
WinSet, TransColor, Off, SmartGUI Creator
WinKill,SmartGUI Creator
WinKill,ahk_class TfPSPad
ExitApp
SmartGui:
WinActivate, SmartGUI Creator
WinSet, TransColor, Off, SmartGUI Creator
WinSet, TransColor, 0x716f64 220, SmartGUI Creator
return
Code:
WinActivate, ahk_class TfPSPad
return
}
Konfig:
FileSelectFile,Editor,3,,Select the PSPad.exe,PSPad.exe
IniWrite,%Editor%, Konfig.ini,Editor, Dir
FileSelectFile,GuiEditor,3,,Select the SmartGUI.exe,SmartGUI.exe
IniWrite,%GuiEditor%, Konfig.ini,GuiEditor,Dir
IniWrite, 1, Konfig.ini,Konfig,Value
Gosub, start
return