Jump to content

Recommended Posts

Posted

tgreat's method will work, another is using _IEAction($oIE, "visible") and _IEAction($oIE, "invisible") in conjunction with HotKeySet

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Posted

#RequireAdmin
#include<IE.au3>
#include<File.au3>
#include<GUIConstants.au3>
#include<Array.au3>

HotKeySet("+!h", "hidewindow") ;Shift-Alt-h
HotKeySet("+!s", "showwindow") ;Shift-Alt-s

_FileReadToArray($LinkSource,$Links)
_IELoadWaitTimeout($Timeout)
_IEErrorHandlerRegister()
$oIE=_IECreate("about:blank",0,$IEStatus,1,-1)
For $o=0 to $Repeat
    For $i=0 to $Amount     
        MAIN BODY OF CODE
Next

Func hidewindow()
    _IEAction($oIE, "visible")
EndFunc

Func showwindow()
    _IEAction($oIE, "invisible")
EndFunc

I am sorry did I do something wrong for Hotkey set.

Tried it but it does not seem to hide the window when I pressed Shift Alt h and show it when I pressed Shift Alt s

Posted

Just for the window ( not your code )

maybe...

#RequireAdmin
#include<IE.au3>
#include<File.au3>
#include<GUIConstants.au3>
#include<Array.au3>

HotKeySet("{F8}", "hidewindow")
HotKeySet("{F9}", "showwindow")
HotKeySet("{ESC}", "_Exit")

;_FileReadToArray($LinkSource,$Links)
;_IELoadWaitTimeout($Timeout)
_IEErrorHandlerRegister()
$oIE = _IECreate("about:blank");,0,$IEStatus,1,-1)
$oHandle = _IEPropertyGet($oIE, 'hwnd')

;'For $o=0 to $Repeat
;   For $i=0 to $Amount
;       MAIN BODY OF CODE
;Next

While WinExists($oHandle)
    Sleep(20)
WEnd


Func hidewindow()
    _IEAction($oIE, "invisible")
EndFunc   ;==>hidewindow

Func showwindow()
    _IEAction($oIE, "visible")
EndFunc   ;==>showwindow

Func _Exit()
    $oIE = ""
    Exit
EndFunc   ;==>_Exit

$oIE = ""
Exit

8)

NEWHeader1.png

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
×
×
  • Create New...