Sign in to follow this  
Followers 0
Maffe811

list all open programs

7 posts in this topic

What would you think would be the best way to make a list of all open programs ?

Its the hardest thing with my script and i have no idea how to do it.

Suggestions are welcome!


[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Share this post


Link to post
Share on other sites



What would you think would be the best way to make a list of all open programs ?

Its the hardest thing with my script and i have no idea how to do it.

Suggestions are welcome!

You mean like programs? and not processes like task manager?


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes, cause i know of ProcessList()

The plan is to make a program that swaps between to set programs when you hit a hotkey.

So im gonna make two lists and you choose a program on each list, and set a hotkey.

So when you press the hotkey, it will swap between the windows.

Edited by Maffe811

[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

So then what you mean is that you want to list all open windows? Sorry if I do not understand, I'm just having a hard time comprehending this.

But it sounds like you really want to just detect two particular windows, and set a hot key to switch between the windows right?

Sort of like how you usually use [ALT] + [TAB] in windows right?

Edited by ApudAngelorum

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

Yes, basicly Alt+Tab, but on some specific windows you selected!

So you select window one, select window two, set hotkey and thats it

You press the hotkey, it switches back and forth.

All i really need is ProgramsList() like ProcessList() and i would be on my way.


[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Yes, basicly Alt+Tab, but on some specific windows you selected!

So you select window one, select window two, set hotkey and thats it

You press the hotkey, it switches back and forth.

All i really need is ProgramsList() like ProcessList() and i would be on my way.

I see now, I was confused because of the way you're referring to application/program windows as programs instead of windows, people don't usually describe them that way.

Anyway, sounds like you want to look into the function WinList().

Opt("WinTitleMatchMode", 4)
Global $WindowNames[2] = ["window 1", "window 2"]; window names, or use classes, whatever floats your boat
Global $WinList

Func SearchWindows()
    $WinList = WinList()
    For $I = 0 To $WinList[0][0]
        For $V = 0 To UBound($WindowNames,1) - 1
            If StringInStr($WinList[$I][0],$WindowNames[$V][0]) Then
                ;Do something to detect your window name and set it's hot key
            EndIf
        Next
    Next
EndFunc
Edited by ApudAngelorum

Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

I see now, I was confused because of the way you're referring to application/program windows as programs instead of windows, people don't usually describe them that way.

Yeah, its late, im having trouble even figuring out how to explain the simplest things.

So, sorry about the not so very best explanation of things :P

Anyway, sounds like you want to look into the function WinList().

Damnit, i knew there was something like that!

Thanks


[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

Share this post


Link to post
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
Sign in to follow this  
Followers 0