JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 13.06.2012, 04:11
jorbjo
Guest
 
Posts: n/a
Default JDownloader steals focus

When i right click on a link in my browser and select "copy shortcut"

JDownloader moves its window ontop my browser and displays this link in the linkgrabber.

I cannot find a setting to disable this behaviour.

I want to copy a number of links from my browser and have them "silently" added to the linkgrabber. When I have selected all the links that I want I manually switch to the JDownloader window and add them to the download queue.

Last edited by Jiaz; 13.06.2012 at 10:42.
Reply With Quote
  #2  
Old 13.06.2012, 10:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

In Advanced Settings
linkgrabberframetotoponnewlinksnenabled , disable this

In case you have Trayicon enabled
Brin mainframe to top ...setup to your needs
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 13.06.2012, 19:16
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

Attached Images
File Type: jpg Snippy0001.jpg (191.7 KB, 3412 views)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #4  
Old 19.11.2012, 09:43
Knersis
Guest
 
Posts: n/a
Default Auto Take Focus

Hi

Is there a way I can get JD to stop from taking focus while I'm busy adding links.

Here what I do. On a web, say there are 5 links and I want to download them. I would right click them in Chrome and then click "Copy Link Address", now I would do this for all 5 links, but by the time get to the 3rd one JD pops up and displays the LinkGrabber tab.
Now this is all fine and well, but it takes focus and pops the whole window up over my Chrome browser window, so i would need to click back into Chrome and start right clicking again.
Its annoying and the old 0.9 did not do it.

Cheers
Reply With Quote
  #5  
Old 19.11.2012, 20:37
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,913
Default

Expert settings->Search for "grabberframe"->Disable

GreeZ pspzockerscene
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #6  
Old 20.11.2012, 08:32
Knersis
Guest
 
Posts: n/a
Default

I found this on likgrabberframetotoponnewlinksenabled, my check box was not checked.
Reply With Quote
  #7  
Old 22.11.2012, 20:12
JWalkerMR
Guest
 
Posts: n/a
Default same Problem

Hi,

i've got the same problem, using firefox.

Changing then value of GraphicalUserInterfaceSettings.linkgrabberframetotoponnewlinksenbaled doesn't change the behavior of JD2, either if "true" or "false".
Reply With Quote
  #8  
Old 22.11.2012, 22:50
Knersis
Guest
 
Posts: n/a
Default

Yip, no change. This thread is not solved for me as it does not fix the problem. I have also not been able to find anything else to change.
Reply With Quote
  #9  
Old 22.11.2012, 23:47
editestowy's Avatar
editestowy editestowy is offline
Polish Supporter
 
Join Date: May 2009
Location: PL
Posts: 3,026
Default

http://board.jdownloader.org/showthread.php?t=40852
Reply With Quote
  #10  
Old 23.11.2012, 08:52
Knersis
Guest
 
Posts: n/a
Default

Awesome, now it works for me. Did as follows from the other thread and this one.

Set this disabled
Settings > Advanced Settings > GraphicalUserInterfaceSettings.linkgrabberframetotoponnewlinksenabled

AND

Light Tray > Show JDownloader if new Links were grabbed > Only when Mainframe is minimized.

That way it will popup when minimized but not if already showing.
Reply With Quote
  #11  
Old 24.11.2012, 20:39
Topken Topken is offline
Bandwidth Beast
 
Join Date: Oct 2010
Posts: 135
Default

For those Firefox users try using a firefox addon like "Copy Links" It allows you to grab mulitple links behind text at one time so you dont have to grab each link separately.
Reply With Quote
  #12  
Old 24.11.2012, 22:51
Knersis
Guest
 
Posts: n/a
Default

Is there something similiar in Chrome?
Reply With Quote
  #13  
Old 24.11.2012, 23:14
Topken Topken is offline
Bandwidth Beast
 
Join Date: Oct 2010
Posts: 135
Default

I dont know those of you using Chrome can take a look and see.
Reply With Quote
  #14  
Old 14.03.2013, 00:08
jorbjo
Guest
 
Posts: n/a
Angry JD 2 is stealing focus

I have JD 2 running and downloading files.

I have disabled linkgrabberframetotoponnewlinksenabled

I copy some text that I want to paste into notepad

JD 2 is stealing focus and moves to the top even when the clipboard contents is not a url.

When the above setting is disabled JD should never move to top what ever is copied to the clipboard.
Reply With Quote
  #15  
Old 14.03.2013, 01:43
ReXTaR
Guest
 
Posts: n/a
Default

So you say that you disabled, where you did? in advanced options?because light tray appears that option available to choose from a list, not to enable or disable ... the option to say "Bring to front the main window to add new links, I have selected in: neverand works well, plus I have disabled the linkgrabber ...
Reply With Quote
  #16  
Old 14.03.2013, 04:29
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

seems to be the original author your current question, I have merged all common threads into this one. See my first reply it indicates the BOTH settings you need to define in order to disable this behaviour. Please search forum before making posts about the same thing. Thankyou
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #17  
Old 07.06.2013, 10:15
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Soo... let's start to fix this.



There are 2 options to change this focus behaviour one in the advanced settings GraphicalUserInterfaceSettings.linkgrabberframetotoponnewlinksenabled and one in the Tray Settings.... That's bad. I will change this to have one option
__________________
Reply With Quote
  #18  
Old 07.06.2013, 18:52
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

PLease use AdvancedConfig -> getWindowFocusActionWhenNewLinksAreAdded in the next update..

There are several options on what happens when new links were added:
  • NOTHING -->Taskbar Icon flashing only
  • REQUEST_FOCUS_IF_MAXIMIZED --> popup linkgrabber if frame is maximized - else taskbar flashing
  • REQUEST_FOCUS_IF_MAXIMIZED_OR_ICONIFIED --> popup linkgrabber if frame is not in tray - else taskbar flashing
  • ALWAYS_REQUEST_FOCUS --> popup linkgrabber always


To avoid the Taskbar flashing, use AdvancedConfig->TaskBarFlashEnabled
__________________
Reply With Quote
  #19  
Old 10.06.2013, 18:34
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

Quote:
Originally Posted by coalado View Post
PLease use AdvancedConfig -> getWindowFocusActionWhenNewLinksAreAdded in the next update..

There are several options on what happens when new links were added:
  • NOTHING -->Taskbar Icon flashing only
  • REQUEST_FOCUS_IF_MAXIMIZED --> popup linkgrabber if frame is maximized - else taskbar flashing
  • REQUEST_FOCUS_IF_MAXIMIZED_OR_ICONIFIED --> popup linkgrabber if frame is not in tray - else taskbar flashing
  • ALWAYS_REQUEST_FOCUS --> popup linkgrabber always
After update I found the following settings, filtering for "focus" :

GraphicalUserInterfaceSettings.focustriggerforcaptchadialogs
-Action that will be performed when the Linkgrabber adds new links.

NEVER
MAINFRAME_IS_MAXIMIZED
MAINFRAME_IS_MAXIMIZED_OR_ICONIFIED
MAINFRAME_IS_MAXIMIZED_OR_ICONIFIED_OR_TOTRAY

GraphicalUserInterfaceSettings.windowsrequestfocusonactivationenabled
-Set to true if you want JDownloader to steal focus when the window pops up

I set NEVER and disabled for the above settings, disabled again the Tray Icon, but when I copy a link, JD2 steals focus and shows Linkgrabber with the link.

What is the proper setting ?
In previous versions I had no problems with focus.

Another question: what is the relation between "focustriggerforcaptchadialogs" in the setting name and "Linkgrabber adds new links" in description ?
Reply With Quote
  #20  
Old 11.06.2013, 09:30
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default



graphicaluserinterfacesettings.focustriggerforcaptchadialogs
graphicaluserinterfacesettings.mainframepopuptriggerwhennewlinkswereadded


have these options now:
  • Never,
  • mainframe_is_maximized,
  • mainframe_is_maximized_or_iconified,
  • mainframe_is_maximized_or_iconified_or_totray

graphicaluserinterfacesettings.mainframepopuptriggerwhennewlinkswereadded
you can define when the mainframe should appear based on the current mainframe window state.

If you want the mainframe not only to appear on top, but also steal the focus - enable the graphicaluserinterfacesettings.windowsrequestfocusonactivationenabled flag


graphicaluserinterfacesettings.focustriggerforcaptchadialogs
you can define when the captcha dialog should steal focus - based on the current windowstate of the mainframe.

This is tested on a windows 7 64 bit machine with a jdk1.7 the whole behaviour might be different on a different setup..please test and give feedback.




Default:


Default Values are on mainframe_is_maximized. maximized is a bit missleading. it means "everything but iconified or invisile".

So the default behaviour is: If JDownloader is minimized to tray or to taskbar, the window will not appear if new links were added. In case of a Captcha Dialog, the dialog will appear on top, but it will NOT get the focus.

IF JDownloader is not minimized, Captcha Dialogs will appear and get the focus. If new links were added, the Linkgrabber will appear on top, but it will not get the focus.



This whole window and fopcus management is complicated, and works a bit different on every system. So please test. Ask here what you want, and I'll tell you the correct settings.
__________________

Last edited by coalado; 11.06.2013 at 09:37.
Reply With Quote
  #21  
Old 11.06.2013, 07:23
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default JD2 steals focus, no visible activity, using XP SP3

The Jun 10 version
in every 200 sec tries to steal focus. JD2 is in background, there is no visible activity, downloadlist and linkgrabber is empty.
The old, not updated version in other folder woks without this problem. as before.

Edit:

"Tray Icon" is disabled.
Reply With Quote
  #22  
Old 11.06.2013, 10:30
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Exactly 200 Seconds? are you sure?
Can you start JD2 in the console with java -jar JDownloader.jar -console an d check if there are any log outputs on the console - related to this event?
__________________
Reply With Quote
  #23  
Old 11.06.2013, 10:47
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

Quote:
Originally Posted by coalado View Post
Exactly 200 Seconds? are you sure?
Can you start JD2 in the console with java -jar JDownloader.jar -console an d check if there are any log outputs on the console - related to this event?
Exactly 3 min 20 sec, I measured more than 10 times with stopwatch.

No change on console, when button color changes.

Previously there is two intersting lines, probably when I put jd2 in background:
sun.awt.TimedWindowEvent[WINDOW_LOST_FOCUS,opposite=null,oldState=0,newState=0] on MAINFRAME
java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=null,oldState=0,newState=0] on MAINFRAME

Edit:
Sorry, I always rounded down from 3:24-3:27 .

Last edited by bici-boci; 11.06.2013 at 10:56. Reason: spelling corr
Reply With Quote
  #24  
Old 11.06.2013, 10:52
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

These lines are just debug code. I will remove them in time.

I'll try to reproduce the problem
__________________
Reply With Quote
  #25  
Old 11.06.2013, 23:13
shatter shatter is offline
Baby Loader
 
Join Date: Jun 2013
Posts: 6
Default

Quote:
Originally Posted by bici-boci View Post
The Jun 10 version
in every 200 sec tries to steal focus. JD2 is in background, there is no visible activity, downloadlist and linkgrabber is empty.
The old, not updated version in other folder woks without this problem. as before.

Edit:

"Tray Icon" is disabled.
Absolutely the same for me on Win7x64.
Reply With Quote
  #26  
Old 11.06.2013, 13:00
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

Their are three main states in windows os
a) maximise, not restored, not minimised; taking up the entire monitor
b) restore, not maximised, not minimised; but sizeable by the user. Useful if you divide up you monitor into different sections for multiple apps at the same time.
c) minimise, not restored and not maximised; not displayed! Either in the traditional sense not displayed but still contains entry within taskbar. OR many applications like JD (with light tray) offer the option to minimise to tray icon and remove taskbar entry.

working off maximised doesn't work well, as it doesn't support all the differing states, and even substate (tray).
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 11.06.2013 at 16:43.
Reply With Quote
  #27  
Old 11.06.2013, 13:22
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

Thanks raztoki,
According to these points, I think I use state B:
no program is minimized/maximized, everything is "displayed", the windows are partially or wholly visible or not visible.
Reply With Quote
  #28  
Old 11.06.2013, 19:27
Lram32's Avatar
Lram32 Lram32 is offline
Spanish Supporter
 
Join Date: Jul 2012
Location: Dark side of the moon
Posts: 9,905
Default

I have a question. How I can interact between the windows?
I have JD2 maximized, but when I do click in others opened windows I can't change to see that windows. I tryed several settings but I can't get it.

Also, if i have JD2 minimized to taskbar after ~3.23 minutes, JD2 is highlight and there is not activity in JD2. Tested in win Xp, Java 1.7

Thanks,
Reply With Quote
  #29  
Old 11.06.2013, 20:45
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

Quote:
Originally Posted by Lram32 View Post
I have a question. How I can interact between the windows?
I have JD2 maximized, but when I do click in others opened windows I can't change to see that windows. I tryed several settings but I can't get it.
I had one time a similar case with the new version - JD2 was always on top, (it was not maximized), but it was only one time.

Quote:
Originally Posted by Lram32 View Post
Also, if i have JD2 minimized to taskbar after ~3.23 minutes, JD2 is highlight and there is not activity in JD2. Tested in win Xp, Java 1.7
It is similar to my case (XP, Java 1.7 too), see
http://board.jdownloader.org/showpos...8&postcount=20

Maybe this time is the XP ForegroundLockTimeout registry setting,
default value 200000 msec, 200 sec , 3:20 min
in
registry at HKCU\Control Panel\Desktop,
to prevent programs from stealing focus.
Reply With Quote
  #30  
Old 12.06.2013, 13:39
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Quote:
Originally Posted by bici-boci View Post
I had one time a similar case with the new version - JD2 was always on top, (it was not maximized), but it was only one time.



It is similar to my case (XP, Java 1.7 too), see
http://board.jdownloader.org/showpos...8&postcount=20

Maybe this time is the XP ForegroundLockTimeout registry setting,
default value 200000 msec, 200 sec , 3:20 min
in
registry at HKCU\Control Panel\Desktop,
to prevent programs from stealing focus.

I guess I found the problem - and fixed it. please give it a try
__________________
Reply With Quote
  #31  
Old 12.06.2013, 14:38
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

Quote:
Originally Posted by coalado View Post
I guess I found the problem - and fixed it. please give it a try
After the second update today JD2 continues to work well for me, see my previous post in the morning, after the first update.
(No timeout after 3:20 min, no problem with window change).
Reply With Quote
  #32  
Old 11.06.2013, 23:36
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

I'm having problems with it also with default settings. It steals focus and doesn't even let go after selecting the application and then going to another via taskbar or alt tab.. it's aways on top. I have to minimise the application to continue along my merry way.

win7 64bit
jdk 1.7.0_21 64bit
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #33  
Old 11.06.2013, 23:37
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,913
Default

Same here.

GreeZ pspzockerscene
EDIT

Ticket:
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #34  
Old 11.06.2013, 23:43
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

Coalado had not time to teamview with me today =[ owell always tomorrow (as they say)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #35  
Old 12.06.2013, 10:04
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

I commited a "fix" 5 minutes ago. If this always on top problems occur again after updating, please give feedback.
__________________
Reply With Quote
  #36  
Old 12.06.2013, 10:16
bici-boci bici-boci is offline
JD Legend
 
Join Date: Mar 2009
Posts: 765
Default

It works fine now.
Reply With Quote
  #37  
Old 12.06.2013, 13:11
g3power
Guest
 
Posts: n/a
Default Mac: main window always on top

Yesterday I updated jD to the latest release. Its main window is now always on top. If I switch to Safari, I don’t see the windows that were behind the main window and it looses focus. I need to hide jD just to be able to use any other apps!

This is on 10.6. Behavior on 10.8 seems to be fine so this isn’t an issue there.

Last edited by g3power; 12.06.2013 at 14:19.
Reply With Quote
  #38  
Old 12.06.2013, 15:43
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,913
Default

Merged focus threads.

GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #39  
Old 12.06.2013, 18:19
Mystery's Avatar
Mystery Mystery is offline
Tera Loader
 
Join Date: Mar 2009
Location: Deutschland
Posts: 176
Default

The always on top problem seems to be fixed. But there are still some focus problems.
What I am always noticing is that JD seems to draw always a new window for less than a second.
What I am meaning is: always when the Captcha frame is coming I see in the background a clear white window for less then a second. Even if JD is minimized.
Another special thing is when the captcha frame comes while JD is minimized:
The Frame has definitely the focus but when I write the captcha nothing appears. If I click into the array after typing the captcha it will appear!
If I type the the captcha and press enter nothing happens until I click on the frame. Then it works as if I would have always typed into it. Very strange!
__________________
C'est la vie
Reply With Quote
  #40  
Old 13.06.2013, 13:28
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,980
Default

Are you sure? There is a difference between "Window is on top" and "Window has focus"

If the Captchawindow has focus, the Textfield is flashing (Caret is flashing)

I guess, that GraphicalUserInterfaceSettings.focustriggerforcaptchadialogs is not set corretly.

Please check the setting for GraphicalUserInterfaceSettings.focustriggerforcaptchadialogs


Quote:
Originally Posted by Mystery View Post
The always on top problem seems to be fixed. But there are still some focus problems.
What I am always noticing is that JD seems to draw always a new window for less than a second.
What I am meaning is: always when the Captcha frame is coming I see in the background a clear white window for less then a second. Even if JD is minimized.
Another special thing is when the captcha frame comes while JD is minimized:
The Frame has definitely the focus but when I write the captcha nothing appears. If I click into the array after typing the captcha it will appear!
If I type the the captcha and press enter nothing happens until I click on the frame. Then it works as if I would have always typed into it. Very strange!
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:24.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.