Jump to content

start script-counting


Madza91
 Share

Recommended Posts

This is my script,write in ini on every start +1 but not working :/

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$ini2 = @ScriptDir & "\num.ini"

$ini = IniRead( $ini2, "ini","ininumbering", "1")

$Label_1 = GuiCtrlCreateLabel("Script is started " & $ini & " times", 110, 80, 140, 60)

IniWrite( $ini2, "ini","ininumbering", $ini & + 1)

GuiSetState()

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case Else

;;;

EndSelect

WEnd

Exit

Pls help me! :/

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

Maybe...

#include <GuiConstants.au3>

$ini2 = @ScriptDir & "\num.ini"
$ini = IniRead($ini2, "ini", "ininumbering", "0")

GUICreate("MyGUI", 392, 316, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Label_1 = GUICtrlCreateLabel("Script is started " & $ini & " times", 110, 80, 140, 60)
GUISetState()

IniWrite($ini2, "ini", "ininumbering", $ini + 1)

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case Else
            ;;;
    EndSelect
WEnd
Exit

8)

NEWHeader1.png

Link to comment
Share on other sites

One more question...

How to make gui like this but no with resize?

#include <GuiConstants.au3>

$gui = GuiCreate("MyGUI", 393, 316,-1, -1 , BitOR($WS_POPUPWINDOW + $WS_THICKFRAME, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW))

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;
    EndSelect
WEnd
Exit

? :/

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

perhaps...

#include <GuiConstants.au3>

$gui = GuiCreate("MyGUI", 393, 316,-1, -1 , BitOR($WS_POPUPWINDOW, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW))

; Remoned  + $WS_THICKFRAME

; Added Drag

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;
    EndSelect
    
    Drag()
    
WEnd
Exit

Func Drag()
    ;dllcall("user32.dll","int","ReleaseCapture")
    dllcall("user32.dll","int","SendMessage","hWnd", $gui,"int",$WM_NCLBUTTONDOWN,"int", "2","int", 0)
EndFunc

8)

NEWHeader1.png

Link to comment
Share on other sites

....I maded picture bacause I dont know english <_<

Posted Image

Understand me now?

Edited by n3nE

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

Pls help me, i want to create GUI like left on the image,

Posted Image

Code is:

#include <GuiConstants.au3>

$gui = GuiCreate("MyGUI", 393, 316,-1, -1 , BitOR($WS_POPUPWINDOW + $WS_THICKFRAME, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW))

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
  ;;;
    EndSelect
WEnd
Exit

But without resizing,hoW?

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

Pls help me, i want to create GUI like left on the image,

Posted Image

Code is:

#include <GuiConstants.au3>

$gui = GuiCreate("MyGUI", 393, 316,-1, -1 , BitOR($WS_POPUPWINDOW + $WS_THICKFRAME, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW))

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
 ;;;
    EndSelect
WEnd
Exit

But without resizing,hoW?

This stops the size being changed

#include <GuiConstants.au3>
GUIRegisterMsg($WM_GETMINMAXINFO, "MY_WM_GETMINMAXINFO")
$gui = GuiCreate("MyGUI", 393, 316,-1, -1 , BitOR($WS_POPUPWINDOW + $WS_THICKFRAME, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW))

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
 ;;;
    EndSelect
WEnd
Exit

Func MY_WM_GETMINMAXINFO($hWnd, $Msg, $wParam, $lParam)
    $AutoMonItnmaxinfo = DllStructCreate("int;int;int;int;int;int;int;int;int;int",$lParam)
    DllStructSetData($AutoMonItnmaxinfo,7,393); min X
    DllStructSetData($AutoMonItnmaxinfo,8,316); min Y
    DllStructSetData($AutoMonItnmaxinfo,9,393); max X
    DllStructSetData($AutoMonItnmaxinfo,10,316); max Y
    Return 0
EndFunc
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

WARNING: $WM_GETMINMAXINFO: possibly used before declaration.

GUIRegisterMsg($WM_GETMINMAXINFO

not work :S

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

not work :S

$WM_GETMINMAXINFO = 0x0024

It's included in WindowsConstants.au3 in the latest beta.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

  • 2 weeks later...

GuiCreate("Test", 174, 50, -1, -1, $WS_POPUP, $WS_EX_DLGMODALFRAME)

This works <_<

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

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...