AutoHotkey Community

It is currently May 25th, 2012, 11:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: January 28th, 2008, 6:38 pm 
Online

Joined: April 22nd, 2007, 6:33 pm
Posts: 1833
you might not be passing the proper hwnd??

at the moment for what ive written they would need to be connected to the internet to run it the 1st time, however, i could add the ability to put the encrypted information into a file to send at a later date and get the key to put into the program (so you would need the internet somewhere to get comfirmation)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 7:24 pm 
I use IE 6, win xp sp2.

Nothing happens when I try to close all the activated IE windows. I guess you don’t have the same problem. Any idée’s?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 7:35 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
the only reason i see that might be happening is if you don't have a postfix "Internet Explorer" in IE window titles, but by default you should have it.
Try to change MButton to a different hotkey and see if it works.
You shouldn't have any problems as i have the same exact config as you do. IE 6, XP service pack 2.

Last idea that comes to mind is, try to update your AHK if it's bellow current version.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 8:45 pm 
Hi

I don't have the postfix "I...E.." in the IE window title. But it came to my mind; Can't I use the "ahk_class IEFrame" instead.

Before posting my last post I tried another hotkey – no effect. But now that you mentioned it, it is probably the lack of the postfix.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 8:55 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
i thought that "Internet Explorer" is there all the time, my bad.
Great sollution, thanks :D , now scripts uses ahk_class.
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance Force
SetTitleMatchMode 2

ListItems = 0
Gui Add, ListView, x-4 y0 w210 h320 gSelected, Links
Gui Add, Button, x0 y321 w157 h30, Restore All
Gui Add, Button, x156 y321 w50 h30, Clear
Gui +AlwaysOnTop
return
   
MButton::
GroupAdd IEwin, ahk_class IEFrame
WinGet IDarray, list, ahk_class IEFrame
Loop %IDarray%   {
   ID := IDarray%A_Index%
   ControlGetText address, Edit1, ahk_id %ID%
   if (LV_GetCount() = 0) {
      LV_Add("", address)
      continue
   }
   Loop % LV_GetCount() {                            ;%
      LV_GetText(listContent, A_Index)
      FullList .= "`n" . listContent
   }
   If (InStr("`n" . FullList, address) == 0) {
      LV_Add("", address)
   }
}
GroupClose IEwin, A
return

~^space::
IfWinNotExist IE restore
   Gui Show, x293 y125 h352 w206, IE restore
else
   WinHide IE restore
Return

GuiClose:
ExitApp

ButtonRestoreAll:
Loop % LV_GetCount() {                            ;%
   LV_GetText(URL, A_Index)
   run %A_ProgramFiles%\Internet Explorer\IEXPLORE.EXE %URL%
}
WinHide IE restore
return

Selected:
Gui Submit, NoHide
if (A_GuiEvent = "DoubleClick") {
   LV_GetText(URL,   A_EventInfo)
   run %A_ProgramFiles%\Internet Explorer\IEXPLORE.EXE %URL%
}
return

ButtonClear:
LV_Delete()
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 9:14 pm 
Yhaa, I made that change to. It works.

But I hade a thought; When you retrieve thee closed windows the information “back” to previous webpages are gone - because the old ones was closed. But if they where to be hided instead!? I know there is no “GroupHide” command, but is it not possible.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 9:34 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
You are correct. Tic already suggested that, but i used grouping instead, i thought that all windows would be closed instantly if i use groups, i was wrong. I'll change that later.
Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2008, 11:10 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
Done, i updated my first post with the new code.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2008, 9:53 am 
Great! Thanks. As you notice, I’m new to the script language. Didn’t see that WinHide could be used with the group class.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2008, 3:56 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
Me 2 :D , i just found out.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg, tic and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group