qwest Posted August 17, 2008 Share Posted August 17, 2008 Hi! Im trying to control the windows OSK using the Controlclick command and it's not working.I works fine on other programs.I cant figure out whats wrong..any help will be greatly appreciated.. thanks im using this command ControlClick("On-Screen Keyboard", "", 111) ;111 is the ID of the space key >>>> Window <<<< Title: Class: Shell_TrayWnd Position: -2, 547 Size: 804, 55 Style: 0x96840000 ExStyle: 0x00000188 Handle: 0x00030050 >>>> Control <<<< Class: ToolbarWindow32 Instance: 3 ClassnameNN: ToolbarWindow323 ID: Text: Running Applications Position: 148, 0 Size: 465, 47 ControlClick Coords: 409, 38 Style: 0x52009345 ExStyle: 0x00000000 Handle: 0x0001007E Link to comment Share on other sites More sharing options...
Szhlopp Posted August 17, 2008 Share Posted August 17, 2008 Hi! Im trying to control the windows OSK using the Controlclick command and it's not working.I works fine on other programs.I cant figure out whats wrong..any help will be greatly appreciated.. thanksim using this command ControlClick("On-Screen Keyboard", "", 111) ;111 is the ID of the space key >>>> Window <<<<Title: Class: Shell_TrayWndPosition: -2, 547Size: 804, 55Style: 0x96840000ExStyle: 0x00000188Handle: 0x00030050>>>> Control <<<<Class: ToolbarWindow32Instance: 3ClassnameNN: ToolbarWindow323ID: Text: Running ApplicationsPosition: 148, 0Size: 465, 47ControlClick Coords: 409, 38Style: 0x52009345ExStyle: 0x00000000Handle: 0x0001007EI tried this too. For some reason the buttons don't register as standard controls. You would have to get a list of the buttons coordinates compared to the position of the window (Not fun...). I suggest using the "Send" function for whatever it is you want to do=) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
martin Posted August 17, 2008 Share Posted August 17, 2008 Hi! Im trying to control the windows OSK using the Controlclick command and it's not working.I works fine on other programs.I cant figure out whats wrong..any help will be greatly appreciated.. thanksim using this command ControlClick("On-Screen Keyboard", "", 111) ;111 is the ID of the space keyHow did you find the ID of the keys? I tried using AutoIt WIndowInfo and it didn't show anything.I didn't like the Windows OSK for something I did once where I wanted to use a touch-sensitive screen because the keys are too small, so I wrote my own version which has no problem with using ControlClick. If it would help I can show my version. But why do you want to ControlClick an OSK? Wouldn't it be easier to send the text to the target rather than through the OSK? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Pain Posted August 17, 2008 Share Posted August 17, 2008 It is probably for a game, some games block send but you can still use the OSK. Opt("MouseCoordMode", 2) might help you as a start if you are going to use the coordinates of the buttons to MouseClick() or something. Link to comment Share on other sites More sharing options...
qwest Posted August 17, 2008 Author Share Posted August 17, 2008 Thanks for the reps =D yeah it's actually for helper for an online game. most games are protected by GG/xtrap and it's not possible to send keys directly to the game.I noticed that OSK can still send keystokes to the game. @Pain and Szhlopp yes, moving the mouse coordinates and clicking inside the OSM would work. but it's for a game and I need to be able to use the mouse at the same time. @Martin I used the WindowsInfo and it worked for some reason. Yeahh,I would greatly appreciate it if you can show me your own OSK.I actually am looking for a OSK that works like the one w/ windows and try to use it. Any more ideas...? Link to comment Share on other sites More sharing options...
Nevin Posted August 17, 2008 Share Posted August 17, 2008 Let's rename this thread WoW anti-idler #452 lol. Link to comment Share on other sites More sharing options...
martin Posted August 18, 2008 Share Posted August 18, 2008 @Martin I used the WindowsInfo and it worked for some reason. Yeahh,I would greatly appreciate it if you can show me your own OSK.I actually am looking for a OSK that works like the one w/ windows and try to use it.Any more ideas...?I don't think it will help because my script uses Send. When a key is pressed on the OSK it activates the previously active window and Sends the key. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now