Windows Keyboard and mouse click event

A

Ashish Jivram

Guest
Hello,

Is there a way to create a keyboard and a mouse click event to execute an action?

e.g CTRL + "Left Click On Mouse" takes user to a room
 
T

TDSrock

Guest
This is simply a and operations of two booleans.

in GameMaker we have Keyboard Input via several methods.
Code:
if( button1 && button2 ){
   room_goto(room you want to go too);
}
will suffice once button1 and button2 are set properly.
 
T

TDSrock

Guest
Do you want this to check every frame or just the creation frame?
 
A

Ashish Jivram

Guest
It doesnt seem to work, this is my code:

if(keyboard_key_press(vk_control) && mouse_check_button_released(mb_left))
{
url_open_full("www.google.com","_blank","")
}

@TDSrock
 
T

TDSrock

Guest
Two reasons. Firstly.
keyboard_key_press simulates a key stroke, it does not detect one... This function does not return anything.
Secondly
_released is only true the frame you let go.
 
Top