Jump to content

EZskin old script 2 new skin


FMS
 Share

Recommended Posts

Seems realy nice this download EZskin :unsure:

but call me a noob when i say :

i just treid out ezskin and got the files :D but how do i put it in a script if i wrote this script earlier:S

(just as i told before just call me a NOOB)

is it just some edit in the compiler or in the script?

This is what i had :

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EzSkin.au3>

$Form1 = GUICreate("Form1", 280, 270, 192, 114)
$Label1 = GUICtrlCreateLabel("input 1", 8, 15, 74, 25)
$Label2 = GUICtrlCreateLabel("input 2", 8, 45, 74, 25)
$Label3 = GUICtrlCreateLabel("diffrence", 8, 75, 74, 25)
$Label4 = GUICtrlCreateLabel("old HIGH", 8, 105, 74, 25)
$Label5 = GUICtrlCreateLabel("old LOW", 8, 135, 74, 25)
$Label6 = GUICtrlCreateLabel("new HIGH", 8, 165, 74, 25)
$Label7 = GUICtrlCreateLabel("new LOW", 8, 195, 74, 25)
$Input1 = GUICtrlCreateInput("", 120, 20, 145, 21)
$Input2 = GUICtrlCreateInput("", 120, 50, 145, 21)
$Input3 = GUICtrlCreateInput("", 120, 80, 145, 21)
$Input4 = GUICtrlCreateInput("3276.70", 120, 110, 145, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 120, 140, 145, 21)
$Input6 = GUICtrlCreateInput("", 120, 170, 145, 21)
$Input7 = GUICtrlCreateInput("", 120, 200, 145, 21)
$Button1 = GUICtrlCreateButton("Cancel", 24, 230, 97, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Generate", 147, 230, 97, 25, $WS_GROUP)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            Exit
        Case $Button2
            GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
            GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
            GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))

    EndSwitch
WEnd

This is what i have till now :>

I know that i'm doing something wrong but don't know what ;)

can somewone help me?

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EzSkin.au3>



$EzGUI = EzSkinGUICreate("MyEzSkinDemo",280, 270, 192, 114)
;$Form1 = GUICreate("Form1", 280, 270, 192, 114)

$Label1 = GUICtrlCreateLabel("IFIX geeft aan", 8, 15, 74, 25)
$Label2 = GUICtrlCreateLabel("IFIX moet zijn", 8, 45, 74, 25)
$Label3 = GUICtrlCreateLabel("Het verschil is", 8, 75, 74, 25)
$Label4 = GUICtrlCreateLabel("EGU HIGH", 8, 105, 74, 25)
$Label5 = GUICtrlCreateLabel("EGU LOW", 8, 135, 74, 25)
$Label6 = GUICtrlCreateLabel("EGU HIGH", 8, 165, 74, 25)
$Label7 = GUICtrlCreateLabel("EGU LOW", 8, 195, 74, 25)
$Input1 = GUICtrlCreateInput("", 120, 20, 145, 21)
$Input2 = GUICtrlCreateInput("", 120, 50, 145, 21)
$Input3 = GUICtrlCreateInput("", 120, 80, 145, 21)
$Input4 = GUICtrlCreateInput("3276.70", 120, 110, 145, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 120, 140, 145, 21)
$Input6 = GUICtrlCreateInput("", 120, 170, 145, 21)
$Input7 = GUICtrlCreateInput("", 120, 200, 145, 21)
;$Button1 = GUICtrlCreateButton("Cancel", 24, 230, 97, 25, $WS_GROUP)
;$Button2 = GUICtrlCreateButton("Generate", 147, 230, 97, 25, $WS_GROUP)
$Button1 = EzSkinButton("Cancel", 24, 230, 97, 25,$WS_GROUP) ;, $font_color)
$Button2 = EzSkinButton("Generate", 147, 230, 97, 25,$WS_GROUP) ;, $font_color)

GUISetState(@SW_SHOW)

While 1
    EzSkinOver()
    $nMsg = GUIGetMsg()
    If $nMsg = $EzIcon[1] Then Exit
    If $nMsg = $EzIcon[2] Then GuiSetstate(@SW_MINIMIZE, $EzGUI)
    If $nMsg = $Button2 Then _calculate()
    If $nMsg = $Button1 Then Exit
WEnd

Func _calculate()
    GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
    GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
    GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))
EndFunc
Edited by FMS

as finishing touch god created the dutch

Link to comment
Share on other sites

For the persons who walk by this post,

i find it this way:

#include <GUIConstants.au3>
#include <EzSkin.au3>

$EzGUI = EzSkinGUICreate("EGU Generator",480, 370, 2, 1 )
$EzIcon = EzSkinIcon($EzGUI)

$Label1 = GUICtrlCreateLabel("input 1", 50, 60, 136, 50)
$Label2 = GUICtrlCreateLabel("input 2", 50, 90, 136, 50)
$Label4 = GUICtrlCreateLabel("difrence", 50, 120, 136, 50)
$Label5 = GUICtrlCreateLabel("old HIGH", 50, 150, 136, 50)
$Label6 = GUICtrlCreateLabel("old LOW", 50, 180, 136, 50)
$Label7 = GUICtrlCreateLabel("new HIGH", 50, 210, 136, 50)
$Label8 = GUICtrlCreateLabel("new LOW", 50, 240, 136, 50)
$Button1 = EzSkinButton("Cancel", 90, 280, 97, 25);,$WS_GROUP) ;, $font_color)
$Button2 = EzSkinButton("Generate", 240, 280, 97, 25);,$WS_GROUP) ;, $font_color)

$Input1 = GUICtrlCreateInput("", 190, 60, 209, 21)
$Input2 = GUICtrlCreateInput("", 190, 90, 209, 21)
$Input3 = GUICtrlCreateInput("", 190, 120, 209, 21)
$Input4 = GUICtrlCreateInput("3276.70", 190, 150, 209, 21)
$Input5 = GUICtrlCreateInput("-3276.70", 190, 180, 209, 21)
$Input6 = GUICtrlCreateInput("", 190, 210, 209, 21)
$Input7 = GUICtrlCreateInput("", 190, 240, 209, 21)

GUISetState(@SW_SHOW)


GUISetState()

While 1
    EzSkinOver()
    $msg = GUIGetMsg()
    If $msg = $EzIcon[1] Then Exit
    If $msg = $EzIcon[2] Then GuiSetstate(@SW_MINIMIZE, $EzGUI)
    if $msg = $Button2 Then calculate()
    If $msg = $Button1 Then Exit

WEnd

Func Calculate()
    GUICtrlSetData($Input3, GUICtrlRead($Input1) - GUICtrlRead($Input2))
    GUICtrlSetData($Input6, GUICtrlRead($Input4) + GUICtrlRead($Input3))
    GUICtrlSetData($Input7, GUICtrlRead($Input5) + GUICtrlRead($Input3))
EndFunc
Edited by FMS

as finishing touch god created the dutch

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...