Sign in to follow this  
Followers 0
yunus

Hide show window

6 posts in this topic

Help I'm new. 1.window hide and show problem. hotkey f11 set hide, f21 set to show

2.how its myprogram all time taskbar menu hide

My English less. excuse me!

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include <IE.au3>

#include <GuiButton.au3>

#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")

HotKeySet("{F11}", "gizle")

HotKeySet("{F12}", "goster")

Opt("TrayIconHide", 1)

$windowname = ("Msn Web Messenger")

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()

GUICreate("Msn Web Messenger", 640, 580, _

(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _

$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 638, 540)

$GUI_Button_Back = GUICtrlCreateButton("Geri", 10, 545, 100, 30)

$GUI_Button_Forward = GUICtrlCreateButton("İleri", 115, 545, 100, 30)

$GUI_Button_Home = GUICtrlCreateButton("Giriş", 220, 545, 100, 30)

$GUI_Button_Stop = GUICtrlCreateButton("Dur", 325, 545, 100, 30)

$GUI_Button_refresh = GUICtrlCreateButton("Yenile", 430, 545, 100, 30)

$GUI_Button_exit = GUICtrlCreateButton("Kapat", 535, 545, 100, 30 )

GUISetState(@SW_SHOW)

_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $GUI_Button_Home

_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")

Case $msg = $GUI_Button_Back

_IEAction ($oIE, "back")

Case $msg = $GUI_Button_Forward

_IEAction ($oIE, "forward")

Case $msg = $GUI_Button_Stop

_IEAction ($oIE, "stop")

Case $msg = $GUI_Button_refresh

_IEAction ($oIE, "refresh")

EndSelect

WEnd

GUIDelete()

Func gizle()

WinSetState($windowname, "", @SW_HIDE)

EndFunc

Func goster()

WinSetState($windowname, "", @SW_RESTORE)

EndFunc

Func Terminate()

Exit 0

EndFunc

Share this post


Link to post
Share on other sites



yunus,

WinSetState() should be the function you're looking for.

Take a gander at the help file and you'll be good to go.

James

I looked into the help file. I can not do for help wanted

Share this post


Link to post
Share on other sites

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <GuiButton.au3>
#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")
HotKeySet("{F11}", "gizle")
HotKeySet("{F12}", "goster")
Opt("TrayIconHide", 1)

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
$hGUI = GUICreate("Msn Web Messenger", 640, 580, _
(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 638, 540)
$GUI_Button_Back = GUICtrlCreateButton("Geri", 10, 545, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("İleri", 115, 545, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Giriş", 220, 545, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Dur", 325, 545, 100, 30)
$GUI_Button_refresh = GUICtrlCreateButton("Yenile", 430, 545, 100, 30)
$GUI_Button_exit = GUICtrlCreateButton("Kapat", 535, 545, 100, 30 )

GUISetState(@SW_SHOW)
_IENavigate ($oIE, "[url="http://nairobi.ebuddy.com/vo7.7.5/start.html"]http://nairobi.ebuddy.com/vo7.7.5/start.html[/url]")

While 1
 $msg = GUIGetMsg()
 Select
  Case $msg = $GUI_EVENT_CLOSE
   ExitLoop
  Case $msg = $GUI_Button_Home
   _IENavigate ($oIE, "[url="http://nairobi.ebuddy.com/vo7.7.5/start.html"]http://nairobi.ebuddy.com/vo7.7.5/start.html[/url]")
  Case $msg = $GUI_Button_Back
   _IEAction ($oIE, "back")
  Case $msg = $GUI_Button_Forward
   _IEAction ($oIE, "forward")
  Case $msg = $GUI_Button_Stop
   _IEAction ($oIE, "stop")
  Case $msg = $GUI_Button_refresh
   _IEAction ($oIE, "refresh")
 EndSelect
WEnd

GUIDelete()

Func gizle()
 GUISetState(@SW_HIDE)
EndFunc

Func goster()
 GUISetState(@SW_RESTORE)
EndFunc 

Func Terminate()
 Exit 0
EndFunc

Try that :D

James

Share this post


Link to post
Share on other sites

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <GuiButton.au3>
#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")
HotKeySet("{F11}", "gizle")
HotKeySet("{F12}", "goster")
Opt("TrayIconHide", 1)

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
$hGUI = GUICreate("Msn Web Messenger", 640, 580, _
(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 638, 540)
$GUI_Button_Back = GUICtrlCreateButton("Geri", 10, 545, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("İleri", 115, 545, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Giriş", 220, 545, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Dur", 325, 545, 100, 30)
$GUI_Button_refresh = GUICtrlCreateButton("Yenile", 430, 545, 100, 30)
$GUI_Button_exit = GUICtrlCreateButton("Kapat", 535, 545, 100, 30 )

GUISetState(@SW_SHOW)
_IENavigate ($oIE, "[url="http://nairobi.ebuddy.com/vo7.7.5/start.html"]http://nairobi.ebuddy.com/vo7.7.5/start.html[/url]")

While 1
 $msg = GUIGetMsg()
 Select
  Case $msg = $GUI_EVENT_CLOSE
   ExitLoop
  Case $msg = $GUI_Button_Home
   _IENavigate ($oIE, "[url="http://nairobi.ebuddy.com/vo7.7.5/start.html"]http://nairobi.ebuddy.com/vo7.7.5/start.html[/url]")
  Case $msg = $GUI_Button_Back
   _IEAction ($oIE, "back")
  Case $msg = $GUI_Button_Forward
   _IEAction ($oIE, "forward")
  Case $msg = $GUI_Button_Stop
   _IEAction ($oIE, "stop")
  Case $msg = $GUI_Button_refresh
   _IEAction ($oIE, "refresh")
 EndSelect
WEnd

GUIDelete()

Func gizle()
 GUISetState(@SW_HIDE)
EndFunc

Func goster()
 GUISetState(@SW_RESTORE)
EndFunc 

Func Terminate()
 Exit 0
EndFunc

Try that :huggles:

James

Thanks James :D

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Help I'm new. 1.window hide and show problem. hotkey f11 set hide, f21 set to show

2.how its myprogram all time taskbar menu hide

My English less. excuse me!

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include <IE.au3>

#include <GuiButton.au3>

#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")

HotKeySet("{F11}", "gizle")

HotKeySet("{F12}", "goster")

Opt("TrayIconHide", 1)

$windowname = ("Msn Web Messenger")

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()

GUICreate("Msn Web Messenger", 640, 580, _

(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _

$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)

$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 638, 540)

$GUI_Button_Back = GUICtrlCreateButton("Geri", 10, 545, 100, 30)

$GUI_Button_Forward = GUICtrlCreateButton("İleri", 115, 545, 100, 30)

$GUI_Button_Home = GUICtrlCreateButton("Giriş", 220, 545, 100, 30)

$GUI_Button_Stop = GUICtrlCreateButton("Dur", 325, 545, 100, 30)

$GUI_Button_refresh = GUICtrlCreateButton("Yenile", 430, 545, 100, 30)

$GUI_Button_exit = GUICtrlCreateButton("Kapat", 535, 545, 100, 30 )

GUISetState(@SW_SHOW)

_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case $msg = $GUI_Button_Home

_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")

Case $msg = $GUI_Button_Back

_IEAction ($oIE, "back")

Case $msg = $GUI_Button_Forward

_IEAction ($oIE, "forward")

Case $msg = $GUI_Button_Stop

_IEAction ($oIE, "stop")

Case $msg = $GUI_Button_refresh

_IEAction ($oIE, "refresh")

EndSelect

WEnd

GUIDelete()

Func gizle()

WinSetState($windowname, "", @SW_HIDE)

EndFunc

Func goster()

WinSetState($windowname, "", @SW_RESTORE)

EndFunc

Func Terminate()

Exit 0

EndFunc

Try this code

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#include <GuiButton.au3>
#include <GUIConstants.au3>

HotKeySet("{ESC}", "Terminate")
HotKeySet("{F11}", "gizle")
HotKeySet("{F10}", "goster")
Opt("TrayIconHide", 1)
$windowname = ("Msn Web Messenger")
_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
$handle = GUICreate("Msn Web Messenger", 640, 580, _
(@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 638, 540)
$GUI_Button_Back = GUICtrlCreateButton("Geri", 10, 545, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("?leri", 115, 545, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Giri?", 220, 545, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Dur", 325, 545, 100, 30)
$GUI_Button_refresh = GUICtrlCreateButton("Yenile", 430, 545, 100, 30)
$GUI_Button_exit = GUICtrlCreateButton("Kapat", 535, 545, 100, 30 )
GUISetState(@SW_SHOW)
_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")

While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $GUI_Button_Home
_IENavigate ($oIE, "http://nairobi.ebuddy.com/vo7.7.5/start.html")
Case $msg = $GUI_Button_Back
_IEAction ($oIE, "back")
Case $msg = $GUI_Button_Forward
_IEAction ($oIE, "forward")
Case $msg = $GUI_Button_Stop
_IEAction ($oIE, "stop")
Case $msg = $GUI_Button_refresh
_IEAction ($oIE, "refresh")

EndSelect
WEnd

GUIDelete()

Func gizle()
GUISetState(@SW_HIDE)
EndFunc

Func goster()
GUISetState(@SW_SHOW)
EndFunc

Func Terminate()
Exit 0
EndFunc
Edited by wolf9228

صرح السماء كان هنا

 

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  
Followers 0