Jump to content

siriom

Active Members
  • Posts

    26
  • Joined

  • Last visited

siriom's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Basic send example : msgbox (1,"Ready ?","Send 1 every 3.5 ") While 1 ControlSend("[CLASS:GxWindowClass]", "" , "" , "1") Sleep(3500 ) WEnd This works but when you open 2 windows it only clicks on the last one that was active. So I tried getting the handle and using the handle in the title. Opt("WinTitleMatchMode", 3) opt("WinSearchChildren",1) $handle = ControlGetHandle("[CLASS:GxWindowClass]", "", "") MsgBox(1,"Ready?","") ControlSend($handle, "" , "" , "1") It still only sends on the last window that was active ... The point of this is to simply send text to a window that is currently not active Help plz ?
  2. Greetings . I stumbled upon this issue lately and did some research Apparently its not possible solely with autoit as pointed out in previous threads Apparently at least a dozen people suffer from this "autoit limitation" There is a work around which i am not capable of implementing and therefor created this thread. Writing the function in c++ , compiling it into .dll and then using autoit to access this new function apparently works. Im clueless when it comes to c++ so i kindly ask anyone who is able to write this , please post it here. It will not only help me but a bunch of souls on this forum who stumbled on to the same issue and think its not possible. Thanks for your time and patience.
  3. "use m" ? sorry i didnt get that . yeah im sure vmware would work but theres no reason why it needs to bring the window to the foreground i mean ... theres got to be a way to get the pixel color without the need to swap window.
  4. Opt("PixelCoordMode",0) $handle = ControlGetHandle("Untitled - Paint", "", "") WinActivate("Untitled - Paint") ;sleep(1000) $lol = PixelGetColor( 58,166 , $handle) Current code just in case im screwing something basic up. And im afraid as soon as it hits the winactivate it brings the ms paint to the foreground which kinda kills the purpose of the extra programming. Great job on the assists so far guys . Hope this is the last "bug" So what im lookin for here , to recap , is a way to get a pixelgetcolor without that window being brought to the foreground please. Thanks
  5. Im a sad panda. Thanks . You were right about the winactive. It solved the pixelget problem ... but now the screen flashes up whenever i do a pixelgetcolor.... Is there no work around this ? is there no way to get the pixel color without it pulling up the other screen ? its kinda annoying say when im watchin a movie and some other random screen pops up ...
  6. Trying to get this to work and its ... well .... odd Heres a concrete example then . I opened a mspaint , color it all pink for example and run this $handle = ControlGetHandle("Untitled - Paint", "", "") $oi = PixelGetColor( 58,166 , $handle) ClipPut ($oi) Pretty straight forward right ? then i run this msgbox (1,"oi","oi") ;tab to the mspaint window in question sleep(3000) $oii = PixelGetColor( 58, 166) clipput ($oii) $oi doesnt equal $oii What am i doing wrong ?
  7. The help is decent if you know what youre looking for. It doesnt explain what a hwnd is or what a control id is though
  8. Thanks will look up controlsend then ... is there a control get pixel checksum too ? :=)
  9. Apologies . Ill be more specific. It reads pixels/text , checks with a database and types in whats needed on the screen as a response. So when i alt tab , it reads pixels off the new screen and sends text to the current screen instead of the one its suppose to . I guess i can run it under a virtual machine .i.e install everything on a virtual machine , run the script and then i can minimize it and it would still be running. Even though this "short cut" works im willing to go to the trouble of "attaching" this script to specific window. Meaning ... it would read pixels and stuff on that window and send replies to that window alone and not the current window i might have up.... Hope that made sense to you mate.
  10. Heya Im a novice in autoit im afraid. I have a working script , does what its suppose to except for the part where it no longer works if i alt tab out of the window where its suppose to run. How do I attach a script to a window ? 1 silly example is all i need to get started. Thanks.
  11. Thanks mate but those were a bit ... err .... overkill for basic string compression Ended up doing the basic "AAAAABBBBCCCCCEEEEE" into "5A4B5C5E" yeah its retarded ... but hey .... it works.... Saved your links for future projs though Thanks
  12. I have 281 char long strings. Is there any compression algorith already implemented in au3 ? or do we write our own ?
  13. Is this implemented in au3 yet ? or do we have to write it ?
  14. Heres sample of code for $n = 1 to 280 step +1 $here = PixelGetColor(63+$n , 848) If $here == 0 then $straring = $straring & "A" ElseIf $here == 4671303 then $straring = $straring & "B" ElseIf $here == 15458991 Then $straring = $straring & "C" ElseIf $here == 2171169 then $straring = $straring & "D" Else $straring = $straring & "E" EndIf Next The string gets added to a dictionary and actions are taken based on the look up of that string in that dictionary in run time. $oDictionary.ADD ($straring, $key) There are 2 dictionaries and 20k variants on strings. Code works Problem is it takes 2 secs to run those 10 lines of code. And those lines are run ... "alot" Is there any way to import or include c# code to au3 ? Can i run c# getpixel in an au3 script ? For those just checking this topic now , aparently c# getpixel is 10x faster. Thanks again.
×
×
  • Create New...