Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enterpad Tips - Do MultipleClicks On Each Enter Keys
#1
Enterpad Tips - Do MultipleClicks On Each Enter Keys.

I must say that working with a Enterpad Device from Cedeq, is a must have for All people that want to Work faster on Desktop Computer or Windows Tablets. you can have all your favorite Keyboard Shortcuts Combitions on Each Enter Keys. Press these Keys and it will automatic execute that Macro Script. You can use it with any kind of Applications for example: PhotoShop, Gimp, Corel Painter, Auto Cad, AutoDesk , Microsoft Office SpreadSheats, Blender, zbrush, MicroSoft Visual Studio, Libre Office, Html, Webdesign, and my more.

Improve your Computer Movements And stay Always With your Hand on the Mous Device.

[Image: YQAZKSa.png]

I Did Find a very Cool Ahk Script From Here, Enterpad Commands.
If you work on a Windows System, You can use the Code for Ahk Enterpad Device.
I did Change the Code a little bit,
and now i can do Double Clicks or Multiple Clicks on Each Enter Keys.

[Image: Zgnxxop.png]
Now i can Choose What Ahk Script must be executed if i press a count of times of these Enter keys.

I did Make for All Users an Universal Code, So that They can Simple Chance or optimize it, This Ahk Code:
This Code can do this:
It will Count the Clicks in a certain ms time, if it reach that time, Then it will use that Count Value to Execute that part of Ahk code. How Nice is that.

Code:
#NoEnv
;#SingleInstance force
;#NoTrayIcon

a1 := -1
b1 := 0
 
a2 := -1
b2 := 0


;-----------------------------------------------------------001------
001: ;MultipleClicks For Enter Key Number 1
if(a1 = -1)
{
a1 := 4
#Persistent
SetTimer, CountdownEnterKey1, 100
}
else
{
a1 := 3
}
return
;-----------------------------------------------------------002------
002: ;MultipleClicks For Enter Key Number 2
if(a2 = -1)
{
a2 := 3
SetTimer, CountdownEnterKey2, 100
}
else
{
a2 := 3
}
return
;-----------------------------------------------------------...------
;-----------------------------------------------------------230------

CountdownEnterKey1:
if(a1 = 3)
{
b1 := b1 + 1
}
if(a1 = 0)
{
;msgbox you did Click <F1> Key > %b1%x times
if (b1=1)
{
;if Click 1x Time - Then Execute Ahk Code Part 1
;Here you can put any code for Part 1       
}
if (b1=2)
{
;if Click 2x Times - Then Execute Ahk Code Part 2  
;Here you can put any code for Part 2       
}
if (b1=3)
{
;if Click 3x Times - Then Execute Ahk Code Part 3
;Here you can put any code for Part 3       
}
if (b1=4)
{
;if Click 4x Times - Then Execute Ahk Code Part 4
;Here you can put any code for Part 4       
}
b1 := 0
SetTimer, CountdownEnterKey1 , off
}
a1 := a1 - 1
return

CountdownEnterKey2:
if(a2 = 3)
{
b2 := b2 + 1
}
if(a2 = 0)
{
;msgbox you did Click <F2> Key > %b1%x times
if (b2=1)
{
;if Click 1x - Then Execute Ahk Code Part 1
;Here you can put any code for Part 1       
}
if (b2=2)
{
;if Click 2x Times- Then Execute Ahk Code Part 2  
;Here you can put any code for Part 2       
}
if (b2=3)
{
;if Click 3x Times- Then Execute Ahk Code Part 3
;Here you can put any code for Part 3       
}
if (b2=4)
{
;if Click 4x Times - Then Execute Ahk Code Part 4
;Here you can put any code for Part 4       
}
SetTimer, CountdownEnterKey2 , off
b2 := 0
}
a2 := a2 - 1
return
If the Maker or Users of the Enterpad Devices does Have any kind of Tips to improve my code, I am Happy to Hear From Here. Thanks.
Reply
#2
Thanks Nickdemar734 for bringing up the idea of counting successive strokes of the same key in a given time frame to trigger different scripts/actions. I wrote another way of doing it:

PressCount := 0

F1::
 PressCount := PressCount + 1
 SetTimer, TimerKey, -1000
Return

TimerKey:
 MsgBox % "F1 has been quickly pressed " PressCount " time"
 PressCount := 0
Return

Note:

The script will display the number of times F1 has been pressed, until an interval of one second of not pressing F1 has passed.

A count of 0 will mean that the user has pressed the key (F1) while the dialog box was displayed.
Enterpad: For those who need more than a few shortcuts.

Reply
#3
Thumbs Up 
The fabulous idea there, mate. Who would even think about it if not you? That enter pad could be and change a lot in our IT era. The double click it's a great idea as well. It could also save from honest mistakes. There's no way that I'm gonna use it without the windows 11 that I'll get from a cheap office key. Still awaiting the approval for my processor, and because of that, I got to wait a while. Also, I would suggest adding the key block button. That could also save from intentional moves.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)