Jump to content

boltc

Active Members
  • Posts

    101
  • Joined

  • Last visited

boltc's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Thanks for your answer. It was not the options in autoit, but in the html page i loaded: <style> body { border:0; } </style> fixed the problem:) thanks anyway!
  2. Hello, I want to change the style of the embedded ie window ($GUIActiveX) in my gui. I want to remove the vertical scrollbar and the (inset) border of the object. But i dont know anymore how to do that. Can someone help me? Here is my script: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> HotKeySet("{ESC}", "Terminate") Func Terminate() Exit 0 EndFunc _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", @DesktopWidth, @DesktopHeight, 0, 0, _ $WS_POPUP + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN + $WS_EX_TOPMOST ) $GUIActiveX = GUICtrlCreateObj($oIE, 200, 200, @DesktopWidth - 225, @DesktopHeight-225) $GUI_Button_Home = GUICtrlCreateButton("Home", 10, 420, 100, 30) GUISetState() ;Show GUI $url = "http://www.google.com" _IENavigate ($oIE, $url) ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IENavigate ($oIE, $url) EndSelect WEnd GUIDelete() Exit
  3. is it possible to view all your php sessions declared? i want to use with autoit a variable that is stored by php like this: $_SESSION['tijd']=time();
  4. the taskbar is not going away.. do you know where to find the Toolbar_FindToolbar function? (A3LToolBar.au3) cant find it anymore.. prob removed? .
  5. hello, i want to hide the button on the taskbar from an external program, is that possible and how? i cant find anything in the helpfile about it.. (because in loading the program in my own gui..) .
  6. this is working more accurate: Do $WinList = WinList() For $i = 1 To $WinList[0][0] If $WinList[$i][0] <> "" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $WinList[$i][1], "ptr", DllStructGetPtr($stPID)) If $WinList[$i][0] == "Game Maker" Then If DllStructGetData($stPID, 1) = $PID Then $hWnd = $WinList[$i][1] ClipPut($WinList[$i][0] & ", " & $WinList[$i][1]) ExitLoop EndIf EndIf EndIf Next sleep(100) Until $hWnd <> 0
  7. thanks for your little help:) i did some further research and i found out when he succeeded the value of $WinList[$i][0] was "Game Maker".. When he fails to load in my gui value was "Game_Maker".. i changed my script: Do $WinList = WinList() For $i = 1 To $WinList[0][0] If $WinList[$i][0] == "Game Maker" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $WinList[$i][1], "ptr", DllStructGetPtr($stPID)) If DllStructGetData($stPID, 1) = $PID Then $hWnd = $WinList[$i][1] ClipPut($WinList[$i][0] & ", " & $WinList[$i][1]) ExitLoop EndIf EndIf Next sleep(100) Until $hWnd <> 0 and it works! .
  8. the sleeps does not work, i tried them everywhere.. i maybe need to add a checksum of something that makes sure it has the right handle, and if not then repeat it.. thats what im going to try now..
  9. iv made a script for a project for school where i have to teach someone about game maker in 'e-learning'. I want to load 'Game-Maker 7 Lite' in my own gui.. (download: http://www.yoyogames.com/gamemaker/try) my code: #include <GUIConstants.au3> Opt('WinTitleMatchMode', 2) Global $OldControl = '' Global $dllUser32 = DllOpen("user32.dll") Global $dllGdi32 = DllOpen("gdi32.dll") $hGUI = GUICreate("E-Learning (Game Maker 7.0)", 1000, 600, -1, -1, BitOr($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_CLIPCHILDREN)) Func WinSetStyle($hWnd, $Style = -1, $ExStyle = 0) Local Const $GWL_STYLE = -16 Local Const $GWL_EXSTYLE = -20 Local Const $SWP_NOMOVE = 0x2 Local Const $SWP_NOSIZE = 0x1 Local Const $SWP_SHOWWINDOW = 0x40 Local Const $SWP_NOZORDER = 0x4 Local $iFlags = BitOR($SWP_SHOWWINDOW, $SWP_NOSIZE, $SWP_NOMOVE, $SWP_NOZORDER) If $Style = -1 Then $Style = $WS_MINIMIZEBOX + $WS_CAPTION + $WS_POPUP + $WS_SYSMENU DllCall("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_STYLE, "int", $Style) DllCall("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_EXSTYLE, "int", $ExStyle) DllCall("User32.dll", "int", "SetWindowPos", "hwnd", $hWnd, "hwnd", 0, "int", 0, "int", 0, "int", 0, "int", 0, "int", $iFlags) EndFunc func _load() $PID = Run("C:\Program Files\Game_Maker7\Game_Maker.exe", "", @SW_HIDE) $hWnd = 0 $stPID = DllStructCreate("int") Do $WinList = WinList() For $i = 1 To $WinList[0][0] If $WinList[$i][0] <> "" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $WinList[$i][1], "ptr", DllStructGetPtr($stPID)) If DllStructGetData($stPID, 1) = $PID Then $hWnd = $WinList[$i][1] ExitLoop EndIf EndIf Next sleep(100) Until $hWnd <> 0 If $hWnd <> 0 Then $nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $hWnd, "int", -20) $nExStyle = $nExStyle[0] DllCall("user32.dll", "int", "SetParent", "hwnd", $hWnd, "hwnd", $hGUI) DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", -20, "int", BitOr($nExStyle, $WS_EX_MDICHILD)) WinMove($hWnd, "", 0, 0, 815, 600) WinSetStyle($hWnd, $WS_POPUPWINDOW, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW) EndIf $stPID = 0 EndFunc $label1 = GUICtrlCreateLabel($text_welkom_1, 820, 20, 175, 50) GUICtrlSetFont(-1, 12, 800, 0, "Arial") $label2 = GUICtrlCreateLabel($text_welkom_2, 820, 65, 175, 400) GUICtrlSetFont(-1, 10, 400, 0, "Arial") $but_starting = GUICtrlCreateButton ("loading..", 820, 510, 175, 40, $WS_DISABLED) $but_starting_exit = GUICtrlCreateButton ("Exit", 820, 555, 175, 40) GUISetState() _load() ;~ skip the pop-up screen WinWaitActive("Upgrade to the Pro Edition") ControlClick("Upgrade to the Pro Edition", "" ,"[CLASS:TBitBtn; INSTANCE:4;]") $title = "E-Learning (Game Maker 7.0)" $title_size = WinGetPos($title) WinMove($title, "", $title_size[0] -1, $title_size[1] -1) WinMove($title, "", $title_size[0], $title_size[1]) sometimes it load proper in my gui, but sometimes it does not. and then it load normaly and my gui is empty. i can not find the problem, i spent already over 5 hours to this problem. can someone help me please?
  10. i now you can manually turn it on, but i want to use it for my own program, im making an elearning for school and it is very usefull for me(A)
  11. can i find the source of Au3InfoA.exe somewhere? i also want a blacksqueare around an 'class'.. In the Au3InfoA.exe will the blacksqueare on an class when you move your mouse over it.. does somebody know how to write that script? thanks in advance!
  12. fixed now.. #include <GUIConstants.au3> ; ==== LOAD GAMEMAKER ==..;; $hGUI = GUICreate("Test", 1000, 600, -1, -1, BitOr($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_CLIPCHILDREN)) $PID = Run("C:\Game_Maker7\game_maker.exe", "", @SW_HIDE) $hWnd = 0 $stPID = DllStructCreate("int") ;Set Window Styles Func WinSetStyle($hWnd, $Style = -1, $ExStyle = 0) Local Const $GWL_STYLE = -16 Local Const $GWL_EXSTYLE = -20 Local Const $SWP_NOMOVE = 0x2 Local Const $SWP_NOSIZE = 0x1 Local Const $SWP_SHOWWINDOW = 0x40 Local Const $SWP_NOZORDER = 0x4 Local $iFlags = BitOR($SWP_SHOWWINDOW, $SWP_NOSIZE, $SWP_NOMOVE, $SWP_NOZORDER) If $Style = -1 Then $Style = $WS_MINIMIZEBOX + $WS_CAPTION + $WS_POPUP + $WS_SYSMENU DllCall("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_STYLE, "int", $Style) DllCall("User32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", $GWL_EXSTYLE, "int", $ExStyle) DllCall("User32.dll", "int", "SetWindowPos", "hwnd", $hWnd, "hwnd", 0, "int", 0, "int", 0, _ "int", 0, "int", 0, "int", $iFlags) EndFunc Do $WinList = WinList() For $i = 1 To $WinList[0][0] If $WinList[$i][0] <> "" Then DllCall("user32.dll", "int", "GetWindowThreadProcessId", "hwnd", $WinList[$i][1], "ptr", DllStructGetPtr($stPID)) If DllStructGetData($stPID, 1) = $PID Then $hWnd = $WinList[$i][1] ExitLoop EndIf EndIf Next Sleep(100) Until $hWnd <> 0 $stPID = 0 If $hWnd <> 0 Then $nExStyle = DllCall("user32.dll", "int", "GetWindowLong", "hwnd", $hWnd, "int", -20) $nExStyle = $nExStyle[0] DllCall("user32.dll", "int", "SetWindowLong", "hwnd", $hWnd, "int", -20, "int", BitOr($nExStyle, $WS_EX_MDICHILD)) DllCall("user32.dll", "int", "SetParent", "hwnd", $hWnd, "hwnd", $hGUI) WinSetState($hWnd, "", @SW_SHOW) WinMove($hWnd, "", 0, 0, 800, 600) WinSetStyle($hWnd, $WS_POPUPWINDOW, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW) EndIf GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then ExitLoop WEnd
  13. hello, i was wondering if it is possbile with some dll call or something to remove a titlebar and the borders from an external program.. something like regedit.. or paint... greets bo
  14. or is it possible to remove the titlebar and borders from an external program?
×
×
  • Create New...