Jump to content

Event if key combination is pressed!


Recommended Posts

Dear collegues, can you help me to make short script that will close window named one.lv if "iamgood" keycombination is pressed? And after script is ran, it must run again and wait until someone again will try to hack my one.lv account. It is very very important for me! My girl always wants to check my private messages. PLEASE... HELP Me... ^_^

Link to comment
Share on other sites

Dear collegues, can you help me to make short script that will close window named one.lv if "iamgood" keycombination is pressed? And after script is ran, it must run again and wait until someone again will try to hack my one.lv account. It is very very important for me! My girl always wants to check my private messages. PLEASE... HELP Me... ^_^

I sympathize for you.
Link to comment
Share on other sites

Dear collegues, can you help me to make short script that will close window named one.lv if "iamgood" keycombination is pressed? And after script is ran, it must run again and wait until someone again will try to hack my one.lv account. It is very very important for me! My girl always wants to check my private messages. PLEASE... HELP Me... ^_^

HotKeySet ( "key" [, "function"] )
While 1
YourFunc();<- Your func here
WinKill ( "title" [, "text"] )
EndFunc
Wend

Not sure what you mean with ' until someone again will try to hack my one.lv account. '

Link to comment
Share on other sites

I maned that program must re-run again after it is once done. Thank you very very much!!!!

In this case consider:

HotKeySet ( "key", "YourFunc" )
While 1
Sleep(100)
YourFunc();<- Your func here
WinKill ( "title", "text" )
Run ( "filename", "workingdir", @SW_MAXIMIZE )
EndFunc
Wend
Edited by Qousio
Link to comment
Share on other sites

Use this code:

_do(); Starts function


While 1 ; keeps script active
    sleep(10) ; Reduce CPU load
    
WEnd
 
 
 Func _do();  Function start
     $word = InputBox("???", "", "", "*", 300, 120) ; So Input box
     
    If $word = "Iamgood" Then ; If inpur box has Iamgood type in it move to next lime
    WinClose("one.lv", "") ; Close the window "one.lv"
    Run("myexe.exe") ; Run exe again
    Sleep(1000) ; Sleep for 1 second
    Exit;exit script(Dont worry another one has already started
    EndIf
 EndFunc

Compile it as "myexe.exe" (i trust you know how to do this?)

Link to comment
Share on other sites

Rorka this is cool, but actually I dont want inputbox to appear, i want to close one.lv if there, in the window "one.lv" she will try to login with my "iamgood" account. ^_^ can you please a bit rewrite that variable, so it will not popup inputbox, but will only seek if key combinatoin is pressed? ...

You all are great, guys, thx really for the help.

Link to comment
Share on other sites

Rorka this is cool, but actually I dont want inputbox to appear, i want to close one.lv if there, in the window "one.lv" she will try to login with my "iamgood" account. ^_^ can you please a bit rewrite that variable, so it will not popup inputbox, but will only seek if key combinatoin is pressed? ...

You all are great, guys, thx really for the help.

Sorry i cant... I dont kno ho to do that ;)

Link to comment
Share on other sites

you can try this:

...

though it has one flaw (if user didn't typed correctly the password, and delete some of the middle chars, then retype them, he could pass this script's security)

edit: forgot to delete some extra lines!

Sandin, this is not a good example, especially in an open topic.
Link to comment
Share on other sites

Electrico, you do realise what your asing for is basically a keylogger? I don't think it is allowed to discuss such software on these forums.

If you just want to close+open the game with a hotkey, use the code posted above.

ya, I was carried away, deleted the post due to malversation.

Good ^_^

Link to comment
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
 Share

  • Recently Browsing   0 members

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