[Help] Hotkeys Working In Background

Posts 112 of 12 · Page 1 of 1
[Help] Hotkeys Working In Background
Hello MPGH , firstly thx for [mpgh] zoom for helping me and secondly i cant add hotkeys that works in backgrounds its like making an auto clicker with hotkeys but hotkeys doesnt work if the program is not on top help plox to make the hotkeys work in background , thx
PS : sorry for bad english & grammer

EDIT : Added files
virus scan http://www.virustotal.com/analisis/1...f93-1279715155
VB File and AuTo CliXeR.rarattachment deleted · 9 downloads before removal
Cool, and since we don't know your code we cannot help you...

Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on timer_tick(interval 100 is fine, do not forget to enable it -.-)

Code:
dim f1 as boolean

f1 = getasynckeystate(keys.f1)

if f1 then
'whatever
end if
Quote Originally Posted by Blubb1337 View Post
Cool, and since we don't know your code we cannot help you...

Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
on timer_tick(interval 100 is fine, do not forget to enable it -.-)

Code:
dim f1 as boolean

f1 = getasynckeystate(keys.f1)

if f1 then
'whatever
end if
i already know that -.-'' but its an auto clicker

watch code

Code:
Public Class Form1

    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
You cant do GetAsyncKeyState here cause if i put it first the auto clicker wont work i made this one

EDIT : Also I will attach the auto clicker and .vb files in the first post so if u need the files
just put it into a sub and execute the sub when the key is pressed...it'll work...
Quote Originally Posted by Blubb1337 View Post
just put it into a sub and execute the sub when the key is pressed...it'll work...
u mean like making a sub of form then put all things in it then make it with shortcut????

edit the code for me or explain

thx
Quote Originally Posted by Shadeyz346 View Post
u mean like making a sub of form then put all things in it then make it with shortcut????

edit the code for me or explain

thx
what about trying it yourself? :s just my thought...
Get virus scans and we will get it approved.
Tested, it works well.
File approved.
Code:
Public Class Form1

    Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
And then add all that blubb sayd in the timer
Thanks Endrit, The code is fine, I viewed it, just want to get the new guys in the habit of adding their virus scans


As far as the topic goes, I just read the title, It's not really a hard task and there are tons of ways of achieving this, Thanks to Hej(zoom) (or was it someone else) , there is a tutorial and creating a hotkeys Module to be used globally. So as long as the application is running it should work.

In either case, the comment "Do it for me" will get you no where here.

Follow the instructions above and do it yourself, then you can learn...

If you are going to use a timer, I suggest how to learning Multi thread, just a note.


System Wide hotkeys is your best approach


set your form's keypreview to "True" From properties
and add this codes to Form1-KeyDown
[php]If e.Keycode = Keys.F5 'or wut else Then
Your.Command
End If[/php]
Those hotkeys will only take affect if you focus the form, he probably wants system- and not program-wide hotkeys...

Though, this does not help him at all, if he does not get the timer working.
Posts 112 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?