d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Hotkey, Keybind, Mouse Manipulation
12Next
Add Reply New Topic New Poll
Member
Posts: 38,019
Joined: Feb 14 2011
Gold: 6.90
Nov 7 2014 11:05pm
I would like someone to make a script to make my mouse wheel up and down to be left click on my Mac if possible
Thank you
Member
Posts: 62,215
Joined: Jun 3 2007
Gold: 9,039.20
Nov 8 2014 05:54pm
Member
Posts: 38,019
Joined: Feb 14 2011
Gold: 6.90
Nov 11 2014 05:07pm
Quote (killg0re @ Nov 8 2014 06:54pm)
http://i41.tinypic.com/5fgohw.gif


):
Member
Posts: 2
Joined: Nov 11 2014
Gold: 0.00
Nov 12 2014 06:52pm
You can use the C windows API to achieve this.

Code

BOOL WINAPI RegisterHotKey(
_In_opt_ HWND hWnd,
_In_ int id,
_In_ UINT fsModifiers,
_In_ UINT vk
);


As well as

Code

LRESULT WINAPI SendMessage(
_In_ HWND hWnd,
_In_ UINT Msg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);


First you would register a global hotkey for the specified window via using its HWND id and then every time the message queue receives the hotkey event you can call SendMessage() to send the key you wish to manipulate.
Member
Posts: 4,372
Joined: Jul 2 2009
Gold: 3,630.00
Nov 13 2014 10:41am
Quote (0xBABEFACE @ 13 Nov 2014 02:52)
You can use the C windows API to achieve this.

Code
BOOL WINAPI RegisterHotKey(
  _In_opt_  HWND hWnd,
  _In_      int id,
  _In_      UINT fsModifiers,
  _In_      UINT vk
);


As well as

Code
LRESULT WINAPI SendMessage(
  _In_  HWND hWnd,
  _In_  UINT Msg,
  _In_  WPARAM wParam,
  _In_  LPARAM lParam
);


First you would register a global hotkey for the specified window via using its HWND id and then every time the message queue receives the hotkey event you can call SendMessage() to send the key you wish to manipulate.


On his mac though...
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Nov 13 2014 10:47am
Quote (Futu_Re @ Nov 13 2014 11:41am)
On his mac though...


You mean you don't know how to do this?
Member
Posts: 4,372
Joined: Jul 2 2009
Gold: 3,630.00
Nov 13 2014 11:35am
Quote (Minkomonster @ 13 Nov 2014 18:47)
You mean you don't know how to do this?


I only know that the idea up there won't work ^^
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Nov 13 2014 11:36am
Quote (Futu_Re @ Nov 13 2014 12:35pm)
I only know that the idea up there won't work ^^


So says you. I am currently manipulating scrolling up and down with mouse on my Mac and it's doing left and right clicks. And all of this was made possible with the c Windows api
Member
Posts: 4,372
Joined: Jul 2 2009
Gold: 3,630.00
Nov 13 2014 11:48am
Quote (Minkomonster @ 13 Nov 2014 19:36)
So says you. I am currently manipulating scrolling up and down with mouse on my Mac and it's doing left and right clicks. And all of this was made possible with the c Windows api


Are you using Wine ? Is there an implementation of the Windows APIs on os x ?
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Nov 13 2014 12:02pm
Notice how quickly you have changed your perception based on one unsubstantiated claim by a random guy on the internet.
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll