 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| What should happen to this project? |
| Let's work on it, I'll help |
|
11% |
[ 4 ] |
| Keep it alive |
|
85% |
[ 30 ] |
| Let it go |
|
0% |
[ 0 ] |
| I don't care |
|
2% |
[ 1 ] |
|
| Total Votes : 35 |
|
| Author |
Message |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sun Jul 01, 2007 1:05 pm Post subject: |
|
|
I tested the new format and stealer on the Calculator. It works, and the speed the final script starts is nearly the same as if written in real AHK code. Compare these two scripts:
As a LilBuilder project: | Code: | ;Example how to build guis: LB_BuildGui([Gui_ID]) - if Gui_ID is not specified, all Guis in project are built
#NoEnv
SetBatchLines, -1
Start := A_TickCount
Rechner_LB_BuildGui() ;build all guis with a single function call
End := A_TickCount
Msgbox, % "Time = " End - Start
Return
;Example to close guis
GuiClose:
ExitApp
Return
/* ##### section of Li'l Builder project functions #####
!!! Don't edit above line !!!
This comment is used to find this section of the script by Li'l Builder
It is also not recommended to modify the functions or data in this section,
since the changes might get overwritten, once you open this script with
Li'l Builder again.
*/
;create complete gui (one or all in project) with all its controls
Rechner_LB_BuildGui(GuiIDtoCreate = 0){
If !GuiIDtoCreate {
ListOfGuiID := Rechner_LB_GetPropValue("Project", "ListOfGuiID", A_Space)
Loop, Parse, ListOfGuiID, |, A_Space
Rechner_LB_CreateGui(A_LoopField)
}Else
Rechner_LB_CreateGui(GuiIDtoCreate)
}
;create a gui
Rechner_LB_CreateGui(GuiID){
;get all gui properties
AllGuiProps := Rechner_LB_GetPropValue("Gui " GuiID)
Loop, Parse, AllGuiProps, `n
{
Pos := InStr(A_LoopField,"=")
StringLeft, Prop, A_LoopField, Pos - 1
StringTrimLeft, Value, A_LoopField, Pos
%Prop% := Value
}
;collect gui options
Options := (Toolwindow ? " +Toolwindow" : "")
. (Resize ? " +Resize" : "")
. (Label ? " +Label" Label : "")
. (AlwaysOnTop ? " +AlwaysOnTop" : "")
;apply gui options
Gui, %GuiID%: +LastFound %Options%
;make guis HWND global
Rechner_LB_SetVarGlobal("Gui" GuiID "_HWND", WinExist())
;create controls
TabCount = 0
Loop, Parse, OrderOfControls, |, A_Space
Rechner_LB_CreateControl(GuiID, A_LoopField, TabCount)
;collect gui show options
Options := (Hidden ? " Hide" : "")
;show gui
Gui, %GuiID%:Show, %PosSize% %Options%, %Content%
}
;set a specific var global
Rechner_LB_SetVarGlobal(VarName, VarValue){
global
%VarName% = %VarValue%
}
;create a control
Rechner_LB_CreateControl(GuiID, CtrlNumber, ByRef TabCount){
;get all control properties
AllCtrlProps := Rechner_LB_GetPropValue("Control " CtrlNumber)
Loop, Parse, AllCtrlProps, `n
{
Pos := InStr(A_LoopField,"=")
StringLeft, Prop, A_LoopField, Pos - 1
StringTrimLeft, Value, A_LoopField, Pos
%Prop% := Value
}
;collect control options
Options := PosSize " " Options
. (VarName ? " v" VarName : "")
. (Label ? " g" Label : "")
. (Disabled ? " Disabled" : "")
. (Checked ? " Checked" : "")
. (Hidden ? " Hidden" : "")
;add control to gui in global context
Rechner_LB_CreateControlAdd(GuiID, Type, Options, Content)
;collect and apply control options, that can only be applied after creation
;recurse into tab controls
If (Type = "Tab"){
ThisTabCnt := ++TabCount ;increase tab count and memorize it for recursion
Loop, Parse, OrderOfTabPageControls, |, A_Space ;go through all tab pages of tab control
{
ThisTabPage := A_Index
Gui, %GuiID%:Tab, %ThisTabPage%, %ThisTabCnt% ;activate current tab page of current tab control for its controls
OrderOfControls := Rechner_LB_GetPropValue("TabPage " A_LoopField, "OrderOfControls", A_Space)
Loop, Parse, OrderOfControls, |, A_Space ;go through all controls of tab page
If ("Tab" = Rechner_LB_CreateControl(GuiID, A_LoopField, TabCount)) ;create the control
{ ;when control on tab page was a tab control, re-activate current tab page for new controls
Gui, %GuiID%:Tab, %ThisTabPage%, %ThisTabCnt%
}
}
Gui, %GuiID%:Tab ;close tab control for new controls
}
Return Type
}
;add control to gui in global context
Rechner_LB_CreateControlAdd(GuiID, Type, Options, Content){
global
Gui, %GuiID%:Add, %Type%, %Options%, %Content%
}
;anchor controls on gui
Rechner_LB_Anchor(c, a = "", r = false) { ; v3.6 - Titan
static d
GuiControlGet, p, Pos, %c%
If ex := ErrorLevel {
Gui, %A_Gui%:+LastFound
ControlGetPos, px, py, pw, ph, %c%
}
If !(A_Gui or px) and a
Return
i = x.w.y.h./.7.%A_GuiWidth%.%A_GuiHeight%.`n%A_Gui%:%c%=
StringSplit, i, i, .
d := a ? d . ((n := !InStr(d, i9)) ? i9 : "")
: RegExReplace(d, "\n\d+:" . c . "=[\-\.\d\/]+")
Loop, 4
x := A_Index, j := i%x%, i6 += x = 3
, k := !RegExMatch(a, j . "([\d.]+)", v) + (v1 ? v1 : 0)
, e := p%j% - i%i6% * k, d .= n ? e . i5 : ""
, RegExMatch(d, "\Q" . i9 . "\E(?:([\d.\-]+)/){" . x . "}", v)
, l .= p%j% := InStr(a, j) ? (ex ? "" : j) . v1 + i%i6% * k : ""
If r
rx = Draw
If ex
ControlMove, %c%, px, py, pw, ph
Else GuiControl, Move%rx%, %c%, %l%
}
;return the data requested from the project data
Rechner_LB_GetPropValue(Sect, Key = "", Default = "", ProjectData = ""){
If !ProjectData
ProjectData := Rechner_LB_ProjectData()
;if a key is requested, return its value or when not found return the default value
If Key {
re = miUS)\Q[%Sect%]\E.*\R\Q%Key%\E=(?P<Value>.*)(\R|$)
Return RegExMatch(ProjectData, re, Key) ? KeyValue : Default
}
;otherwise return all keys with their values as a text block
re = sU)\Q[%Sect%]\E\R(?P<Value>.*)(\R\[|$)
RegExMatch(ProjectData, re, Key)
Return KeyValue
}
/* ##### end of Li'l Builder project functions #####
!!! Don't edit above line !!!
This comment is used to find this section of the script by Li'l Builder
It is also not recommended to modify the functions or data in this section,
since the changes might get overwritten, once you open this script with
Li'l Builder again.
*/
/* ##### section of Li'l Builder project data #####
!!! Don't edit above line !!!
This comment is used to find this section of the script by Li'l Builder
Only modify the data in this section when you know what you are doing.
!!! Don't edit anything else (code, comments, function and variable definitions) !!!
*/
Rechner_LB_ProjectData(){
;Static ProjectDataPartX variables hold the data of the project.
;Each ProjectDataPartX variable can't hold more then 16383 characters!
;Inside the ProjectDataPartX variables the project/gui/control data is stored in an INI format.
Static Projectdata, ProjectDataPart1 = "
(
[Project]
ExportOnlyData=0
ExportOnlyDataAndFunc=0
ProjectName=NewProject
RunExport=1
ListOfGuiID=1
[Gui 1]
PosSize=x46 y408 w472 h284
AlwaysOnTop=0
Content=Rechner
Hidden=0
Resize=0
Toolwindow=0
OrderOfControls=1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|73|74
[Control 1]
Content=0,
Disabled=0
Hidden=0
Type=Edit
VarName=EdtNew1
PosSize=x3 y18 w458 h23
[Control 2]
Checked=0
Content=Hyp
Disabled=0
Hidden=0
Type=Checkbox
VarName=ChkNew2
PosSize=x69 y83 w51 h16
[Control 3]
Checked=0
Content=Inv
Disabled=0
Hidden=0
Type=Checkbox
VarName=ChkNew3
PosSize=x7 y83 w51 h16
[Control 4]
Disabled=0
Hidden=0
Type=GroupBox
VarName=GrbNew4
PosSize=x3 y71 w126 h33
[Control 5]
Content=Sta
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew5
PosSize=x3 y114 w36 h29
[Control 6]
Checked=0
Content=Hex
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew6
PosSize=x7 y50 w45 h16
[Control 7]
Checked=0
Content=Dez
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew7
PosSize=x57 y50 w45 h16
[Control 8]
Checked=0
Content=Okt
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew8
PosSize=x106 y50 w45 h16
[Control 9]
Checked=0
Content=Bin
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew9
PosSize=x156 y50 w45 h16
[Control 10]
Disabled=0
Hidden=0
Type=GroupBox
VarName=GrbNew10
PosSize=x3 y39 w212 h33
[Control 11]
Disabled=0
Hidden=0
Type=GroupBox
VarName=GrbNew11
PosSize=x216 y39 w245 h33
[Control 12]
Checked=0
Content=Deg
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew12
PosSize=x220 y50 w62 h16
[Control 13]
Checked=0
Content=Rad
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew13
PosSize=x301 y50 w62 h16
[Control 14]
Checked=0
Content=Grad
Disabled=0
Hidden=0
Type=Radio
VarName=RadNew14
PosSize=x382 y50 w62 h16
[Control 15]
Content=Ave
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew15
PosSize=x3 y146 w36 h29
[Control 16]
Content=Sum
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew16
PosSize=x3 y179 w36 h29
[Control 17]
Content=s
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew17
PosSize=x3 y211 w36 h29
[Control 18]
Content=Dat
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew18
PosSize=x3 y244 w36 h29
[Control 19]
Content=F-E
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew19
PosSize=x52 y114 w36 h29
[Control 20]
Content=dms
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew20
PosSize=x52 y146 w36 h29
[Control 21]
Content=sin
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew21
PosSize=x52 y179 w36 h29
[Control 22]
Content=cos
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew22
PosSize=x52 y211 w36 h29
[Control 23]
Content=tan
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew23
PosSize=x52 y244 w36 h29
[Control 24]
Content=(
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew24
PosSize=x91 y114 w36 h29
[Control 25]
Content=Exp
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew25
PosSize=x91 y146 w36 h29
[Control 26]
Content=x^y
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew26
PosSize=x91 y179 w36 h29
[Control 27]
Content=x^3
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew27
PosSize=x91 y211 w36 h29
[Control 28]
Content=x^2
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew28
PosSize=x91 y244 w36 h29
[Control 29]
Content=)
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew29
PosSize=x130 y114 w36 h29
[Control 30]
Content=ln
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew30
PosSize=x130 y146 w36 h29
[Control 31]
Content=log
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew31
PosSize=x130 y179 w36 h29
[Control 32]
Content=n!
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew32
PosSize=x130 y211 w36 h29
[Control 33]
Content=1/x
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew33
PosSize=x130 y244 w36 h29
[Control 34]
Content=MC
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew34
PosSize=x180 y114 w36 h29
[Control 35]
Content=MR
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew35
PosSize=x180 y146 w36 h29
[Control 36]
Content=MS
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew36
PosSize=x180 y179 w36 h29
[Control 37]
Content=M+
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew37
PosSize=x180 y211 w36 h29
[Control 38]
Content=Pi
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew38
PosSize=x180 y244 w36 h29
[Control 39]
Content=7
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew39
PosSize=x229 y114 w36 h29
[Control 40]
Content=4
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew40
PosSize=x229 y146 w36 h29
[Control 41]
Content=1
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew41
PosSize=x229 y179 w36 h29
[Control 42]
Content=0
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew42
PosSize=x229 y211 w36 h29
[Control 43]
Content=A
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew43
PosSize=x229 y244 w36 h29
[Control 44]
Content=8
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew44
PosSize=x268 y114 w36 h29
[Control 45]
Content=5
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew45
PosSize=x268 y146 w36 h29
[Control 46]
Content=2
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew46
PosSize=x268 y179 w36 h29
[Control 47]
Content=+/-
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew47
PosSize=x268 y211 w36 h29
[Control 48]
Content=B
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew48
PosSize=x268 y244 w36 h29
[Control 49]
Content=9
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew49
PosSize=x307 y114 w36 h29
[Control 50]
Content=6
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew50
PosSize=x307 y146 w36 h29
[Control 51]
Content=3
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew51
PosSize=x307 y179 w36 h29
[Control 52]
Content=.
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew52
PosSize=x307 y211 w36 h29
[Control 53]
Content=C
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew53
PosSize=x307 y244 w36 h29
[Control 54]
Content=/
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew54
PosSize=x346 y114 w36 h29
[Control 55]
Content=*
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew55
PosSize=x346 y146 w36 h29
[Control 56]
Content=-
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew56
PosSize=x346 y179 w36 h29
[Control 57]
Content=+
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew57
PosSize=x346 y211 w36 h29
[Control 58]
Content=D
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew58
PosSize=x346 y244 w36 h29
[Control 59]
Content=Mod
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew59
PosSize=x385 y114 w36 h29
[Control 60]
Content=OR
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew60
PosSize=x385 y146 w36 h29
[Control 61]
Content=Lsh
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew61
PosSize=x385 y179 w36 h29
[Control 62]
Content==
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew62
PosSize=x385 y211 w36 h29
[Control 63]
Content=E
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew63
PosSize=x385 y244 w36 h29
[Control 64]
Content=And
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew64
PosSize=x424 y114 w36 h29
[Control 65]
Content=Xor
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew65
PosSize=x424 y146 w36 h29
[Control 66]
Content=Not
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew66
PosSize=x424 y179 w36 h29
[Control 67]
Content=Int
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew67
PosSize=x424 y211 w36 h29
[Control 68]
Content=F
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew68
PosSize=x424 y244 w36 h29
[Control 69]
Content=Rücktaste
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew69
PosSize=x261 y78 w65 h29
[Control 70]
Content=CE
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew70
PosSize=x328 y78 w65 h29
[Control 71]
Content=C
Disabled=0
Hidden=0
Type=Button
VarName=BtnNew71
PosSize=x396 y78 w65 h29
[Control 72]
Disabled=0
Hidden=0
Type=Text
VarName=TxtNew72
PosSize=x184 y78 w27 h26
[Control 73]
Disabled=0
Hidden=0
Type=Text
VarName=TxtNew73
PosSize=x135 y78 w27 h26
[Control 74]
Disabled=0
Hidden=0
Type=Text
VarName=TxtNew74
PosSize=x-5 y279 w2 h2
)" ; end of static ProjectDataPartX variables
;return project data stored in the static PropX variables
;concatenate only once for speed reasons
If ProjectData
Return ProjectData
Return ProjectData := ProjectDataPart1
} ; end of Rechner_LB_ProjectData()
/* ##### end of Li'l Builder project data #####
!!! Don't edit above line !!!
This comment is used to find this section of the script by Li'l Builder
Only modify the data in this section when you know what you are doing.
!!! Don't edit anything else (code, comments, function and variable definitions) !!!
*/
|
And as a real AHK script (generated automaticaly from the above project via export): | Code: | #NoEnv
SetBatchLines, -1
Start := A_TickCount
Gui, 1: +LastFound
Gui1_HWND = WinExist()
Gui, 1:Add, Edit, x3 y18 w458 h23 vEdtNew1, 0,
Gui, 1:Add, Checkbox, x69 y83 w51 h16 vChkNew2, Hyp
Gui, 1:Add, Checkbox, x7 y83 w51 h16 vChkNew3, Inv
Gui, 1:Add, GroupBox, x3 y71 w126 h33 vGrbNew4,
Gui, 1:Add, Button, x3 y114 w36 h29 vBtnNew5, Sta
Gui, 1:Add, Radio, x7 y50 w45 h16 vRadNew6, Hex
Gui, 1:Add, Radio, x57 y50 w45 h16 vRadNew7, Dez
Gui, 1:Add, Radio, x106 y50 w45 h16 vRadNew8, Okt
Gui, 1:Add, Radio, x156 y50 w45 h16 vRadNew9, Bin
Gui, 1:Add, GroupBox, x3 y39 w212 h33 vGrbNew10,
Gui, 1:Add, GroupBox, x216 y39 w245 h33 vGrbNew11,
Gui, 1:Add, Radio, x220 y50 w62 h16 vRadNew12, Deg
Gui, 1:Add, Radio, x301 y50 w62 h16 vRadNew13, Rad
Gui, 1:Add, Radio, x382 y50 w62 h16 vRadNew14, Grad
Gui, 1:Add, Button, x3 y146 w36 h29 vBtnNew15, Ave
Gui, 1:Add, Button, x3 y179 w36 h29 vBtnNew16, Sum
Gui, 1:Add, Button, x3 y211 w36 h29 vBtnNew17, s
Gui, 1:Add, Button, x3 y244 w36 h29 vBtnNew18, Dat
Gui, 1:Add, Button, x52 y114 w36 h29 vBtnNew19, F-E
Gui, 1:Add, Button, x52 y146 w36 h29 vBtnNew20, dms
Gui, 1:Add, Button, x52 y179 w36 h29 vBtnNew21, sin
Gui, 1:Add, Button, x52 y211 w36 h29 vBtnNew22, cos
Gui, 1:Add, Button, x52 y244 w36 h29 vBtnNew23, tan
Gui, 1:Add, Button, x91 y114 w36 h29 vBtnNew24, (
Gui, 1:Add, Button, x91 y146 w36 h29 vBtnNew25, Exp
Gui, 1:Add, Button, x91 y179 w36 h29 vBtnNew26, x^y
Gui, 1:Add, Button, x91 y211 w36 h29 vBtnNew27, x^3
Gui, 1:Add, Button, x91 y244 w36 h29 vBtnNew28, x^2
Gui, 1:Add, Button, x130 y114 w36 h29 vBtnNew29, )
Gui, 1:Add, Button, x130 y146 w36 h29 vBtnNew30, ln
Gui, 1:Add, Button, x130 y179 w36 h29 vBtnNew31, log
Gui, 1:Add, Button, x130 y211 w36 h29 vBtnNew32, n!
Gui, 1:Add, Button, x130 y244 w36 h29 vBtnNew33, 1/x
Gui, 1:Add, Button, x180 y114 w36 h29 vBtnNew34, MC
Gui, 1:Add, Button, x180 y146 w36 h29 vBtnNew35, MR
Gui, 1:Add, Button, x180 y179 w36 h29 vBtnNew36, MS
Gui, 1:Add, Button, x180 y211 w36 h29 vBtnNew37, M+
Gui, 1:Add, Button, x180 y244 w36 h29 vBtnNew38, Pi
Gui, 1:Add, Button, x229 y114 w36 h29 vBtnNew39, 7
Gui, 1:Add, Button, x229 y146 w36 h29 vBtnNew40, 4
Gui, 1:Add, Button, x229 y179 w36 h29 vBtnNew41, 1
Gui, 1:Add, Button, x229 y211 w36 h29 vBtnNew42, 0
Gui, 1:Add, Button, x229 y244 w36 h29 vBtnNew43, A
Gui, 1:Add, Button, x268 y114 w36 h29 vBtnNew44, 8
Gui, 1:Add, Button, x268 y146 w36 h29 vBtnNew45, 5
Gui, 1:Add, Button, x268 y179 w36 h29 vBtnNew46, 2
Gui, 1:Add, Button, x268 y211 w36 h29 vBtnNew47, +/-
Gui, 1:Add, Button, x268 y244 w36 h29 vBtnNew48, B
Gui, 1:Add, Button, x307 y114 w36 h29 vBtnNew49, 9
Gui, 1:Add, Button, x307 y146 w36 h29 vBtnNew50, 6
Gui, 1:Add, Button, x307 y179 w36 h29 vBtnNew51, 3
Gui, 1:Add, Button, x307 y211 w36 h29 vBtnNew52, .
Gui, 1:Add, Button, x307 y244 w36 h29 vBtnNew53, C
Gui, 1:Add, Button, x346 y114 w36 h29 vBtnNew54, /
Gui, 1:Add, Button, x346 y146 w36 h29 vBtnNew55, *
Gui, 1:Add, Button, x346 y179 w36 h29 vBtnNew56, -
Gui, 1:Add, Button, x346 y211 w36 h29 vBtnNew57, +
Gui, 1:Add, Button, x346 y244 w36 h29 vBtnNew58, D
Gui, 1:Add, Button, x385 y114 w36 h29 vBtnNew59, Mod
Gui, 1:Add, Button, x385 y146 w36 h29 vBtnNew60, OR
Gui, 1:Add, Button, x385 y179 w36 h29 vBtnNew61, Lsh
Gui, 1:Add, Button, x385 y211 w36 h29 vBtnNew62, =
Gui, 1:Add, Button, x385 y244 w36 h29 vBtnNew63, E
Gui, 1:Add, Button, x424 y114 w36 h29 vBtnNew64, And
Gui, 1:Add, Button, x424 y146 w36 h29 vBtnNew65, Xor
Gui, 1:Add, Button, x424 y179 w36 h29 vBtnNew66, Not
Gui, 1:Add, Button, x424 y211 w36 h29 vBtnNew67, Int
Gui, 1:Add, Button, x424 y244 w36 h29 vBtnNew68, F
Gui, 1:Add, Button, x261 y78 w65 h29 vBtnNew69, Rücktaste
Gui, 1:Add, Button, x328 y78 w65 h29 vBtnNew70, CE
Gui, 1:Add, Button, x396 y78 w65 h29 vBtnNew71, C
Gui, 1:Add, Text, x184 y78 w27 h26 vTxtNew72,
Gui, 1:Add, Text, x135 y78 w27 h26 vTxtNew73,
Gui, 1:Add, Text, x-5 y279 w2 h2 vTxtNew74,
Gui, 1:Show, x46 y408 w472 h284 , Rechner
End := A_TickCount
Msgbox, % "Time = " End - Start
Return
;Example to close guis
GuiClose:
ExitApp
Return
|
The main difference is that the LilBuilder project file is 700 lines longer. ;| _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4016 Location: Pittsburgh
|
Posted: Sun Jul 01, 2007 7:52 pm Post subject: |
|
|
| I did not follow the discussions for a while… The properties of the standard controls are not captured, like style, font, color, etc. Is it on the todo list? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sun Jul 01, 2007 9:05 pm Post subject: |
|
|
I guess you talk about the Stealer, right? I have no intention to enhance it, since I guess that to copy guis is not the major usage of LilBuilder. And there are more urgent features needed then a big Stealer, IMO.
The Stealer is actually a mod from the feature of SmartGUI. Maybe Rajat has more plans. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Mon Jul 02, 2007 3:10 am Post subject: |
|
|
other great release toralf!
i noticed a bug though... as the listbox's height can be adjusted in preset progressions only, so with grid on while resizing a listbox's height i've seen its height reducing upto 60-80 pixels automatically once i leave the mouse button... its bcoz of 2 things trying to set its height... li'l builder's grid system and the listbox's internal properties.
try this:
enable grid for 10 or 20 pix. add listbox. increase its height randomly. _________________
 |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Jul 02, 2007 9:08 am Post subject: |
|
|
Dear Rajat,
Thanks.
Regrading the bug: I do not know how to solve this, other then to disable grid for listboxes. But maybe someone willing to look into it further finds a solution.
On a side note: I'm not very much interested in grid, since I usualy don't use it. I arrange the controls with multiselction and alignment functions. Due to my low interest in grid, I spend my time on things I need or on organizing the project. But since this is cooperative development, I hope other will solve this issue. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Mon Jul 02, 2007 10:14 am Post subject: |
|
|
Dear Toralf,
in SGUI what i did was to set the height of a listbox once as per grid, and then the listbox itself adjusted itself to the nearest possible height.
in this case the builder is adjusting the height of the control in a loop when it sees that it doesn't correspond to the grid. the best way out will be to make it set the control height only once.
Thanks _________________
 |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Mon Jul 02, 2007 12:44 pm Post subject: |
|
|
go ahead. :) _________________ Ciao
toralf  |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Thu Jul 19, 2007 6:41 pm Post subject: |
|
|
has this project died out? This project seemed to stall and majkinetor seemed to disappear at the same time...
Thanks for this excellent project. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Thu Jul 19, 2007 9:01 pm Post subject: |
|
|
I started a new job and don't find time to do any coding. It will take a while before I can get back to it. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
ahklerner
Joined: 26 Jun 2006 Posts: 1205 Location: USA
|
Posted: Sun Jul 29, 2007 3:45 pm Post subject: |
|
|
| I have been traveling a lot for my work lately and have not had any time either....nor do i see any in the near future... My company is implementing a new Warehouse Management System on our iSeries and I have been chosen to do all on-site specific testing, training and implementation...I have not seen my home more than 5 days last two months... |
|
| Back to top |
|
 |
pen Guest
|
Posted: Mon Aug 06, 2007 1:09 pm Post subject: |
|
|
Iseries....yes
have you looked into screen scrapping on iSeries?
i've been working on that but no luck so far.... the EHLAPI dll is complicated to me new ahk user |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 208
|
Posted: Sat Aug 18, 2007 5:31 pm Post subject: |
|
|
I'm not sure if anyone's still working on LilBuilder, but I keep getting this error when I try to use it and was wondering if anyone could tell me what I'm doing wrong.
I'd appreciate any help y'all can give me on this!
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 848 Location: London, UK
|
Posted: Sat Aug 18, 2007 6:12 pm Post subject: |
|
|
you need the latest version at least 1.0.47 or higher _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 208
|
Posted: Sat Aug 18, 2007 7:44 pm Post subject: |
|
|
Thanks, but still getting that error message.
I have the lilbuilder folder in my autohotkey folder and both on my flash drive. I don't know if that will make a difference. Any other ideas?!?
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 208
|
Posted: Thu Aug 30, 2007 8:01 pm Post subject: |
|
|
Is there anyone who can help me with this problem? I have 1.0.47 but the problem is still the same. ANY help would be appreciated! Thanks!
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
SciFi/Fantasy Short Stories I wrote {StohlerWorlds I} >>
http://www.mediafire.com/?2yisetu0jud |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|