Sign in to follow this  
Followers 0
electrico

Event if key combination is pressed!

14 posts in this topic

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... ^_^

Share this post


Link to post
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.

Share this post


Link to post
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. '

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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?)

Share this post


Link to post
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.

Share this post


Link to post
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 ;)

Share this post


Link to post
Share on other sites

#11 ·  Posted

Yes, man you are right, but she always makes keyloggers for such events ^_^

Share this post


Link to post
Share on other sites

#12 ·  Posted

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.

Share this post


Link to post
Share on other sites

#14 ·  Posted

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 ^_^

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