VKontakte hotkeys. View photos in full screen

In Vkontakte, for convenience, you can use special key combinations - hot keys, to send messages, watch videos, photos, publish posts, etc. Let's take a look at what key combinations are most commonly used.

When sending messages

To go to new line use a combination in the text box.

In order to send a message to the addressee, you need to use the key Enter.

Or, by clicking on the arrow on the right, select another key combination:

- to send a message


Enter- for line break

When posting to the wall

To go to a new line in a post or in a comment to a post, use the key Enter.

In order to post a post or leave a comment on it use or.

When switching between dialogs

For the convenience of managing dialogs in Vkontakte, there is an option for using a keyboard shortcut Ctrl + number(from 1 to 0).


On the right, there is a window for personal correspondence, which you can change with ease. The maximum number of dialogues is limited to ten. In order to write to other users, select the dialogue with the mouse.

When viewing photos

To make it easier to view images, you can use the full screen mode. To do this, select the key combination Alt + Enter or Ctrl + Enter .

Alt + Enter or Esc .


When watching a video

The video is rewound using the arrow keys. The rewind segments are approximately seven seconds long.

Pressing the space bar pauses or continues playing the video.

To exit full screen mode use Alt + Enter or Esc.

When scrolling the page

To scroll down the page, use Page Down or End .


To scroll the page up - Page Up or Home .


Hello, friends! Everything you spend in social network Vkontakte takes a lot of time, and the actions that you perform with the mouse are often the same - send a message, turn on another track, close the pop-up window, and so on.

In this article, we will figure out what you can do on Vkontakte using various combinations of buttons on the keyboard. At first it will be unusual, but over time it will become automatic and send a message or add new entry on the wall will be possible in a matter of seconds.

Let's talk about hotkeys - these are various combinations of keyboard buttons that perform certain actions. In some programs, the buttons can be given commands independently, or in the menu items opposite each line, you can see which keys do what.

There are not so many hot keys on Vkontakte, but very few people know about them either. Although they are quite convenient to use, since they correspond to the most frequently performed actions.

If you are adding a new post to the wall, then, instead of the "Submit" button, you can use the following combinations:

Ctrl + Enter - add an entry to the wall;

Enter - move the cursor to a new line.

Sending comments and messages

To add a comment to a photo, note, video, etc., or send a message to another user, instead of the "Send" button, use the following keys:

Enter - send a message;

Shift + Enter - line break;

Ctrl + Enter - send a message;

Enter - line break.

You can choose which combination is more convenient for you. To do this, hover the cursor over the "Send" button (in the comments) or the image of the arrow (in messages), and then in the pop-up window that appears, mark the option that suits you.

For those who like to communicate a lot and are in correspondence with several users at the same time, instead of constantly clicking the mouse, when choosing the desired dialogue, you can use the keys:

Instead of No., press the number that corresponds to the number of the desired dialogue. Use the numbers located between the F1 - F12 keys and the letters on the keyboard.

For example, to open a conversation, as shown in the screenshot below, I press Ctrl + 3 on the keyboard.

Viewing photos in full screen mode

If you like to watch photos of friends or any other users, then you can do it in full screen mode to open the photo in full screen. To do this, you need to open the photo for viewing, and then click:

You can scroll through the images with arrows to the right / left. If you want, check the "Slide Show" box and select the time after which the photos will change. In the upper right corner, it will be shown which of the total number of photos is being viewed. To exit full screen mode, you can press the cross at the top right or the ESC key on your keyboard.

Listening to music

If you do not have standard keyboard, and an extended, compact or keyboard on a laptop, then it probably has buttons:

Play / Pause;

Next entry;

Previous post.

They can be used to pause, stop or select another Vkontakte track. The only caveat, to play the first song, use the mouse, and then use the hotkeys.

If on an extended or multimedia keyboard, these buttons are located separately, then in laptops or on compact keyboard, they can be on the same arrow buttons or on numeric keypad... Therefore, to use them, you need to press the Fn button.

If you need to rewind a track, then holding the right / left arrow will allow you to rewind the recording forward / backward, respectively.

A big plus of using hot keys when listening to Vkontakte music: if you have separate tab In the browser, the Vkontakte page is open and music is playing, but you are in another tab, then the hotkeys can still be used. That is, to switch a track or press pause, you do not need to open a tab from Vkontakte.

You can use keys for music in almost all popular browsers: Chrome, Yandex, Opera. But those users who have installed Mozilla Firefox, such an opportunity is deprived, since these buttons do not work in it.

If you need to add several objects at once to a record or in a message, then you do not need to constantly open the add window and click "Attach". Open a window with a photo, music or video, hold down Ctrl and select what you need:

Hold Ctrl.

For example, I'll add music to a post on the wall. I click "Add audio recording". When the next window opens, you need to hold down Ctrl and select songs - opposite each one I click "Attach". Instead of "Attach", the word "cancel" appears.

And all the selected songs are attached to the created recording.

As with music, if you have installed Mozilla browser Firefox, you won't be able to select multiple objects in the described way.

Close a window

Vkontakte, when you view photos or products, some menu items and more, opens in separate windows. And each time you need to click on the small cross in the upper right corner. This is not very convenient. To close such windows, you can use the button:

Zoom in / out on the page

If the font of the Vkontakte page is too small for you, and you would like not to read it, but read it calmly incoming messages and news entries, then you can increase it. You can also reduce the font and scale of the page as a whole. For this, the following combinations are used:

Ctrl and the + or - sign on the keyboard;

Ctrl and scroll the mouse wheel up / down.

The combination Ctrl + 0 will help to return the original page format, that is, 100%.

We already wrote about it, read the article by clicking on the link.

The fact that the scale of the page has been changed is indicated by a magnifying glass or a number with the indicated scale: 120%, 175%, and so on, on the right in the address bar.

As you can see, there are not very many hot keys on Vkontakte. But their use will also help to facilitate the task for those who are used to performing maximum actions using the keyboard. If you know any more combinations, leave them in the comments.

Today we will tell you what hotkeys exist that work on the VKontakte social network, provide a complete list of hotkeys and tell you how to use them more conveniently.

Since the social network does not stand still and is constantly updated and developed, and if you know other hotkeys or we forgot to mention something, be sure to write comments and we will include your additions in our article.

In short, this is a special set of buttons on the keyboard, thanks to which each user will be able to quickly perform one or another action.

In today's article we will talk about where they are and how to use the VKontakte hotkeys.

Hotkey types

In this part of the article, we will talk about the "Messages" section. Probably most users use the mouse to send a message. Sometimes it is not very convenient, and sometimes some people like it much more. However, the keyboard has a couple of special buttons, thanks to which you can send a message without using a mouse.

  • Enter - by clicking on this button you will send the text to the person you need;
  • Shift + Enter - by clicking on this combination, you simply transfer the text.

One more interesting function it is considered an opportunity with the help of one combination to go into some kind of dialogue. Let's say you are talking with several people, to go directly to the one you want, just click on "Ctrl + 3"... The three is the number of the dialogue.

If you are viewing someone's photos and it is inconvenient for you to switch from one photo to another with the mouse, then for this there is a combination Alt + Enter... By clicking on these two buttons, you will be able to view the pictures in a slideshow.

Hotkeys for audio recordings

Users use the mouse when listening to their favorite music, although the keyboard has a number of special keys, thanks to which you can perform any action immediately.

  • Pause - by clicking on it you will pause the song;
  • Play - the music will turn on again;
  • Stop - the track will be stopped;
  • Previous - you will switch to the previous song;
  • Next - turn on the next track on the list;
  • Ctrl + mouse wheel up - increase the volume of the track; Ctrl + mouse wheel down - decrease the volume of the track.

It should be noted that these are the most popular and demanded hotkeys on the VKontakte social network. In fact, there are a lot of them, some of them may work and some may not. It is important to know: if you have a laptop, then while performing actions in the audio recording section you need to use the "Fn" key, that is, "Fn + Play". We hope our article helped answer all your questions.

Learn more what this function is

This is nothing more than a chatbot. To automate the buttons, they need to be associated with a keyword subscription. Indicate on button keyword(or a phrase), then when you click on it, an auto-subscribe to the newsletter and a message will be sent. Or another action that you specify in the autofunnel.

How did I do it?

Pre-created new topic subscription to free lessons and in the settings set key phrase to subscribe to this mailing list - "I want lessons."

When a person enters this key phrase in a dialogue with my community, he automatically subscribes to this mailing list (topic) and receives lessons. These lessons come in the first automated mailing list right away. Then, after 2 days, a second message comes, where I ask if the person has viewed the lessons, how they looked to him, if there are any questions, and also offer to get a full course and an additional gift at a discount. Auto messages to Gamayun are configured in the "Auto funnel" section. I wrote in more detail about the auto funnel

On one I wrote the text "No, thanks" - if the subscriber pressed this button, then in the messages of the community I saw that he was not interested.

If a person pressed the button "I want lessons", then he automatically subscribed to the lessons and immediately received a message with a link. And I segmented the people who are interested in it, and then I used the auto funnel.

So far, the keyboard function is only available when sending mailings manually, but soon it was promised to be implemented in auto funnels.

Based on test results

In principle, everything went well, as I had planned. There were some hiccups - when the user clicked on the "I want lessons" button, the message with the lessons came with some delay, somewhere faster, somewhere longer.

When a person clicked on the "No, thanks" button, I saw this message in my community dialogues, looked through the profiles of these people. Someone just turned out to be not interested in this topic, but the target person. There were also several people, according to whose profiles I saw that, in principle, we were not on our way - and I unsubscribed them so as not to bother me with my mailings.

If a person has not opened a conversation for a long time, and I managed to send other messages during this time, the keyboard continues to hang under the chat until you click on it (it is important to check the "Hide on click" checkbox in the keyboard settings). Therefore, the message has already risen higher, and not everyone understood what exactly these buttons refer to.

In general, the function works as it should - the keyboard performs the function of a chatbot and a subscription by a key phrase, thereby allowing you to segment the active audience and make more precise auto-chaining for the interest of people.

Let's walk through the steps how to set up a key subscription and associate it with the keyboard.

First, let's create a subscription topic and add a key phrase.(it can be one word) for automatic subscription. To do this, go to the Gamayun application through the button in the group, go to the "Mailings" tab - "Themes". Click "Create Topic".

We indicate the name and description of the topic. As an example, I'll create a "Activity Gift" theme.

The created topic can be made invisible in the newsletter application. Then they will be able to subscribe to it only by keyword or by the link that you provide. To hide the visibility, click on the eye icon and it will become crossed out.

You can also add a keyword for autosubscribe to an already created topic by simply clicking on a pencil to edit it.

Now for the newly created theme let's set the first auto-message after subscribing. So that when you click on the button - I want a gift, the person will immediately receive this gift. This is done in the "Auto funnel" tab.

In the first field, select the created theme, then click "Create script".

Click on the pencil to edit the block.

Create a new action in the block - Send message.

We are writing our message. For example, I will have a link to a gift. You can substitute the subscriber name variable in the message for a personalized hit. Click "Save".

In the same way, you can continue the auto-chaining of messages, creating new blocks and linking them together. To communicate, you need to go to the previous block, add the "Delayed Call" action and indicate how long it will take to execute the next block (action) in the funnel.

Now let's associate our keyword with the keyboard and check the auto-subscription.

We select a topic (a group of subscribers) for which we want to make a newsletter. Several themes can be selected at the same time. If you choose none, the mailing list will be sent to all your subscribers. For example, I choose a test group that I created purely for myself, in which I am the only subscriber. I also recommend you to do this for initial testing.

I am writing a message where I propose to receive a gift.

By the way, one more novelty is the ability to turn off the preview of links (that is, the picture that is pulled up by the link in the message). This is not always appropriate. This was introduced due to the fact that when adding an unsubscribe link, a clickable picture was pulled up, which attracted all the attention. This can now be turned off.

Here it is important for the very first time to follow the link indicated in the tips and turn on the bot's capabilities in the settings, otherwise the keyboard will not work!

Also check the "Hide keyboard when pressed" - this means that when you click on the button, it will disappear.

You can add one or more buttons by clicking on the plus sign. To change the color of the button and the label on it, just click on it with the mouse.

For example, I will make two buttons - blue and green. On one I will write the key phrase “I want a gift”, and on the second “No, thank you” (after all, there should always be a choice).

This is how this message with the keyboard in the subscriber's PM looks like.

I click on the button "I want a gift" and immediately receive it. That is, the topic was auto-subscribed, and the funnel was activated. This is how it works.

By the way, it can be used this way - for example, we subscribe to one newsletter, and unsubscribe from another. To do this, simply add the appropriate action to the first block of the autofunnel.

You can also add several buttons (4-5) to segment subscribers in different topics(according to their preferences). That is, to conduct a survey ...

You can watch the visual lesson for the article:

Thank you for your attention and I will be glad to receive your comments!

Best regards, Victoria Karpova

New functionality for VK bots - quick response buttons or keyboard.

IMPORTANT! More recent version of the article

Our team of "botographers" immediately became interested in this innovation and began to study the official API to tell you and show detailed instructions to create a bot using keyboard. In the course of this article, you will get a bot, you can see the work of which in our group GameTips in VK. You can also join the VK community conversation, where they can help you with the problem that has arisen.

Community creation and customization

After creating a community in VK, follow this path:
Community Management → Messages and enable community dialogs. Now in the submenu "Settings for the bot" enable "Bots capabilities" and the "Start" button.

We will write using the Callback api (it sends each action in the community separately to the server). Therefore, it should be configured as well. Go to
"Community Management" → "Working with API". For the bot to work, you need to register an access key. Click "Create Key" and select necessary rights access, for this bot only the rights to messages are needed. We confirm the phone number and save the access key somewhere. Now go to the Callback API tab. We put our server name and select latest version API (on this moment it is 5.80, and it is with it that the bot presented below will work 100%). In the "Request Types" tab, select only incoming messages.

Server Tuning

You will now need a server to host your bot. You can use free hosting sites like 000webhost.

If you use cheap / free hosting, then most likely cURL will be disabled on them (you cannot send media files by the bot, only text), and it cannot be enabled. Everything is fine with 000webhost, you can use it. If you have your own server or a good purchased one, then you need to connect cURL for the full-fledged bot from our example to work.

How the Callback API and keyboard works

I will give you a brief excursion on how everything works. The callback API sends to your server any event that occurs in a group in the form of JSON. Full list events can be viewed in the "Callback API" tab → "Event types". This is how the JSON request looks like when the user sends a message, in this case he clicked on the button:

("type": "message_new", "object" :( "date": 1529668584, "from_id": 89846036, "id": 1522, "out": 1, "peer_id": 89846036, "text": "Gold fish "," conversation_message_id ": 305," fwd_messages ":," important ": false," random_id ": 0," attachments ":," payload ":" (\ "animals \": \ "Goldfish \") " , "is_hidden": false), "group_id": 101461081)

There are several interesting fields that can be processed here: user id, message text (text), button payload (payload).

Messages are sent to the user using the method messages.send... If you send the keyboard, then after all the standard parameters, you add the keyboard parameter, which contains the json of the buttons, this is how it looks:

Keyboard: ("one_time": false, "buttons": [[("action": ("type": "text", "payload": "(\" button \ ": \" 1 \ ")", " label ":" Red ")," color ":" negative "), (" action ": (" type ":" text "," payload ":" (\ "button \": \ "2 \") " , "label": "Green"), "color": "positive")]

Working with the library

For the bot to work, we use a self-written library in PHP. (If the link does not work, then here is the archive) you can find the documentation for the library and download the library itself. Here is a short listing of ready-made functions for writing a bot, look for more details at the link above. If you want to know about changes in the library, then write at least one message to our bot in VK, through it we will notify you about the changes.

$ vk = new vk_api (vk_key, version_api) - bot initialization. Parameters: community key (vk_key), API version (version_api).

sendMessage (id, text) - function for sending messages to the user. Parameters: user id (id), message text (text).

sendImage (id, patch) - function for sending images. Parameters: user id (id), path to the image (patch).

sendButton (id, text, buttons, one_time) - function for sending a message with buttons. Parameters: user id (id), message text (cannot be empty) (text), array with buttons (buttons), optional one_time parameter, by default false, if set to true, then after pressing any button the keyboard will be hidden.

request (method, array_arguments) is a universal function for working with methods. Parameters: method is the name of the method from the official api, array_arguments is an array of parameters.

sendOK () - Beta function. Used instead of echo "ok", it helps in cases when the script is running for a long time, and the bot starts repeating messages several times.
IMPORTANT: if you use this function, then you will not display the error output. During debugging, replace with echo "ok"

Full bot code in PHP

Now let's move on to the code itself, where almost every line is commented.
This code is supported on PHP 5.6+
In the CONFIG block, specify your community access key, the key for confirming the server, as well as the version of the API you have chosen.

"Fish"], "And what are they?", "Blue"]; // "Fish" button code const BTN_BACK = [["command" => "start"], "<< Назад", "red"]; // Код кнопки "<< Назад" const BTN_SALMON = [["animals" =>"Pink_salmon"], "Pink salmon", "white"]; // Code of the "Pink salmon" button const BTN_GOLDFISH = [["animals" => "Goldfish"], "Goldfish", "blue"]; // Code of the "Goldfish" button const BTN_PLOTVA = [["animals" => "Plotva"], "Roach", "green"]; // Code of the "Roach" button $ vk = new vk_api (VK_KEY, VERSION); // creating an instance of the api class, accepts the api key and version $ data = json_decode (file_get_contents ("php: // input")); // Receives and decodes JSON received from VK if ($ data-> type == "confirmation") (// If vk requests a key exit (ACCESS_KEY); // Finish the script by sending the key) $ vk-> sendOK (); // Tell vk that we received a callback if (isset ($ data-> type) and $ data-> type == "message_new") (// Check if this is a message from the user $ id = $ data-> object- > from_id; // Get the id of the user who wrote the message $ message = $ data-> object-> text; if (isset ($ data-> object-> peer_id)) $ peer_id = $ data-> object-> peer_id; // Get the peer_id of the chat, where the message came from else $ peer_id = $ id; if (isset ($ data-> object-> payload)) (// get payload $ payload = json_decode ($ data-> object-> payload, True );) else ($ payload = null;) if (isset ($ payload ["command"]) or mb_strtolower ($ message) == "start") (// If the start button is pressed or<< назад $vk->sendButton ($ peer_id, "Do you want to see the fish?", []); // Send the button to the user) else (if ($ payload! = Null) (// if payload exists switch ($ payload ["animals"]) (// See what is in the payload buttons case "Fish": // If it's Fish $ vk-> sendButton ($ peer_id, "These are the ones, choose", [// We send buttons to the user,]); break; case "Pink_salmon": // If this is Pink salmon $ vk-> sendMessage ($ peer_id, "Keep your pink salmon! "); // send a message $ vk-> sendImage ($ peer_id," img / pink_salmon.jpg "); // send a picture break; case" Goldfish ": // If it's a Goldfish $ vk-> sendMessage ( $ peer_id, "She will grant your wishes ..."); $ vk-> sendImage ($ peer_id, "img / goldfish.jpg"); break; case "Plotva": // If this is Roach $ vk-> sendMessage ( $ peer_id, "Oh, it looks like the picture is confused)"); $ vk-> sendImage ($ peer_id, "img / plotva.jpg"); break; default: break;))))?>

Now you know how the code works, and you can customize it for yourself.

Let's start!

Upload your script and library to the server. Now go to the Callback API tab in the settings, enter the path to your script in the address field and click confirm. If you did everything correctly, a green checkmark will appear next to the address.

FAQ:

Question: Nothing works at all!
Answer: So somewhere they messed up. Re-read the article carefully again, and check if you have done everything. Any step to the left can lead to an error ...

Question: Everything works for me, but pictures are not sent.
Answer: Check if you have added the img folder with images. Also, perhaps you are using a server where cURL is not supported.

Question: I changed the version to 5.78 or whatever. Nothing works for me.
Answer: Use other api versions besides 5.80 at your own risk. For example, on version 5.78, other variable names come from VK (for example, object-> body goes instead of object-> text), so the script crashes. Look for all api changes