B4J Question Undo Redo (SOLVED) - ThRuST    
Jun 6, 2022.RequestFocus
Main.AWTRobot.RobotSpecialKeyCombo("ctrl_y")
txtAreaDocs.RequestFocus
Main.AWTRobot.RobotSpecialKeyPress("ctrl")
Main.AWTRobot.RobotSpecialKeyPress("z")
Main.AWTRobot.RobotSpecialKeyRelease("z")
Main.AWTRobot.RobotSpecialKeyPress("ctrl....RobotSpecialKeyCombo("ctrl_z")
Undo works on my system (Windows 10 running on an Intel i7 CPU, but ctrl_y...
link: .AWTRobot.RobotSpecialKeyPress("ctrl")
Main.AWTRobot.RobotDelay(40)
Main.AWTRobot...
B4J Question JAWTrobot: RobotPaste does not work - Erel (first post)    
Feb 26, 2023   
(1 reaction)You are pasting a simple string. You need to use RobotSpecialKeyPress: https://www.b4x.com/search?query=RobotSpecialKeyPress...
B4J Question program keyboard direction - boten (first post)    
Jan 3, 2016My bad... I meant alt+shift
RobotSpecialKeyPress("alt")
RobotSpecialKeyPress("shift")
did it. Thx...
link: As Boolean)
Dim wr As AWTRobot
wr.RobotSpecialKeyPress("alt")
wr...
B4J Question How to automate windows desktop apps - xulihang (first post)    
Jan 24, 2019This means you will have to separately press and release the ctrl and h keys.
This works. Thanks!
Do While True
Sleep(1000)
awt.RobotSpecialKeyPress("control")
awt.RobotKeyPress("h")
awt.RobotSpecialKeyRelease("control")
awt.RobotKeyRelease("h")
Log("combo")
Loop...
B4J Library jAWTRobot - invoke keyboard and mouse events, etc... - Roycefer (first post)    
Dec 1, 2015   
(2 reactions)Version 1.4 sees the addition of RobotSpecialKeyPress/Release support for the home, end, page up and page down keys. Also, the addition of the RobotFunctionKeyPress/Release methods for activating the function keys (F1-F12)....
link: supports the meta key before you call RobotSpecialKeyPress("meta").
As usual, be sure to...
link: RobotSpecialKeyPress("enter"), I use it after RobotPaste. And this not work in windows or MAC...
B4J Question Is there a library for B4J which can control Media Volume? - Fr Simon Rundell    
May 31, 2016My project has made great leaps forward, and I am successfully using jAWTRobot to send keypresses to a selected window.
RobotSpecialKeypress has given me all the controls I need except VOLUME_UP and VOLUME_DOWN.
I have tried various other libraries to try and tap into this but havn't found it yet.
Any suggestions?...
B4J Question SendKeys - magarcan    
Dec 2, 2018I'm working over this sample code in order to make it send keys:
Starter.Connector1.SendCommand(CreateRobotCommand("RobotSpecialKeyPress", Array("shift")))
Starter.Connector1.SendCommand(CreateRobotCommand("RobotKeyPress", Array("f")))
Starter....SendCommand(CreateRobotCommand("RobotKeyRelease", Array("f")))
Starter.Connector1.SendCommand(CreateRobotCommand("RobotSpecialKeyRelease", Array("shift"...
B4J Question [SOLVED] B4XDialog - default button - Magma (first post)    
Dec 1, 2022   
(1 reaction).RobotSpecialKeyPress("TAB")
'End If
End If
End If
end sub...)
...
AddKeyPressedListener
...
End Sub
Sub AddKeyPressedListener
Dim r As Reflector
r..., "javafx.scene.input.KeyEvent.ANY")
#END IF
End Sub
Sub KeyPressed_Filter (e...)
If EventType = "KEY_PRESSED" Then
Dim keycode As String = jo.RunMethod...("getEventType", Null).RunMethod("getName", Null)
If EventType = "KEY_PRESSED"...
Share My Creation [B4J] [MySQL] [API] Server (Key + Token) and [B4X] User Login Apps - aeric    
Aug 16, 2024   
(39 reactions)
Updates:
Latest B4XPages user login client apps (using B4J server):
https://www.b4x.com/android/forum/threads/project-template-user-login-client-b4x.161914/
105281
Finally I would like to share my B4J API server written in B4J.
Compare to my previous PHP API, this API server implements user access token to authorize user to consume the API.
SQL.zip - SQL script to create necessary databa...
B4A Question B4XPages - Intercepting KeyPress - epiCode    
Mar 13, 2022How do I Implement the following code in B4XPages:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
Select Keycode
Case KeyCodes.KEYCODE_BACK
'code to handle back key
Case KeyCodes.KEYCODE_VOLUME_DOWN, KeyCodes.KEYCODE_VOLUME_UP
'code to handle volume keys
Case KeyCodes.KEYCODE_MEDIA_PLAY_PAUSE
'code to handle media button
Case Else...
link:
It worked. Solution Accepted. Closed!!!!
Thanks Erel
@epiCode do you have a complete example i can post, i also need to intercept keycode but following the example i am missing something, thanks 10...
Page: 1  
2  
3  
4  
5  
6  
7