AutoHotkey Community

It is currently May 26th, 2012, 12:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: December 12th, 2008, 4:57 pm 
Offline

Joined: November 29th, 2008, 12:35 am
Posts: 111
Location: United Kingdom
SoggyDog wrote:
@menaphus

Must you take up so much real estate with your sig?


oh yeh sorry I didnt realize it was that b ig when i added it il change

_________________
Adam
http://moourl.com/8w0tx
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2008, 5:21 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Aside from the size, I like the animated sig much better anyway.

Very cool...
I LOVE Evil Monkey.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2008, 7:04 pm 
Koolz


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2008, 11:37 pm 
Offline

Joined: November 29th, 2008, 12:35 am
Posts: 111
Location: United Kingdom
menaphus wrote:
SoggyDog wrote:
@menaphus

Must you take up so much real estate with your sig?


oh yeh sorry I didnt realize it was that b ig when i added it il change


I got a smaller one ;)

_________________
Adam
http://moourl.com/8w0tx
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2008, 4:05 am 
Offline

Joined: December 17th, 2008, 5:36 am
Posts: 80
What an awesome script....


I changed it up a little bit. I made it where you use the same button to hide all and show all. I also added mute but I made it only mute the volume on hide. I do not make it turn volume back on. I would rather do that manually until I know the "coast is clear", lol. When its hidden I have it change the task bar icon to a red circle and when its not hidden it changes it back. I did this just in case I hide it leave the computer and never bring them back. You can use what ever icons you want just name them appropriately. Last but not least I have it load a rogue internet page. I have mine going to the computer section of the website new egg. I think in the future when I get bored I will compile a list of 10 or 15 websites and have it go to one at random. You can change it to whatever you want but you should probably use a link that's address wont change frequently. The one I used is the main link for all computer stuff on new egg, its been that address for years.


Code:
^+q:: gosub ToggleNaughtyNice   

ToggleNaughtyNice:
ifequal, hidden, 0
   goto, ShowNice
else
   goto, ShowNaughty
return


ShowNice:      ;hide all
SoundGet, master_mute, , mute
ifequal, master_mute, off, SoundSet, 1, , mute 
WinGet, id, list,,, Program Manager
hidden = 1         ;set marker to note if hidden
Loop, %id%
{
    this_id := id%A_Index%
    WinGetTitle, this_title, ahk_id %this_id%
    WinHide, %this_title%
    FileAppend, %this_title%`n, temp.txt
}
Menu Tray, Icon, IconNice.ico                  
Return,

onexit:             ;show all
ShowNaughty:
hidden = 0
Loop, 20
{
FileReadLine, title, temp.txt, %A_Index%
WinShow, %title%
}
FileDelete, temp.txt
Menu Tray, Icon,  IconNaughty.ico
run, C:\Program Files\Mozilla Firefox\firefox.exe
WinWait, Mozilla Firefox,
IfWinNotActive, Mozilla Firefox, , WinActivate, Mozilla Firefox,
WinWaitActive, Mozilla Firefox
sleep, 100
send, ^l   ;goto address bar
sleep, 10
clipboard = http://www.newegg.com/Store/Computer.aspx?name=Computer-Hardware
send, ^v
sleep, 10
send, {enter}                  
Return,      
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2008, 8:53 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
Quote:
Code:
run, C:\Program Files\Mozilla Firefox\firefox.exe
WinWait, Mozilla Firefox,
IfWinNotActive, Mozilla Firefox, , WinActivate, Mozilla Firefox,
WinWaitActive, Mozilla Firefox
sleep, 100
send, ^l   ;goto address bar
sleep, 10
clipboard = http://www.newegg.com/Store/Computer.aspx?name=Computer-Hardware
send, ^v
sleep, 10
send, {enter}                   
Return,       
return
Well...

Why not just

Code:
Run, http://www.newegg.com/Store/Computer.aspx?

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2008, 9:50 pm 
Quote:
added a quick mute to the script for those who are beeing naughty with audio on


Yeah, those Runescape sounds will give you away every time, unless you mute them! ;)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2008, 8:42 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
Yes, The Runescape sound... :wink: Thats what im blocking out.

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2008, 11:13 pm 
Offline

Joined: November 29th, 2008, 12:35 am
Posts: 111
Location: United Kingdom
SpiderGames wrote:
Yes, The Runescape sound... :wink: Thats what im blocking out.

we cant be having anyone finding out your playing runescape with other people now can we ;)

_________________
Adam
http://moourl.com/8w0tx
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2008, 7:07 am 
Offline

Joined: December 17th, 2008, 5:36 am
Posts: 80
SpiderGames wrote:
Quote:
Code:
run, C:\Program Files\Mozilla Firefox\firefox.exe
WinWait, Mozilla Firefox,
IfWinNotActive, Mozilla Firefox, , WinActivate, Mozilla Firefox,
WinWaitActive, Mozilla Firefox
sleep, 100
send, ^l   ;goto address bar
sleep, 10
clipboard = http://www.newegg.com/Store/Computer.aspx?name=Computer-Hardware
send, ^v
sleep, 10
send, {enter}                   
Return,       
return
Well...

Why not just

Code:
Run, http://www.newegg.com/Store/Computer.aspx?


It will work fine if you are not using your internet browser to look at stuff. However if you are using your internet browser when you push the "panic button" it would hide everything then it would execute the Run, http://www.newegg.com/Store/Computer.aspx? command and that would just bring your most recently opened explorer window back to the desktop and open the link in a new tab. This kinda defeats the purpose, at least for me anyway. You could do it your way if you new you never needed to use your panic button while on the internet though.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2008, 3:19 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
your run comands open new tabs? 0_o

Mine dont.

Ah well.

besides i'd rather have MS word open with some half wrighten essay or something. =D

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2008, 6:35 pm 
Offline

Joined: June 9th, 2005, 10:49 am
Posts: 30
SpiderGames wrote:
your run comands open new tabs? 0_o

Mine dont.

Ah well.

besides i'd rather have MS word open with some half wrighten essay or something. =D


Yeah, I'm using IE7 and RUNning a website in AHK will open an existing IE7 instance and load the page in a new tab. Sure wish I knew how to control this 'feature' programmatically and cause it to open a new app instance instead of just a new tab in an existing instance.

_________________
-- Thanks, BeetleTX330


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2009, 3:07 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
I think if you do...

Run, C:/Programfiles/Ie/internetexplorer... or w/e your's is. It opens a new window.

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: New Release
PostPosted: January 27th, 2009, 5:05 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
Have you been naughty 2 is finally here! Better than ever.

List of windows, you can add "Safe" windows

All windows are hidden and show using a Unique ID this removed an old glitch


Saves options

Mutes

And A Screen Save option

Any Ideas, tips, comments or bugs please post below.


Code:
SoundGetWaveVolume, lastvol

dir = SIDerHider\save.spdr
name = SIDerHider
time = 500


IfExist, %name%
 {
    IfExist, %dir%
    {
       Loop, Read, %dir%
        {
         if A_Index = 1
          aot = %A_LoopReadLine%
        else if A_Index = 2
          mute = %A_LoopReadLine%
        else if A_Index = 3
          screen = %A_LoopReadLine%
       }
    }       
     else
     {
      FileAppend,0`n1`n0,   %dir%
       aot = 0
       mute = 1
       screen = 0   
   }
 }
else
{
 FileCreateDir, %name%
 FileAppend,0`n1`n0,   %dir%
 aot = 0
 mute = 1
 screen = 0
}
 


Gui, +ToolWindow
Gui, Add, Tab2, tab Buttons, Apps|Hidden|Options|Credits
Gui, Tab, 1
Gui, Add, Text,, Select "Safe" Apps
Gui, Add, listview, vlistview CHECKED, Name|Class|ID
Gui, +Resize
Gui, Tab, 2
Gui, Add, Button,, Unhide
Gui, Add, listview, vhidenlistview, Name|Class|ID
Gui, Tab, 3
Gui, Add, Text,, Please select the Hide Hotkey

if aot = 1
 Gui, Add, CheckBox,x10 y95 gaot CHECKED vAOT,Always On Top
else
 Gui, Add, CheckBox,x10 y95 gaot vAOT,Always On Top

if mute = 1
 Gui, Add, CheckBox, x10 y115 gmute vmute CHECKED, Silence
else
 Gui, Add, CheckBox, x10 y115 gmute vmute, Silence

if screen = 1
 Gui, Add, CheckBox, x10 y135 vscreen CHECKED, Screen Saver
else
 Gui, Add, CheckBox, x10 y135 vscreen, Screen Saver

Gui, Add, Button,, Save
Gui, Tab, 4
Gui, Add, Text,, Created by SpiderGames.`nTips and ideas are welcome.
Gui, Show,, %name%
Gui, Listview, listview
WinGet, id, list,,, Program Manager
Loop, %id%
{
this_id := id%A_Index%
WinGetClass, this_class, ahk_id %this_id%
WinGetTitle, this_title, ahk_id %this_id%
WinGet, this_ID,ID, ahk_id %this_id%
if this_title !=
{
LV_Add("",this_title,this_class,this_ID)
LV_ModifyCol()
}
}
SetTimer, reload, %time%
Return,

ButtonSave:
Gui, Submit, Nohide
FileDelete, %dir%
FileAppend, %aot%`n%mute%`n%screen%`n, %dir%
Return,

aot:
Gui, Submit, Nohide
if aot = 1
 WinSet, AlwaysOnTop, On, %name%
else if aot = 0
 WinSet, AlwaysOnTop, Off, %name%
Return,

mute:
Gui, Submit, Nohide
if mute = 0
{
SoundSetWaveVolume, %lastvol%
}
Return,

GuiSize:
if ErrorLevel = 1  ; The window has been minimized.  No action needed.
    return
; Otherwise, the window has been resized or maximized. Resize the Edit control to match.
NewWidth := A_GuiWidth - 40
NewHeight := A_GuiHeight - 60
GuiControl, Move, listview, W%NewWidth% H %NewHeight%
GuiControl, Move, tab, W%NewWidth% H%NewHeight%
NewHeight -= 40
GuiControl, Move, hidenlistview, W%NewWidth% H %NewHeight%
return

reload:
WinGet, id, list,,, Program Manager
Loop, %id%
{
if time = 0
 break
this_id := id%A_Index%
WinGetClass, this_class, ahk_id %this_id%
WinGetTitle, this_title, ahk_id %this_id%
WinGet, this_ID,ID, ahk_id %this_id%
if this_title !=
{
Loop % LV_GetCount()
{
if time = 0
 break
    LV_GetText(RetrievedText, A_Index,3)
     if this_ID = %RetrievedText%
      Break,
     if A_Index = % LV_GetCount()
     {
       LV_Add("",this_title,this_class,this_ID)
       LV_ModifyCol()
     }
}
}
}

Loop % LV_GetCount()
{
if time = 0
 break
    LV_GetText(RetrievedText, A_Index)
     IfWinNotExist, %RetrievedText%
       LV_Delete(A_Index)   
 }

Return,



^!s::
Hide:
Gui, Submit, NoHide
RowNumber = 0
time = Off
SetTimer, reload, %time%

Gui, Listview, listview
Loop % LV_GetCount()
{
RowNumber = % LV_GetNext(RowNumber,"Checked")
 if CheckedRows not contains %RowNumber%
  {
   if CheckedRows != 0
    {
    CheckedRows =  %CheckedRows%%RowNumber%`,
     }
   }
}

Loop, parse, CheckedRows, `,
{
Row%A_LoopField% = CHECKED
}   

Loop,  % LV_GetCount()   
{
Gui, Listview, listview
if Row%A_Index% != CHECKED
{
LV_GetText(RetrievedText, A_Index)
     LV_GetText(RetrievedText2, A_Index, 2)     
     LV_GetText(RetrievedText3, A_Index, 3)   
     WinHide,ahk_ID  %RetrievedText3%
      ifWinExist, %RetrievedText%
       {
       WinHide, %RetrievedText%
       }     

     Sleep, 100
     Gui, Listview, hidenlistview
     LV_Add("",RetrievedText,RetrievedText2,RetrievedText3)
     LV_ModifyCol()
}
}

Gui, Submit, NoHide
Gui, Listview, listview
time = 500
SetTimer, reload, %time%
if mute = 1
{
SoundGetWaveVolume, lastvol
SoundSetWaveVolume, 0
}
if screen = 1
{
Sleep, 1000
SendMessage, 0x112, 0xF170, 2,, Program Manager
}
Return,

OnExit:
ButtonUnHide:
time = Off
SetTimer, reload, %time%
Gui, Listview, hidenlistview

Loop, % LV_GetCount()
{
  Gui, Listview, hidenlistview

   LV_GetText(text, A_Index,3)
    WinShow, ahk_ID %text%
     Sleep, 100
}
LV_Delete()
Gui, Listview, listview
time = 500
SetTimer, reload, %time%
Return,
           

Guiclose:
ExitApp,

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 27th, 2009, 10:39 pm 
Offline

Joined: June 9th, 2005, 10:49 am
Posts: 30
BeetleTX330 wrote:
Yeah, I'm using IE7 and RUNning a website in AHK will open an existing IE7 instance and load the page in a new tab. Sure wish I knew how to control this 'feature' programmatically and cause it to open a new app instance instead of just a new tab in an existing instance.


Ok, so I've discovered that IE7's tabbing options can be adjusted so that RUN'd links will open in a new window rather than in a new tab (which is the default). I guess I'll have to incorporate a REG entry adjustment to set that flag before I RUN a web-link since I use some of my scripts on 'new' OS installs.

_________________
-- Thanks, BeetleTX330


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], DataLife and 15 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