Sign in to follow this  
Followers 0
careca

What can be the problem with this code?

3 posts in this topic

#1 ·  Posted (edited)

Hi, the objective of this script is to start with windows, and start firefox, hidden, so that when i really want to open firefox,

it opens faster because it's already loaded in background. Reduced this to the bare minimum.

Local $exit
Do
If ProcessExists ("firefox.exe") Then
Sleep (1000)
Else
Run ("C:Program Files (x86)Nightlyfirefox.exe", "", @SW_HIDE)
Sleep (1000)
WinWait ("[CLASS:MozillaWindowClass]")
MsgBox (0, "", "Window exists")
WinSetState ("[CLASS:MozillaWindowClass]", "", @SW_HIDE) ; <--------------- Doesn't seem to work! either hide or minimize.
EndIf
Until $exit = 1

So i've put a msgbox to make sure it was going thru that part of the code, the box appears, but the window doesn't disappear.

Several times this worked, meaning, i could see the firefox process appearing in taskmanager, and no window came up,

i would start firefox and it started much faster, because it's already loaded, all was good,

restarted the pc, and firefox opens, and stays open, can't force it to minimize, tried some different ways, and while i don't have a response,

gonna try setting a button, of context menu item to force it to hide.

Greetz

careca

Edited by careca

Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

 

Share this post


Link to post
Share on other sites



this can help explaining it

1 person likes this

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Firefox fault, I understand now, but it's good to know it was fine on my end.

Maybe i could have searched for this first, but honestly didn't think it could be that,

thought it was a problem within my code.

Thank you.


Spoiler

Paster - Main function is to paste text, but has more functions.

OpenW - Open With... alternative, Open any file with any application, set it's icon, set application as default.

Renamer - Rename files and folders, remove portions of text from the filename etc.

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

 

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