Jump to content

What can be the problem with this code?


careca
 Share

Recommended Posts

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

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

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

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

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

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.

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

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

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

this can help explaining it

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.

 
Link to comment
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

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

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

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

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

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.

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

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

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...