AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Development environment for AHK

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Ripper



Joined: 24 Oct 2007
Posts: 17
Location: Germany

PostPosted: Tue Nov 13, 2007 5:14 pm    Post subject: Development environment for AHK Reply with quote

I have progged a little "Development environment" for AHK
I use as Editor PSPad
and as gui-edit SmartGui


Code:

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group