ShellExecute( "C:\Program Files\Mozilla Firefox\firefox.exe","Google - Mozilla Firefox","","open",@SW_HIDE) Sleep(2000) WinSetState( "Google - Mozilla Firefox","",@SW_SHOW)
Edited by DeathRow, 20 April 2012 - 01:16 PM.
Posted 20 April 2012 - 10:04 AM
ShellExecute( "C:\Program Files\Mozilla Firefox\firefox.exe","Google - Mozilla Firefox","","open",@SW_HIDE) Sleep(2000) WinSetState( "Google - Mozilla Firefox","",@SW_SHOW)
Edited by DeathRow, 20 April 2012 - 01:16 PM.
Posted 20 April 2012 - 10:47 AM
Posted 20 April 2012 - 11:39 AM
Lets talk about the reason... why would you try to HIDE the window at first, and the next thing you want to do is to SHOW it... ?
beats me.
Edited by DeathRow, 20 April 2012 - 11:39 AM.
Posted 20 April 2012 - 11:53 AM
Posted 20 April 2012 - 11:54 AM
Posted 20 April 2012 - 11:58 AM
ShellExecute( "C:Windowsregedit.exe","","","open",@SW_HIDE) Sleep(2000) WinSetState( "Registry Editor","",@SW_SHOW)
Posted 20 April 2012 - 12:23 PM
Posted 20 April 2012 - 12:33 PM
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
Posted 20 April 2012 - 12:35 PM
Posted 20 April 2012 - 01:14 PM
I saw my fault before you posted it and I quickly edit it and then I saw that you posted it too.I copied and pasted your code into my editor. You then edited your post to show it corrected. I then made my post with the code corrected. You just happen to correct it in your post the same way I did. You then try to say you didn't make an error. Nice try.
ShellExecute( "C:Program FilesMozilla Firefoxfirefox.exe","www.google.com","","open",@SW_HIDE) Sleep(2000) WinSetState( "Google - Mozilla Firefox","",@SW_SHOW)
Edited by DeathRow, 20 April 2012 - 01:14 PM.
Posted 20 April 2012 - 01:57 PM
opt("wintitlematchmode" , 2) ShellExecute( "C:Program FilesMozilla Firefoxfirefox.exe","www.google.com","","open",@SW_HIDE) Sleep(2000) WinSetState( "Google - Mozilla Firefox","",@SW_SHOW)
Edited by boththose, 20 April 2012 - 01:59 PM.
Posted 20 April 2012 - 02:24 PM
Posted 20 April 2012 - 02:42 PM
ShellExecute( "C:Program FilesMozilla Firefoxfirefox.exe","www.google.com","","open",@SW_HIDE)
Edited by DeathRow, 20 April 2012 - 02:43 PM.
Posted 20 April 2012 - 02:55 PM
Posted 20 April 2012 - 02:59 PM
Did you ever consider getting the handle of the window first and referencing that instead of the window's title?
Posted 20 April 2012 - 03:02 PM
From the help file:Does WinSetState command supports handles?
Window Handles / HWNDs
The variant datatype in AutoIt natively supports window handles (HWNDs). A window handle is a special value that windows assigns to a window each time it is created. When you have a handle you may use it in place of the title parameter in any of the function calls that use the title/text convention. The advantage of using window handles is that if you have multiple copies of an application open - which have the same title/text - you can uniquely identify them when using handles. When you use a window handle for the title parameter then the text parameter is completely ignored.
Various functions such as WinGetHandle, WinList and GUICreate return these handles. It is important to note that a window handle is not classed as a number or string - it is its own special type.
Note: Window handles will work no matter what WinTitleMatchMode is currently in use.
How to ask questions the smart way!
Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.
Posted 20 April 2012 - 04:46 PM
Posted 20 April 2012 - 05:30 PM
Stop being an argumentative bitch and work with the people trying to help you or I will remove your ability to receive support on this forum. Your attitude and behavior are not acceptable for somebody requesting help from volunteers.
Edited by DeathRow, 20 April 2012 - 05:31 PM.
Posted 20 April 2012 - 05:47 PM
0 members, 0 guests, 0 anonymous users