idontknow Posted November 28, 2008 Share Posted November 28, 2008 i cant send key to inactive window(a game client).when i use send a---z key its able(im using controlsend()) but cant send 12345678 or F1 F2 ...F8.Can u help me pls.i got blank controlid but its still not work.i think i have to use sendmessage or postmessage.Anyone help me pls.The game what i'm playing is Zxonline or Qworld.Thx for helping. P/s:sry because im bad at english. Link to comment Share on other sites More sharing options...
November Posted November 28, 2008 Share Posted November 28, 2008 i cant send key to inactive window(a game client).when i use send a---z key its able(im using controlsend()) but cant send 12345678 or F1 F2 ...F8.Can u help me pls.i got blank controlid but its still not work.i think i have to use sendmessage or postmessage.Anyone help me pls.The game what i'm playing is Zxonline or Qworld.Thx for helping.P/s:sry because im bad at english.Hi there,Do you have any code made?What do you want to do?What's the name of the window?Send witch keys?How many times?Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
idontknow Posted November 28, 2008 Author Share Posted November 28, 2008 (edited) Hi there,Do you have any code made?What do you want to do?What's the name of the window?Send witch keys?How many times?Cheers>>>> Window <<<<Title: 诛仙Class: ZElementClient WindowPosition: 108, 67Size: 807, 633Style: 0x94CE0000ExStyle: 0x00000100Handle: 0x00050632>>>> Control <<<<Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x0001008A>>>> Mouse <<<<Position: 230, 294Cursor ID: 0Color: 0x294531>>>> StatusBar <<<<>>>> Visible Text <<<<>>>> Hidden Text <<<<I want to send F1,F2,F3... or 1,2,3,4... and Tab key .Thx for helping.Sure i tried coding some program.Tried controlsend but not work. Edited November 28, 2008 by idontknow Link to comment Share on other sites More sharing options...
November Posted November 28, 2008 Share Posted November 28, 2008 >>>> Window <<<<Title: 诛仙Class: ZElementClient WindowPosition: 108, 67Size: 807, 633Style: 0x94CE0000ExStyle: 0x00000100Handle: 0x00050632>>>> Control <<<<Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x0001008A>>>> Mouse <<<<Position: 230, 294Cursor ID: 0Color: 0x294531>>>> StatusBar <<<<>>>> Visible Text <<<<>>>> Hidden Text <<<<I want to send F1,F2,F3... or 1,2,3,4... and Tab key .Thx for helping.Sure i tried coding some program.Tried controlsend but not work.Has no info about control...Try MouseClickCheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
idontknow Posted November 28, 2008 Author Share Posted November 28, 2008 Has no info about control...Try MouseClickCheersBut if i move my skill to other place or resize window,it cant click...CAn u help me about sendmessage or postmessage.Thx. Link to comment Share on other sites More sharing options...
November Posted November 28, 2008 Share Posted November 28, 2008 But if i move my skill to other place or resize window,it cant click...CAn u help me about sendmessage or postmessage.Thx.I'll help you for sure,How far did you get so far?Lets see some code Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 28, 2008 Moderators Share Posted November 28, 2008 ControlSend(info here..., info here..., info here..., "{F1}") Surrounding the "F" keys with curly brackets should be fine. If you're having an issue sending raw keys like 1,2,3, etc... make sure you're 1 not using curly brackets on the, 2 might try raw mode (1) for the last parameter of Send()/ControlSend(). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
idontknow Posted November 28, 2008 Author Share Posted November 28, 2008 Func Mp_Check() If not $Mp_Ok then If TimerDiff($Timer_Mp)> 5000 Then $Mp_Ok = True EndIf EndIf If (Mp_Curren() <> 0) and (Mp_Curren() < $Mp_Danger) and $Mp_Ok Then Send($Mp_key_D1) Sleep(100) $Mp_Ok = False $Timer_Mp = TimerInit() EndIfEndFuncHelp pls.@SmOke_N:i said i tried controlsend() but cant:(.Thx. Link to comment Share on other sites More sharing options...
idontknow Posted November 29, 2008 Author Share Posted November 29, 2008 Help pls.@SmOke_N:i said i tried controlsend() but cant:(.Thx.pls help me Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 29, 2008 Moderators Share Posted November 29, 2008 pls help me Keep the bumps over 24 hours since your last post. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Dinosaurr Posted November 29, 2008 Share Posted November 29, 2008 (edited) I wonder if Opt("SendAttachMode", 1) might help? Im not sure, i want to do this exact same thing too. Edited November 29, 2008 by Dinosaurr 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