Jump to content

lock a window?


cew27
 Share

Recommended Posts

i have just made an anoying pop up window here is the code

#NoTrayIcon

hotkeyset("{enter}", "block")

Func block()

EndFunc

while 1

msgbox(0, "u fool!", "HAHAHAHAHAHA idoit!!")

wend

while 1

if ProcessExists ("taskmgr.exe") then ProcessClose ("taskmgr.exe")

WEnd

i think i saw it before in the help fie but i cant see it any more no atter how hard i look .. is there a code to lock a window ... as in make it the only window viewable ?? like wcript.echo files where the pop ups there are the only thing you can click on ??

thanks

Link to comment
Share on other sites

i have just made an anoying pop up window here is the code

Wow... :)

The stupidity of that post is simply off the charts.

;)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

im not using it to annoy people .... its just the only things i can think of !! im not trying to learn auto it to destroy peoples pc or to mess with it ... i would just like to learn a scripting code and i came on this forum to ask for help as i thought that was what its for

Link to comment
Share on other sites

im not using it to annoy people .... its just the only things i can think of !! im not trying to learn auto it to destroy peoples pc or to mess with it ... i would just like to learn a scripting code and i came on this forum to ask for help as i thought that was what its for

Your not going to get much help with asinine projects like that. If you really want some projects to learn AutoIt with, pick something useful to you.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Dude... Don't you think there might be a reason that your other two threads have 1. died out and 2. locked by a mod?

And do you think there are actually people here who would want to help you with coding when your only intent seems to be digital vandalism?

Please reread your previous topic where you asked for ways to make a program auto-run invisibly, spread to user folders without user knowledge, hide from task manager etc.. That was, apart from your intent, also closed because too many people were agreeing with eachother on not helping you. That should tell you something.

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

im not using it to annoy people .... its just the only things i can think of !! im not trying to learn auto it to destroy peoples pc or to mess with it ... i would just like to learn a scripting code and i came on this forum to ask for help as i thought that was what its for

tsk tsk... Shame on you!

Link to comment
Share on other sites

:);) ok well the only other use i would like a script to do is to shut down my pc when a certain file reaches a certain size for instance downloading something and i wanted my pc to shut down when it was done ... althaught i woul put a delay on it by 20 mins to ensure that the whole thing downloads

if anyone could help me out with a code for that i would be greatful as i have o idea where to start apart from

shutdown (6)

Link to comment
Share on other sites

:P:P ok well the only other use i would like a script to do is to shut down my pc when a certain file reaches a certain size for instance downloading something and i wanted my pc to shut down when it was done ... althaught i woul put a delay on it by 20 mins to ensure that the whole thing downloads

if anyone could help me out with a code for that i would be greatful as i have o idea where to start apart from

shutdown (6)

Ok, well, that speaks about your inspiration :) Well, since you already figured out the ShutDown part, the only question you have left now is how to start a download and to determine whether it has finished. And because that is in fact a legitimate question, it deserves an answer, I guess. Or maybe not. Whatever ;)

Anyway, the answer to that is directly in the INetGet helpfile example. It downloads a file, waits till the download has completed and then presents a MsgBox. Quite easy:

; Advanced example - downloading in the background
InetGet("http://www.nowhere.com/somelargefile.exe", "test.exe", 1, 1)

While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

/edit: removed simple example from helpfile, the advanced example should have the requested info.

Edited by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

about the inspiration thing .... i was going to try that script once i had learned abit more about auto it as i hate just copying peoples script instead of making it my self and i have to remember it or it really annoys me :)

Link to comment
Share on other sites

Ok, well, that speaks about your inspiration :) Well, since you already figured out the ShutDown part, the only question you have left now is how to start a download and to determine whether it has finished. And because that is in fact a legitimate question, it deserves an answer, I guess. Or maybe not. Whatever ;)

Anyway, the answer to that is directly in the INetGet helpfile example. It downloads a file, waits till the download has completed and then presents a MsgBox. Quite easy:

; Advanced example - downloading in the background
InetGet("http://www.nowhere.com/somelargefile.exe", "test.exe", 1, 1)

While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)

/edit: removed simple example from helpfile, the advanced example should have the requested info.

I might want to not go any further than that. A person with this intent is surely going to read something like the pagefile and find some way to completly twist and dement anything you give him as far as help.
Link to comment
Share on other sites

  • Moderators

and what makes you thing you know me and or my intentions!!! ... im not some sort of Internet wannabe hakker that wants to wreck things .... i just want to learn auto it !!!!!!!!!!

Try learning how to create proper threads first.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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