
DeSwa
Active Members-
Posts
24 -
Joined
-
Last visited
Everything posted by DeSwa
-
Problems with Embedded IE Frame navigation
DeSwa replied to tomaskir's topic in AutoIt General Help and Support
change GuiLoop function Func GUILoop() Local $msg Local $JoyBtn While 1 = 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $btn_cam1 _IENavigate($embedIEreff, "http://192.168.0.75") Case $msg = $btn_cam2 _IENavigate($embedIEreff, "www.google.com") Case $msg = $btn_exit Exit EndSelect WEnd EndFunc ;==>GUILoop and try http:// +ip+ like this : _IENavigate($embedIEreff, "http://192.168.0.75") -
cool. thanks
-
i tried. but i need button system ^^
-
thx but how can show 2. and others gui? not running.
-
i want use 7 GUIs on my project. but i cant hide 1. GUI and cant show 2. GUI. whats wrong in this code? #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StructureConstants.au3> #include <GUIScrollBars.au3> #include <ScrollBarConstants.au3> #include <StaticConstants.au3> #include <ListViewConstants.au3> #include <GuiImageList.au3> #include <WinAPI.au3> #include <GuiListView.au3> Global $GUIMsg, $nMsg, $hGUI, $h_cGUI, $Icon65, $DLL, $2h_cGUI, $dButton2, $dButton1, $dButton3, $dButton4, $dButton5, $dButton6, $dButton7, $Label8 Opt("Mustdeclarevars", 1);Must declare variables, true $hGUI = GUICreate("Example", 385, 400, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_SIZEBOX)) $dButton1 = GUICtrlCreateButton("Bicheon", 8, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton2 = GUICtrlCreateButton("Heuksal", 58, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton3 = GUICtrlCreateButton("Pacheon", 108, 8, 61, 17, 0, $WS_EX_STATICEDGE) $dButton4 = GUICtrlCreateButton("Cold", 168, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton5 = GUICtrlCreateButton("Lightning", 218, 8, 59, 17, 0, $WS_EX_STATICEDGE) $dButton6 = GUICtrlCreateButton("Fire", 276, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton7 = GUICtrlCreateButton("Force", 326, 8, 51, 17, 0, $WS_EX_STATICEDGE) $Label8 = GUICtrlCreateInput("Bicheon SP :", 175, 518, 80, 16) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlSetFont(-1, 7, 400, 0, "Verdana") $h_cGUI = GUICreate("Child GUI", 350, 350, 10, 20, BitOR($WS_EX_CLIENTEDGE, $WS_CHILD), -1, $hGUI) $Label8 = GUICtrlCreateInput("Bicheon SP :", 175, 518, 80, 16) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlSetFont(-1, 7, 400, 0, "Verdana") GUISwitch($hGUI) GUIRegisterMsg($WM_SIZE, "WM_SIZE") GUIRegisterMsg($WM_VSCROLL, "WM_VSCROLL") GUIRegisterMsg($WM_HSCROLL, "WM_HSCROLL") GUISetState(@SW_SHOW) GUISetState(@SW_SHOW, $h_cGUI) _GUIScrollBars_Init($h_cGUI) _GUIScrollBars_ShowScrollBar($h_cGUI, $SB_HORZ, False) _GUIScrollBars_SetScrollInfoMax($h_cGUI, $SB_VERT, 38) While 1 $GUIMsg = GUIGetMsg() Switch $GUIMsg Case $GUI_EVENT_CLOSE ExitLoop Case $dButton2 GUICtrlSetState($h_cGUI, @SW_HIDE) GUICtrlSetState(@SW_HIDE, $h_cGUI) EndSwitch WEnd Func WM_SIZE($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $wParam Local $index = -1, $yChar, $xChar, $xClientMax, $xClient, $yClient, $ivMax For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $xClientMax = $aSB_WindowInfo[$index][1] $xChar = $aSB_WindowInfo[$index][2] $yChar = $aSB_WindowInfo[$index][3] $ivMax = $aSB_WindowInfo[$index][7] ExitLoop EndIf Next If $index = -1 Then Return 0 Local $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) ; Retrieve the dimensions of the client area. $xClient = BitAND($lParam, 0x0000FFFF) $yClient = BitShift($lParam, 16) $aSB_WindowInfo[$index][4] = $xClient $aSB_WindowInfo[$index][5] = $yClient ; Set the vertical scrolling range and page size DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) DllStructSetData($tSCROLLINFO, "nMin", 0) DllStructSetData($tSCROLLINFO, "nMax", $ivMax) DllStructSetData($tSCROLLINFO, "nPage", $yClient / $yChar) _GUIScrollBars_SetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) ; Set the horizontal scrolling range and page size DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) DllStructSetData($tSCROLLINFO, "nMin", 0) DllStructSetData($tSCROLLINFO, "nMax", 2 + $xClientMax / $xChar) DllStructSetData($tSCROLLINFO, "nPage", $xClient / $xChar) _GUIScrollBars_SetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) Return $GUI_RUNDEFMSG EndFunc ;==>WM_SIZE Func WM_HSCROLL($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $lParam Local $nScrollCode = BitAND($wParam, 0x0000FFFF) Local $index = -1, $xChar, $xPos Local $Min, $Max, $Page, $Pos, $TrackPos For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $xChar = $aSB_WindowInfo[$index][2] ExitLoop EndIf Next If $index = -1 Then Return 0 ;~; Get all the horizontal scroll bar information Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $SB_HORZ) $Min = DllStructGetData($tSCROLLINFO, "nMin") $Max = DllStructGetData($tSCROLLINFO, "nMax") $Page = DllStructGetData($tSCROLLINFO, "nPage") ; Save the position for comparison later on $xPos = DllStructGetData($tSCROLLINFO, "nPos") $Pos = $xPos $TrackPos = DllStructGetData($tSCROLLINFO, "nTrackPos") #forceref $Min, $Max Switch $nScrollCode Case $SB_LINELEFT; user clicked left arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos - 1) Case $SB_LINERIGHT; user clicked right arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos + 1) Case $SB_PAGELEFT; user clicked the scroll bar shaft left of the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos - $Page) Case $SB_PAGERIGHT; user clicked the scroll bar shaft right of the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos + $Page) Case $SB_THUMBTRACK; user dragged the scroll box DllStructSetData($tSCROLLINFO, "nPos", $TrackPos) EndSwitch ;~ // Set the position and then retrieve it. Due to adjustments ;~ // by Windows it may not be the same as the value set. DllStructSetData($tSCROLLINFO, "fMask", $SIF_POS) _GUIScrollBars_SetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) _GUIScrollBars_GetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) ;// If the position has changed, scroll the window and update it $Pos = DllStructGetData($tSCROLLINFO, "nPos") If ($Pos <> $xPos) Then _GUIScrollBars_ScrollWindow($hWnd, $xChar * ($xPos - $Pos), 0) Return $GUI_RUNDEFMSG EndFunc ;==>WM_HSCROLL Func WM_VSCROLL($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $wParam, $lParam Local $nScrollCode = BitAND($wParam, 0x0000FFFF) Local $index = -1, $yChar, $yPos Local $Min, $Max, $Page, $Pos, $TrackPos For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $yChar = $aSB_WindowInfo[$index][3] ExitLoop EndIf Next If $index = -1 Then Return 0 ; Get all the vertial scroll bar information Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $SB_VERT) $Min = DllStructGetData($tSCROLLINFO, "nMin") $Max = DllStructGetData($tSCROLLINFO, "nMax") $Page = DllStructGetData($tSCROLLINFO, "nPage") ; Save the position for comparison later on $yPos = DllStructGetData($tSCROLLINFO, "nPos") $Pos = $yPos $TrackPos = DllStructGetData($tSCROLLINFO, "nTrackPos") Switch $nScrollCode Case $SB_TOP; user clicked the HOME keyboard key DllStructSetData($tSCROLLINFO, "nPos", $Min) Case $SB_BOTTOM; user clicked the END keyboard key DllStructSetData($tSCROLLINFO, "nPos", $Max) Case $SB_LINEUP; user clicked the top arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos - 1) Case $SB_LINEDOWN; user clicked the bottom arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos + 1) Case $SB_PAGEUP; user clicked the scroll bar shaft above the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos - $Page) Case $SB_PAGEDOWN; user clicked the scroll bar shaft below the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos + $Page) Case $SB_THUMBTRACK; user dragged the scroll box DllStructSetData($tSCROLLINFO, "nPos", $TrackPos) EndSwitch ;~ // Set the position and then retrieve it. Due to adjustments ;~ // by Windows it may not be the same as the value set. DllStructSetData($tSCROLLINFO, "fMask", $SIF_POS) _GUIScrollBars_SetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) _GUIScrollBars_GetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) ;// If the position has changed, scroll the window and update it $Pos = DllStructGetData($tSCROLLINFO, "nPos") If ($Pos <> $yPos) Then _GUIScrollBars_ScrollWindow($hWnd, 0, $yChar * ($yPos - $Pos)) $yPos = $Pos EndIf Return $GUI_RUNDEFMSG EndFunc ;==>WM_VSCROLL
-
i want use 7 GUIs on my project. but i cant hide 1. GUI and cant show 2. GUI. whats wrong in this code? #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StructureConstants.au3> #include <GUIScrollBars.au3> #include <ScrollBarConstants.au3> #include <StaticConstants.au3> #include <ListViewConstants.au3> #include <GuiImageList.au3> #include <WinAPI.au3> #include <GuiListView.au3> Global $GUIMsg, $nMsg, $hGUI, $h_cGUI, $Icon65, $DLL, $2h_cGUI, $dButton2, $dButton1, $dButton3, $dButton4, $dButton5, $dButton6, $dButton7, $Label8 Opt("Mustdeclarevars", 1);Must declare variables, true $hGUI = GUICreate("Example", 385, 400, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_SIZEBOX)) $dButton1 = GUICtrlCreateButton("Bicheon", 8, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton2 = GUICtrlCreateButton("Heuksal", 58, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton3 = GUICtrlCreateButton("Pacheon", 108, 8, 61, 17, 0, $WS_EX_STATICEDGE) $dButton4 = GUICtrlCreateButton("Cold", 168, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton5 = GUICtrlCreateButton("Lightning", 218, 8, 59, 17, 0, $WS_EX_STATICEDGE) $dButton6 = GUICtrlCreateButton("Fire", 276, 8, 51, 17, 0, $WS_EX_STATICEDGE) $dButton7 = GUICtrlCreateButton("Force", 326, 8, 51, 17, 0, $WS_EX_STATICEDGE) $Label8 = GUICtrlCreateInput("Bicheon SP :", 175, 518, 80, 16) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlSetFont(-1, 7, 400, 0, "Verdana") $h_cGUI = GUICreate("Child GUI", 350, 350, 10, 20, BitOR($WS_EX_CLIENTEDGE, $WS_CHILD), -1, $hGUI) $Label8 = GUICtrlCreateInput("Bicheon SP :", 175, 518, 80, 16) GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlSetFont(-1, 7, 400, 0, "Verdana") GUISwitch($hGUI) GUIRegisterMsg($WM_SIZE, "WM_SIZE") GUIRegisterMsg($WM_VSCROLL, "WM_VSCROLL") GUIRegisterMsg($WM_HSCROLL, "WM_HSCROLL") GUISetState(@SW_SHOW) GUISetState(@SW_SHOW, $h_cGUI) _GUIScrollBars_Init($h_cGUI) _GUIScrollBars_ShowScrollBar($h_cGUI, $SB_HORZ, False) _GUIScrollBars_SetScrollInfoMax($h_cGUI, $SB_VERT, 38) While 1 $GUIMsg = GUIGetMsg() Switch $GUIMsg Case $GUI_EVENT_CLOSE ExitLoop Case $dButton2 GUICtrlSetState($h_cGUI, @SW_HIDE) GUICtrlSetState(@SW_HIDE, $h_cGUI) EndSwitch WEnd Func WM_SIZE($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $wParam Local $index = -1, $yChar, $xChar, $xClientMax, $xClient, $yClient, $ivMax For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $xClientMax = $aSB_WindowInfo[$index][1] $xChar = $aSB_WindowInfo[$index][2] $yChar = $aSB_WindowInfo[$index][3] $ivMax = $aSB_WindowInfo[$index][7] ExitLoop EndIf Next If $index = -1 Then Return 0 Local $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) ; Retrieve the dimensions of the client area. $xClient = BitAND($lParam, 0x0000FFFF) $yClient = BitShift($lParam, 16) $aSB_WindowInfo[$index][4] = $xClient $aSB_WindowInfo[$index][5] = $yClient ; Set the vertical scrolling range and page size DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) DllStructSetData($tSCROLLINFO, "nMin", 0) DllStructSetData($tSCROLLINFO, "nMax", $ivMax) DllStructSetData($tSCROLLINFO, "nPage", $yClient / $yChar) _GUIScrollBars_SetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) ; Set the horizontal scrolling range and page size DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) DllStructSetData($tSCROLLINFO, "nMin", 0) DllStructSetData($tSCROLLINFO, "nMax", 2 + $xClientMax / $xChar) DllStructSetData($tSCROLLINFO, "nPage", $xClient / $xChar) _GUIScrollBars_SetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) Return $GUI_RUNDEFMSG EndFunc ;==>WM_SIZE Func WM_HSCROLL($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $lParam Local $nScrollCode = BitAND($wParam, 0x0000FFFF) Local $index = -1, $xChar, $xPos Local $Min, $Max, $Page, $Pos, $TrackPos For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $xChar = $aSB_WindowInfo[$index][2] ExitLoop EndIf Next If $index = -1 Then Return 0 ;~; Get all the horizontal scroll bar information Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $SB_HORZ) $Min = DllStructGetData($tSCROLLINFO, "nMin") $Max = DllStructGetData($tSCROLLINFO, "nMax") $Page = DllStructGetData($tSCROLLINFO, "nPage") ; Save the position for comparison later on $xPos = DllStructGetData($tSCROLLINFO, "nPos") $Pos = $xPos $TrackPos = DllStructGetData($tSCROLLINFO, "nTrackPos") #forceref $Min, $Max Switch $nScrollCode Case $SB_LINELEFT; user clicked left arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos - 1) Case $SB_LINERIGHT; user clicked right arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos + 1) Case $SB_PAGELEFT; user clicked the scroll bar shaft left of the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos - $Page) Case $SB_PAGERIGHT; user clicked the scroll bar shaft right of the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos + $Page) Case $SB_THUMBTRACK; user dragged the scroll box DllStructSetData($tSCROLLINFO, "nPos", $TrackPos) EndSwitch ;~ // Set the position and then retrieve it. Due to adjustments ;~ // by Windows it may not be the same as the value set. DllStructSetData($tSCROLLINFO, "fMask", $SIF_POS) _GUIScrollBars_SetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) _GUIScrollBars_GetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) ;// If the position has changed, scroll the window and update it $Pos = DllStructGetData($tSCROLLINFO, "nPos") If ($Pos <> $xPos) Then _GUIScrollBars_ScrollWindow($hWnd, $xChar * ($xPos - $Pos), 0) Return $GUI_RUNDEFMSG EndFunc ;==>WM_HSCROLL Func WM_VSCROLL($hWnd, $Msg, $wParam, $lParam) #forceref $Msg, $wParam, $lParam Local $nScrollCode = BitAND($wParam, 0x0000FFFF) Local $index = -1, $yChar, $yPos Local $Min, $Max, $Page, $Pos, $TrackPos For $x = 0 To UBound($aSB_WindowInfo) - 1 If $aSB_WindowInfo[$x][0] = $hWnd Then $index = $x $yChar = $aSB_WindowInfo[$index][3] ExitLoop EndIf Next If $index = -1 Then Return 0 ; Get all the vertial scroll bar information Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $SB_VERT) $Min = DllStructGetData($tSCROLLINFO, "nMin") $Max = DllStructGetData($tSCROLLINFO, "nMax") $Page = DllStructGetData($tSCROLLINFO, "nPage") ; Save the position for comparison later on $yPos = DllStructGetData($tSCROLLINFO, "nPos") $Pos = $yPos $TrackPos = DllStructGetData($tSCROLLINFO, "nTrackPos") Switch $nScrollCode Case $SB_TOP; user clicked the HOME keyboard key DllStructSetData($tSCROLLINFO, "nPos", $Min) Case $SB_BOTTOM; user clicked the END keyboard key DllStructSetData($tSCROLLINFO, "nPos", $Max) Case $SB_LINEUP; user clicked the top arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos - 1) Case $SB_LINEDOWN; user clicked the bottom arrow DllStructSetData($tSCROLLINFO, "nPos", $Pos + 1) Case $SB_PAGEUP; user clicked the scroll bar shaft above the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos - $Page) Case $SB_PAGEDOWN; user clicked the scroll bar shaft below the scroll box DllStructSetData($tSCROLLINFO, "nPos", $Pos + $Page) Case $SB_THUMBTRACK; user dragged the scroll box DllStructSetData($tSCROLLINFO, "nPos", $TrackPos) EndSwitch ;~ // Set the position and then retrieve it. Due to adjustments ;~ // by Windows it may not be the same as the value set. DllStructSetData($tSCROLLINFO, "fMask", $SIF_POS) _GUIScrollBars_SetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) _GUIScrollBars_GetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) ;// If the position has changed, scroll the window and update it $Pos = DllStructGetData($tSCROLLINFO, "nPos") If ($Pos <> $yPos) Then _GUIScrollBars_ScrollWindow($hWnd, 0, $yChar * ($yPos - $Pos)) $yPos = $Pos EndIf Return $GUI_RUNDEFMSG EndFunc ;==>WM_VSCROLL
-
Error : » !>13:22:43 AutoIT3.exe ended.rc:-1073741819 then give close error... i using Flash obj on About Gui.. whats wrong?
-
Making a bot for the online game
DeSwa replied to Eliminator's topic in AutoIt General Help and Support
You cant make bot on Autoit. you must use vb.net or C++ -
done. thx 4 anyway.
-
when i add the item i want the scroll move the down automatically
-
how i can provide listview scroll down to the automatic?
-
example this not runing not stop looping do $control1 = GUICtrlRead($checkbox1) $control2 = GUICtrlRead($checkbox2) if $control1 = 1 Or $control2 =1 then MsgBox(64, "Try Debugging!", "You select 1 or 2") else end if until $control1 =1 Or $control2 =1 this work do $control1 = GUICtrlRead($checkbox1) if $control1 = 1 then MsgBox(64, "Try Debugging!", "You select 1") else end if until $control1 =1 whats wrong sorry bad my english.
-
Func connectbekleme() $x1 = 0 $y1 = 0 Do $arama3 = _ImageSearch("Images\connect.bmp", 1, $x1, $y1, 0) $arama3xb = _ImageSearch("Images\connect2.bmp", 1, $x1, $y1, 0) If $arama3 = 1 Or $arama3xb = 1 Then Else Sleep(1000) EndIf Until $arama3 = 1 Or $arama3xb = 1 EndFunc ;==>connectbekleme if $arama3 = 1 Or $arama3xb =1 Then not running whats wrong?
-
its not working with CLASS:Client
-
hi, i using send functions in my codes but its working for me and some guys. but some guys saying it doesnt work. they have all netframework versions. this for Silkroad Client about id and password entering. How can solve this problem? Thanks example :
-
how can refresh list?
-
thanks great its working
-
not working i have 2 sro_client.exe on task manager. their title's are SRO_Client same... but i cant manage them (resize hide etc...) only i can manage 1 SRO_Client
-
_GUICtrlListAddItem ($thelist, $winlist[$1][0]) to _GUICtrlListAddItem ($thelist, $winlist[$1][1]) not running ^^
-
i making hider tools but its working with 1 process perfectly but not 2 process. i want manage sro_client.exe multiple. how? this my codes. Func add() $winlist = WinList("SRO_Client") _GUICtrlListClear ($thelist) For $1 = 1 To $winlist[0][0] If $winlist[$1][0] = "" Then ;; Else _GUICtrlListAddItem ($thelist, $winlist[$1][0]) EndIf Next ;; EndFunc;==>add Case $AButton5 If GUICtrlRead($thelist) = "" Then MsgBox(0, "Error", "Please select SRO_Client.") Else WinSetState(GUICtrlRead($thelist), "", @SW_MINIMIZE) EndIf
-
ShellExecute("http://www.google.com") not runing _IECreate ("http://www.silkroadmax.com") runnig thanks for help guys
-
i made a button iwant it goes to a web site how?. Thanks
-
any one help me please. i want show many Sro_Client in list box. and how can resize a windows %5,%10 etc? like it.
-
i working tools about auto party former in Silkroad Online. i want know how it click Confirm when dialog opened. ScreenShot : http://img169.imageshack.us/img169/8500/sdasdasdud9.png #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=c:\documents and settings\pckullanicisi\desktop Func SilkroadAcik() $Label9 = GUICtrlCreateLabel("Silkroad Client Aktif", 111, 143, 159, 17) GUICtrlSetColor(-1, 0x00FF00) EndFunc Func SilkroadKapali() $Label9 = GUICtrlCreateLabel($penceredurum, 111, 143, 159, 17) GUICtrlSetColor(-1, 0xFF0000) EndFunc $Form1_1 = GUICreate("Silkroad Tools - Party Formlayıcı", 547, 233, 194, 115, BitOR($WS_MINIMIZEBOX,$WS_SYSMENU,$WS_CAPTION,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS,$DS_SETFOREGROUND)) $AnaTablo = GUICtrlCreateTab(8, 8, 537, 217, BitOR($TCS_VERTICAL,$TCS_RAGGEDRIGHT,$TCS_TOOLTIPS), $WS_EX_STATICEDGE) $Ayarlar = GUICtrlCreateTabItem("Ayarlar") $CIKIS = GUICtrlCreateButton("Programı Kapat", 155, 174, 83, 25, 0, $WS_EX_STATICEDGE) $Label3 = GUICtrlCreateLabel("Programi Baslatmadan Kendinize uyan ayarları yapin.", 43, 22, 251, 17) $Group1 = GUICtrlCreateGroup("Program Ayarları", 35, 54, 473, 113) $Label4 = GUICtrlCreateLabel("Party Match de görünecek Mesaj :", 51, 78, 167, 17) $Label5 = GUICtrlCreateLabel("Kac saniyede bir tekrarlansin :", 51, 102, 145, 17) $Mesajltp = GUICtrlCreateInput("Auto Party Former - LTP", 219, 70, 193, 21) Func PartyKurulum() Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("SRO_Client","") If Not WinActive("SRO_Client","") Then WinActivate("SRO_Client","") WinWaitActive("SRO_Client","") Send("e") MouseMove(603,588) MouseDown("left") MouseUp("left") MouseMove(570,498) MouseDown("left") MouseUp("left") Sleep(3000) MouseMove(477,532) MouseDown("left") MouseUp("left") Send("e") Sleep(5000) While 25 $search = PixelSearch(441,499,505,512,16777215,5) If Not @error Then MouseClick("left", 505, 512, 2) EndIf Sleep(25) Wend EndFunc $Input2 = GUICtrlCreateInput("10000", 219, 102, 113, 21) $Label6 = GUICtrlCreateLabel("Milisaniye", 339, 102, 49, 17) $Label8 = GUICtrlCreateLabel("Durum :", 55, 143, 48, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0x000080) If ProcessExists("sro_client.exe") Then SilkroadAcik() ElseIf WinActivate("sro_client.exe") Then SilkroadKapali() EndIf GUICtrlCreateGroup("", -99, -99, 1, 1) $baslatbutton = GUICtrlCreateCheckbox("Baslat", 51, 173, 97, 25, $BS_PUSHLIKE,$WS_EX_STATICEDGE) $Label7 = GUICtrlCreateLabel("www.silkroadtools.cjb.net", 291, 182, 149, 17) GUICtrlSetFont(-1, 8, 800, 4, "MS Sans Serif") GUICtrlSetColor(-1, 0x800000) $Hakkinda = GUICtrlCreateTabItem("Hakkinda") $prgcikis = GUICtrlCreateButton("Programi Kapat", 115, 190, 91, 25, 0) $websitesi = GUICtrlCreateButton("Web Sitesi", 219, 190, 107, 25, 0) $Pic1 = GUICtrlCreatePic("scriptrun.ocx", 35, 22, 500, 114, BitOR($SS_NOTIFY,$WS_GROUP)) $Label1 = GUICtrlCreateLabel("Yapimci : DeSwa", 43, 142, 85, 17) GUICtrlSetBkColor(-1, 0xA6CAF0) $Label2 = GUICtrlCreateLabel("Telif Hakki : http://silkroad.site.cx", 43, 158, 164, 17) GUICtrlSetBkColor(-1, 0xA6CAF0) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $prgcikis GUIDelete() Case $baslatbutton PartyKurulum() Case $websitesi ShellExecute("about.bat", "", "", "open", @SW_MINIMIZE) Case $CIKIS GUIDelete() EndSwitch WEnd i tried this code but cant click the confirm button. While 25 $search = PixelSearch(441,499,505,512,16777215,5) If Not @error Then MouseClick("left", 505, 512, 2) EndIf Sleep(25) Wend