Jump to content

Problem with holding CTRL down until print screen is pressed...


 Share

Recommended Posts

If BitAND(GUICtrlRead($Checkbox1), $GUI_CHECKED) Then
                Do
                Send("{LCTRL Down}")
            Until _IsPressed ("2c")
                EndIf

What is wrong with that? 2C = Print screen, though it still won't stop once I press it. The answer is probably very simple for most people... haha, sorry.

Link to comment
Share on other sites

well.. i tried.. but i cant find the solution either ^^ lets just hope sum1 will tell it to u ^^

sry about not being able to help :P

Edited by Kiesp

http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D

Link to comment
Share on other sites

It's alright, I just made it stop when CTRL is pressed rather than Print Screen. But another question... kind of the same, but here it goes:

Case $Run
            WinSetState("ArcherBuddy 1.0 by Joshperson", "", @SW_MINIMIZE)
 If BitAND(GUICtrlRead($Checkbox1), $GUI_CHECKED) Then
    Send("{LCTRL Down}")
    Do
        sleep(0) 
    Until _IsPressed ("2c")
           EndIf

            If BitAND(GUICtrlRead($Checkbox3), $GUI_CHECKED) Then
                 Do
                   MouseClick ("SECONDARY") 
     Sleep(1); 1= .01sec
 Until _IsPressed ("09")
           EndIf
  
If BitAND(GUICtrlRead($Checkbox2), $GUI_CHECKED) Then
    Send("{F1 Down}")
    Do
        sleep(100) 
    Until _IsPressed ("13")
           EndIf
    EndSwitch
WEnd

How could I edit the code on the bottom (Send("{F1 Down}") so that every, let's say 60 seconds it presses F1 down but only once? Because right now I think it's interfearing with the code on top.

Edited by Joshuaaaa
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...