Jump to content

Search the Community

Showing results for tags 'special buttons'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. hi there, i´ve tried to make a tool with an embedded IE. the tool works for me, but i can`t use the two buttons on the left side of my mouse. the two buttons on the right side work. the buttons on the left side normaly let the websites go back and forward. can you tell me how to enable it in autoit? here is my code: #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=..\Battlefield-3s.ico #AutoIt3Wrapper_Outfile=..\-=SFF=- BF3 Battlelog v1.1.5 beta 2.exe #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_Comment=Battlelog Standalone #AutoIt3Wrapper_Res_Description=Battlelog Standalone #AutoIt3Wrapper_Res_Fileversion=1.1.5.0 #AutoIt3Wrapper_Res_Language=1031 #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #AutoIt3Wrapper_Add_Constants=n #AutoIt3Wrapper_Run_Tidy=y #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/striponly #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <IE.au3> #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <String.au3> #include <array.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <String.au3> Opt("TrayIconHide", 1) ;0=show, 1=hide tray icon Opt("GUICoordMode", 1) _regwrite() $with = @DesktopWidth / 3 * 2 $height = @DesktopHeight / 3 * 2 Global $left = '<span class="base-header-currentpersona-name">' Global $right = '</span>' Global $a = 0 $BL = "Battlelog" $BS = "Battlestats" $VUFU = "Visit Us / Fight Us" $SO = "Start Origin" $appname = "=SFF= BF3 Battlelog" _IEErrorHandlerRegister() $oIE = _IECreateEmbedded() $gui = GUICreate($appname, $with, $height, (@DesktopWidth / 4) / 2, (@DesktopHeight / 6) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUISetBkColor(0x000000) $embgui = GUICtrlCreateObj($oIE, 0, 0, $with, $height - 25) $GUIsize = WinGetPos($appname) $Battlelog = GUICtrlCreateButton($BL, "10", $height - 25) $Battlestats = GUICtrlCreateButton($BS, "60", $height - 25) $Visit = GUICtrlCreateButton($VUFU, "118", $height - 25) $originbuttton = GUICtrlCreateButton($SO, "212", $height - 25) $Namelabel = GUICtrlCreateLabel("Username", 840, $height - 21) GUICtrlSetColor($Namelabel, 0xffffff) $Username = GUICtrlCreateInput("", 900, $height - 23, 250) $back_button = GUICtrlCreateButton("Zurück", 400, $height - 25, 50) ; Creats Back GUI $forward_button = GUICtrlCreateButton("Forwärts", 500, $height - 25, 50) ; Creates Forward GUI $refresh_button = GUICtrlCreateButton("Aktual.", 450, $height - 25, 50) ; Creates Refresh GUI $aStyle = GUIGetStyle() GUISetStyle(BitOR($aStyle[0], $WS_CLIPCHILDREN)) GUISetState() $origin = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Core", "EADM6InstallDir") $oIEnav = _IENavigate($oIE, "http://battlelog.battlefield.com/bf3/de/", 0) _Origin() While 1 Sleep(50) $GUIsizeold = $GUIsize $GUIsize = WinGetPos($appname) If $GUIsizeold <> $GUIsize Then GUICtrlSetResizing($embgui, $GUI_DOCKLEFT + $GUI_DOCKTOP) GUICtrlSetResizing($embgui, $GUI_DOCKRIGHT + $GUI_DOCKBOTTOM) EndIf $gamerid = GUICtrlRead($Username) If Not $a = 1 Then Sleep(1000) _namelesen() EndIf _Origin() $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE _regdel() ExitLoop Case $msg = $Battlelog GUICtrlSetData($Battlelog, "Loading") GUICtrlSetState($Battlelog, $GUI_DISABLE) $oIEnav = _IENavigate($oIE, "http://battlelog.battlefield.com/bf3/de/user/" & $gamerid, 1) GUICtrlSetState($Battlelog, $GUI_ENABLE) GUICtrlSetData($Battlelog, $BL) Case $msg = $Battlestats GUICtrlSetData($Battlestats, "Loading") GUICtrlSetState($Battlestats, $GUI_DISABLE) $oIEnav = _IENavigate($oIE, 'http://bf3stats.com/stats_pc/' & $gamerid, 1) GUICtrlSetState($Battlestats, $GUI_ENABLE) GUICtrlSetData($Battlestats, $BS) Case $msg = $Visit GUICtrlSetData($Visit, "Loading") GUICtrlSetState($Visit, $GUI_DISABLE) $oIEnav = _IENavigate($oIE, 'http://www.swiss-fun-fighters.ch', 1) GUICtrlSetState($Visit, $GUI_ENABLE) GUICtrlSetData($Visit, $VUFU) Case $msg = $originbuttton Run($origin & "\origin.exe") Case $msg = $back_button _IEAction($oIE, "back") Case $msg = $forward_button _IEAction($oIE, "forward") Case $msg = $refresh_button _IEAction($oIE, "refresh") EndSelect WEnd Func _regwrite() RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", '', "REG_SZ", "Mozilla/5.1") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", 'Version', "REG_SZ", "MSIE 9.0") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Version Vector", 'IE', "REG_SZ", "9.0000") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", 'Version', "REG_SZ", "MSIE 9.0") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", '', "REG_SZ", "Mozilla/5.0") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector", 'IE', "REG_SZ", "9.0000") EndFunc ;==>_regwrite Func _regdel() RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", '') RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", 'Version') RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Version Vector", 'IE') RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", 'Version') RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent", '') RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector", 'IE') EndFunc ;==>_regdel Func _namelesen() $sSource = BinaryToString(InetRead("http://battlelog.battlefield.com/bf3/de/")) $sName = _StringBetween($sSource, $left, $right) If @error Then Return EndIf $sName[0] = BinaryToString($sName[0], 4) GUICtrlSetData($Username, $sName[0]) $a = 1 EndFunc ;==>_namelesen Func _Origin() Sleep(1) If ProcessExists("Origin.exe") Then GUICtrlSetData($originbuttton, "Origin läuft") GUICtrlSetState($originbuttton, $GUI_DISABLE) Else GUICtrlSetState($originbuttton, $GUI_ENABLE) GUICtrlSetData($originbuttton, $SO) EndIf EndFunc ;==>_Origin thanks in advance
×
×
  • Create New...