Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

ProjectDox


  • Please log in to reply
3 replies to this topic
TimF
  • Members
  • 2 posts
  • Last active: Oct 30 2015 08:05 PM
  • Joined: 29 Oct 2015

I use this program called ProjectDox. The program uses IE windows. The problems is that it constantly makes you log in. PIA. Is there anyway to refresh all of IE windows in the background? The windows may not be the top window. I have tried various scripts and cannot get anything to work. Part of the problem is the windows change titles depending on which project is opened

 

Example: https://eplanreview....?ProjectID=7289- ePlanReview - Internet Explorer ahk_class IEFrame

 

I need something that runs like every 30 minutes in the background. 

 

Probably, not doable but I thought I would ask.

 

Thank you for your time and help.

 

I searched and found the below but it does not work.

 

SetTimer, refreshFtp, 10000
 
refreshFtp:
WinGet, windows, List, https://
 
Loop %windows%
{
AhkID := windows%A_Index%
WinGetClass,AHKClass, ahk_id %AhkID%
if AHKClass = IEFrame
   PostMessage, 0x111, 41504, 0 , , ahk_id %AhkID%
if AHKClass = ExploreWClass
   PostMessage, 0x111, 41504, 0 , , ahk_id %AhkID%
if (AHKClass = IEFrame or AHKClass = ExploreWClass) 
   PostMessage, 0x111, 41504, 0 , , ahk_id %AhkID% this if (X or Y) didn't work for some reason
}
return
 
 


JMeneses
  • Members
  • 161 posts
  • Last active: Oct 30 2015 02:10 PM
  • Joined: 17 Feb 2011

Try this 

if (AHKClass = "IEFrame" or AHKClass = "ExploreWClass")
   PostMessage, 0x111, 41504, 0 , , ahk_id %AhkID% 


TimF
  • Members
  • 2 posts
  • Last active: Oct 30 2015 08:05 PM
  • Joined: 29 Oct 2015

Thanks but still does not seem to be working.



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
The script as you posted it will check the open windows only once and then exit, because it is not persistent (see second paragraph).

I would suggest creating a Window Group and specifying that group when calling the WinGet List command. Then you can just iterate through the windows without the need to check the class of each one.