Jump to content

Possible?


Recommended Posts

startloop:

IfWinExist, , Cannot find example01.dll, Goto, OK

IfWinExist, , Cannot find example02.dll, Goto, OK

IfWinExist, , Cannot find example03.dll, Goto, OK

IfWinExist, , Cannot find example04.dll, Goto, OK

IfWinExist, , Cannot find example05.dll, Goto, OK

IfWinExist, , Cannot find example06.dll, Goto, OK

IfWinExist, , Cannot find example07.dll, Goto, OK

IfWinExist, , Cannot find example08.dll, Goto, OK

IfWinExist, , Cannot find example09.dll, Goto, OK

IfWinExist, , Cannot find example10.dll, Goto, OK

endloop

So, there are 10 possible windows, all want

closing IF they appear, the autoit exe has

to run continuously........

The answer is - have 10 seperate exe's!!!

Er, no, so how can this be done without ten million

of my EXE running in the systemtray? I mean, loop

it or "re run" at the end by running itself, but stay

resident in the system tray? It seems to not be possible,

unless you have 10 EXE's running?

Shame, because I have plans for 2000 such lines of code in one EXE :think:

Link to comment
Share on other sites

startloop:

IfWinExist, , Cannot find example01.dll, Goto, OK

IfWinExist, , Cannot find example02.dll, Goto, OK

IfWinExist, , Cannot find example03.dll, Goto, OK

IfWinExist, , Cannot find example04.dll, Goto, OK

IfWinExist, , Cannot find example05.dll, Goto, OK

IfWinExist, , Cannot find example06.dll, Goto, OK

IfWinExist, , Cannot find example07.dll, Goto, OK

IfWinExist, , Cannot find example08.dll, Goto, OK

IfWinExist, , Cannot find example09.dll, Goto, OK

IfWinExist, , Cannot find example10.dll, Goto, OK

endloop

So, there are 10 possible windows, all want

closing IF they appear, the autoit exe has

to run continuously........

The answer is - have 10 seperate exe's!!!

Er, no, so how can this be done without ten million

of my EXE running in the systemtray? I mean, loop

it or "re run" at the end by running itself, but stay

resident in the system tray? It seems to not be possible,

unless you have 10 EXE's running?

Shame, because I have plans for 2000 such lines of code in one EXE :think:

I don't know if it is acceptable for you but you will get more help of these forums if you can use the version 3 of AutoIt. :(
Link to comment
Share on other sites

AutoIt 1-2-3. Does that do version 2 of AutoIt ? :think:

Actually no, however if you look at the v2 download and support pages, v3 is highly promoted... and since this was this persons first post ( most likely not realizizing the dif in v2 and v3 )

i thought i would "help" guide him/her in the right direction

8)

NEWHeader1.png

Link to comment
Share on other sites

I know v3 is a whole new syntax to learn, just to do this one specific thing.

I have used the v2 to v3 converters before, it fails in every case.

It scares me to think I might ever need to use it. Sorry, I thought

v2 was supported since the forum says "v2 Support".

v2 resembles English, all of it, whereas v3 resembles code,

all of it, I am pretty sure I don't have to learn a whole new

syntax just to make a script re run itself without going

nuts in my systemtray.

Imagine you're in France and you need some eggs, but

you dont need milk, bread, flour, sugar, bacon,

cheese... so you only need to learn the word for eggs then,

by the time you've learned the language you would have

starved to death!

PS anyone coming here asking how to make malicious

s/ware should have their IP broadcast to the biggest

hacker community there is, just find that community

and give them these people's IP, because they should

be coding in Delphi if they are writing a virus, not autoit,

it is in Task Manager for a start, jeez honestly, luzers man.

I think I should give up with AutoIt....

Because - if you say "IfWinExist" and loop that, it runs

itself millions of times! Only a taskkill /f /im will stop it,

or a reboot. I guess I could put a timer on it to stop this,

so it runs every 2 seconds.

But most times I put "Goto, OK" at the end it won't

go to OK button, even if the OK button is tabbed to,

or should I say tabbed back around to since the OK

button is the only button on these windows!

Why would v3 miraculously do all these things?

It seems more of an update of what the program

does (like making your own UI) rather than addressing

the stuff I have said - like, it won't hit OK in the simplest

of scenarios.

I will look into the Windows API and what causes the

window to appear, it is a "template" window for thousands

of DLL and EXE files, the "Unable To Locate Component"

window. Hmmmmm, more like I am unable to locate the

function that is called that locates THAT window.

Thanks for trying. My best bet is probably Visual C# I guess.

Microshaft make it incredibly difficult to work with this operating

system they ask people to pay for. Pay? Why, when I dunno how

to even change it or find anything? There are thousands of DLL

and EXE files, none with commented out info, they all just jump

right into a load of code, only one of them contains the 1 line of

code with the function called to display this (generic) window.

Just wish I knew what that function was and which DLL it is in.

If you can't answer the API question then, don't worry, neither

can experts-exchange and there are thousands of experts there!

Edited by Generic
Link to comment
Share on other sites

Generic, you can just choose an icon in the compiler interface. Alternatively, use CompileAu3.exe or AutoIt3Wrapper, and you can setup not only icon, but version strings, comments, whatever you like.

Now, I came to this thread looking for a way to discover if you can check if a window is hidden. But WinExist doesn't do it, because it returns true even if it is hidden.

So how to do it?

For instance, at the end if a function, I want to show the window again (because the function hid the window at its start) but *only* if it was previously shown. If it was previously hidden, it should remain hidden.

I've tried all sorts, and searching the manual has given me a headache (it always does!).

Anyone?

-mu

Link to comment
Share on other sites

  • 3 weeks later...

and number 3...

$state = WinGetState ($my_window)
if BitAnd($state, 2) then
    GUISetState(@SW_HIDE)
else
    GUISetState(@SW_SHOW)
endif

-mu

The man is posting v2-code in a v2-forum, while you're posting v3-code.

Ask me a question and I'll respond in Norwegian. Useful for you ? Neeh.

Link to comment
Share on other sites

It was my first day here, I wasn't even aware that V2 still existed, let alone was supported. I was more interested in trying to help, than understanding the forum's structure. You can handle it.

Anyways, perhaps seeing how simple all this is in V3, generic will upgrade. :)

-mu

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...