Sign in to follow this  
Followers 0
toothyXdip

I have a problem

3 posts in this topic

#1 ·  Posted (edited)

If you open my script and use it you will see that it has 3 hotkeys for it to send z, b, and left mouse click over and over again.

I want to use all those hotkeys at once. Is there a way i can do this?. If i can get all these hotkeys in my program can i run all of them at the same time?????

Also i want to make 4 more hot keys:

1. is to set F7 to be a hot key of F8 and F9 (activeate them both at the same time)

2. set F8 to set a spot on the screen and when that spot changes color for it to send "0" (numbers above home row. So shite + 0 would equal ")" )once (you press it and it sets the spot)

3. same as F8 but instead of when it changes color to "9" (numbers above home row. So shite + 9 would equal "(" )

4. (On my program i have a input box) set F10 to press "8" (numbers above home row. So shite + 8 would equal "*" ) and would only press it when value in the box = 0 and the user could pick the number from the box and it would count down by one in seconds I think i can figure out the count down part but the part about the user being able to set the number to start counting down from from the PROGRAM not script editor

o ya to change font color, size, face is it the style or exstyle and if neither then what

THANKS!!!

remember in not asking for a script just how to do it cause manly the 1, 2, and 3 are confusing me the most

( a script would be nice though lol)

Here's my script:

Global $F5OnOff
Global $F6OnOff
Global $F11OnOff
HotKeySet('{F5}', '_SendB')
HotKeySet('{F6}', '_SendZ')
HotKeySet('{F11}', '_SendLeftClick')
#include <GUIConstants.au3>
            Opt("GUIOnEventMode", 1)

GUICreate("Program (In Progress)",220,200, 100,200)
GUISetBkColor (0x00E0FFFF)  
GUICtrlSetOnEvent($GUI_EVENT_CLOSE, "onclick") 
GUICtrlCreateLabel("1." & @CRLF & "F5 Toggle Pressing B" & @CRLF & @CRLF &  "2." & @CRLF & "F6 Toggle Pressing Z" & @CRLF & @CRLF &  "F11 Toggle Auto Click Left", 50, 10)
GUICtrlCreateInput("Enter Amount In Sec.", 55, 120, 110, 20)
$user = GUICtrlCreateDummy()
GUICtrlSetOnEvent(-1, "Onexit")
$button = GUICtrlCreateButton ("Close",75,170,70,20)
GUICtrlSetOnEvent(-1, "onclick") 
GUISetState()

While 1
   Sleep (100)
Wend

Exit

Func onclick()
   GUICtrlSendToDummy($user) 
EndFunc

Func OnExit()
   
   Exit
EndFunc


While 1
    Sleep(100)
WEnd

Func _SendB()
    $F5OnOff = Not $F5OnOff
    While $F5OnOff
        Send('b')
        Sleep(10)
    WEnd
    Return ''
EndFunc

While 1
    Sleep(100)
WEnd

Func _SendZ()
    $F6OnOff = Not $F6OnOff
    While $F6OnOff
        Send('z')
        Sleep(10)
    WEnd
    Return ''
EndFunc

Func _SendLeftClick()
    $F11OnOff = Not $F11OnOff
    While $F11OnOff
        MouseClick('Left')
    WEnd
    Return ''
EndFunc
Edited by toothyXdip

---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

Share this post


Link to post
Share on other sites



maybe...

*********** NOT TESTED

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

Global $F5OnOff
Global $F6OnOff
Global $F11OnOff

HotKeySet('{F5}', '_SendB')
HotKeySet('{F6}', '_SendZ')
HotKeySet('{F11}', '_SendLeftClick')


GUICreate("Program (In Progress)",220,200, 100,200)
GUISetBkColor (0x00E0FFFF)  
GUICtrlSetOnEvent($GUI_EVENT_CLOSE, "onclick")
GUICtrlCreateLabel("1." & @CRLF & "F5 Toggle Pressing B" & @CRLF & @CRLF &  "2." & @CRLF & "F6 Toggle Pressing Z" & @CRLF & @CRLF &  "F11 Toggle Auto Click Left", 50, 10)
GUICtrlCreateInput("Enter Amount In Sec.", 55, 120, 110, 20)
$user = GUICtrlCreateDummy()
GUICtrlSetOnEvent(-1, "Onexit")
$button = GUICtrlCreateButton ("Close",75,170,70,20)
GUICtrlSetOnEvent(-1, "onclick")
GUISetState()


While 1
   Sleep (10)
   If $F5OnOff Then Send('b')
   If $F6OnOff Then Send('z')
   If $F11OnOff Then MouseClick('Left')
Wend

Exit

; Functions ----------------------

Func onclick()
   GUICtrlSendToDummy($user)
EndFunc

Func OnExit()
   Exit
EndFunc

Func _SendB()
    $F5OnOff = Not $F5OnOff
EndFunc

Func _SendZ()
    $F6OnOff = Not $F6OnOff
EndFunc

Func _SendLeftClick()
    $F11OnOff = Not $F11OnOff
EndFunc

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

THANKS!

it worked i can use them all at once

now i have a question does any1 know how to do the other stuff manly just how to set a spot and use a hotkey when it changes color

0.o cause i have NO CLUE

but thanks again im going to play around with that a little :whistle:


---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

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