Jump to content
Sign in to follow this  
XuxinhaKill

How can I remove scroll bar from navigate objects

Recommended Posts

XuxinhaKill

Ok I just need to take the scroll bars away from my objects...

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Xuxinha", 800, 600)
GUISetState(@SW_SHOW)
#EndRegion ### END KodaGUI section ###
$Obj = ObjCreate("Shell.Explorer.2")
$Obj2 = ObjCreate("Shell.Explorer.2")
$GX = GUICtrlCreateObj($Obj, 0, 0, 800, 250)
$GX2 = GUICtrlCreateObj($Obj2, 0, 350, 800, 250)
$Obj.Navigate("google.com")
$Obj2.Navigate("google.com")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
     Case $GUI_EVENT_CLOSE
         Exit
EndSwitch
WEnd
Edited by XuxinhaKill

Share this post


Link to post
Share on other sites
stormbreaker

I saw something like this before:

#include <IE.au3>
$oIE = _IECreateEmbedded()
$hGui = GUICreate('Test',800,600)
GUICtrlCreateObj($oIE,0,0,800,600)
_IENavigate($oIE,"http://www.autoitscript.com/forum/forum/2-general-help-and-support/")
GUISetState(@SW_SHOW, $hGui)

_HideScroll($oIE)

Do
Until Sleep(10) * GUIGetMsg()==-3

Func _HideScroll($Temp_Object)
Local $hText = 'var temp_h1 = document.body.clientHeight;'& _
'var temp_h2 = document.documentElement.clientHeight;'& _
'var isXhtml = (temp_h2<=temp_h1&&temp_h2!=0)?true:false;'& _
'var htmlbody = isXhtml?document.documentElement:document.body;'& _
'htmlbody.style.overflow = "hidden";'
$Temp_Object.document.parentwindow.execscript($hText,"javascript")
EndFunc
Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites
XuxinhaKill

Thanks MKISH!!! I'll just adapt this code to what I want...

Share this post


Link to post
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
Sign in to follow this  

  • Similar Content

    • rcmaehl
      By rcmaehl
      Hi all,
      I've recently be kinda forced into trying to learn OOP within AutoIt. I'm trying to convert XML into objects I guess instead of trying to parse it into arrays within arrays. An example is below:
      <User> <roles> <role>Agent</role> <role>Supervisor</role> </roles> </user>  
      How can I convert this? Would <roles> be $User.Roles? If so would the children be $User.Roles.Role.Agent and $User.Roles.Role.Supervisor?  If not, how do I reference each Object?
        Any assistance would be appreciated. I tried to understand XML.au3 but I'm so confused trying to wrap my head around this.
    • rcmaehl
      By rcmaehl
      Hi all,
      My work has recently switched from a Win32 based application to a web based application. Thankfully there's an API for me to attach to now but I have a few questions since I'm using Objects now for some parts of my scripts...
      Do I need to run ObjCreate("winhttp.winhttprequest.5.1") everytime before any object stuff or can I just run it once at the beginning of my script and reuse it? Is $oHTTP.Open("GET", <url>) followed by $oHTTP.Send() pretty much the same as INetRead and can I use them interchangeably? Do I need to somehow delete the Object after creating it at the end of my script? - Answered by Helpfile Thanks!
    • jwhausk
      By jwhausk
      Hi, I would like a script to open Edge and navigate to 2 different pages
      Open Edge tab 1 www.MyHomePage.com,  Tab 2 www.google.com
      Thank you, John
    • rootx
      By rootx
      is there any way to change the color of the scrollbar?
      THX
    • kingjacob90
      By kingjacob90
      HI
      I am wanting to know what my CPU temp is but don't know what object to use. I don't relay know how objget works so would not know where to start. I have seen people integrate things like windows speech to text into their scripts but don't know how they know what object to use! How do I find the right object? And how dose it work?
       
      Thanks Jacob
×