Madza91 Posted October 17, 2007 Share Posted October 17, 2007 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 ;;; EndSelectWEndExitPls 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 More sharing options...
Valuater Posted October 17, 2007 Share Posted October 17, 2007 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) Link to comment Share on other sites More sharing options...
Madza91 Posted October 17, 2007 Author Share Posted October 17, 2007 Thank you man [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 More sharing options...
Valuater Posted October 17, 2007 Share Posted October 17, 2007 Thank you man Welcome!!8) Link to comment Share on other sites More sharing options...
Madza91 Posted October 18, 2007 Author Share Posted October 18, 2007 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 More sharing options...
Valuater Posted October 18, 2007 Share Posted October 18, 2007 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) Link to comment Share on other sites More sharing options...
Madza91 Posted October 18, 2007 Author Share Posted October 18, 2007 You dont understand me :/ i will send you mail [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 More sharing options...
Valuater Posted October 18, 2007 Share Posted October 18, 2007 You dont understand me :/i will send you mail I dont reply to mail very often... better here in the forums, that way others can help too!8) Link to comment Share on other sites More sharing options...
Madza91 Posted October 18, 2007 Author Share Posted October 18, 2007 (edited) ....I maded picture bacause I dont know english Understand me now? Edited October 18, 2007 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 More sharing options...
Madza91 Posted October 18, 2007 Author Share Posted October 18, 2007 Pls help me, i want to create GUI like left on the 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 ExitBut 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 More sharing options...
martin Posted October 21, 2007 Share Posted October 21, 2007 Pls help me, i want to create GUI like left on the 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 More sharing options...
Madza91 Posted October 21, 2007 Author Share Posted October 21, 2007 WARNING: $WM_GETMINMAXINFO: possibly used before declaration.GUIRegisterMsg($WM_GETMINMAXINFOnot 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 More sharing options...
martin Posted October 22, 2007 Share Posted October 22, 2007 not work :S$WM_GETMINMAXINFO = 0x0024It'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 More sharing options...
Madza91 Posted October 31, 2007 Author Share Posted October 31, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now