Jump to content

DLXS

Active Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by DLXS

  1. I was trying to take this up again, didn't even remember that post. However, what I want is different. There I wanted to click on OK button so I don't have to do it manually. Now I just don't want it to show up at all-and still dunno how to do it-. Last time I posted in the forum was some months ago and what I remembered about rules is that you can't create cheating programs or similar stuff. What I want to do is to avoid an annoyance and it's completely legal, allowed. However, did not remember it was not only against cheating but also against any kind of game, any kind of action, even if it's legal/allowed.
  2. What do you need to know about the software? What can I tell you about it? It's a pker site and it shows up when you click on an empty seat at a table but by the time you click, somebody may have already 'reserved' it and therefore, a pop up explainning you can't sit there shows up. It's very annoying because it makes it all go very slow and I want to be able to stop the pop up frmo showing up. If somebody reserves the table I can easily see and I don't want to need to click on an OK button. But would prefer to not see the pop up instead of closing it with the mouse. Was I clear? What info can I provide?
  3. Hi there, There's a software that when I click a pop up with an 'OK' message shows up. Is there any way to prevent this pop up to show up without using the click command? I don't want to click on the 'OK' button. I want it to not show up at all, if possible. Thanks
  4. Hi, Can't make it work with gmail dunno why:( With SSL = 0 I get this: If I put SSL = 1 then: All settings seems ok to me: $SmtpServer = "smtp.gmail.com" ; address for the smtp-server to use - REQUIRED $FromName = "Name" ; name from who the email was sent $FromAddress = "MYEMAILHERE@gmail.com" ; address from where the mail should come $ToAddress = "MYEMAILHERE@gmail.com" ; destination address of the email - REQUIRED $Subject = "Userinfo" ; subject from the email - can be anything you want it to be $Body = "" ; the messagebody from the mail - can be left blank but then you get a blank mail $AttachFiles = "" ; the file(s) you want to attach seperated with a ; (Semicolon) - leave blank if not needed $CcAddress = "" ; address for cc - leave blank if not needed $BccAddress = "" ; address for bcc - leave blank if not needed $Importance = "Normal" ; Send message priority: "High", "Normal", "Low" $Username = "MYEMAILHERE@gmail.com" ; username for the account used from where the mail gets sent - REQUIRED $Password = "MYPASSWASHERETOO" ; password for the account used from where the mail gets sent - REQUIRED $IPPort = 465 ; port used for sending the mail $ssl = 1 What shall I do? edit: ## COM Error ! Number: 80020009 ScriptLine: 92 Description:The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available Also, just read I need CDO.dll. Didn't have a clue. will check because I can't install it omfg Ideas?
  5. Hi, I have a script that gives me some stdout. I want to write it in a file. The problem is that it's repeating same stuff all the time. For instance, script A writes to console "This is a test". Then, my GUI writes this into an edit box: If _IsChecked($chbSit1) Then $leerSit1 = StdoutRead($pidSit1) & $leerSit1 GUICtrlSetData($editSit1, $leerSit1) endif So far, fine. Problem is, I want to write this into a file but ONLY the new lines that showed up in stdoutread($pidsit1). Because if I just do this: FileWriteLine($fileNameColHandle, GUICtrlRead($editCol)) What I get is a file with $editcol text repeated again and again. How can I write only new lines into the file using stdout? Thanks PS: Also, when using GUICtrlSetData($editCol, $leerCol) I'm pasting all the text everytime. If I can only get new lines from stdout, is there a way to append lines in the edit box? Thanksthanksthanks
  6. I see, and it's forbidden Damn, I'm not trying to modify anything, just wanted to take a look Really prefer the open source bias =(
  7. Title says all. I want to see (for learning purposes) how an autoit program is coded. But I don't have access to the code. However, the computer I'm at the moment is executing it. Is there any way to see the source code from a running script? Thanks
  8. Hi, I have different consolewrite in my scripts and now I'm creating a GUI to run them from there. Is there anyway I can get all the consolewrite messages around the scripts and print them out in the GUI? Alternatively, how can I send text to the GUI from the script? What function shall I take a look? I don't know which one to look at Thanks, if you point me to the function I take a look myself.
  9. With this it works (shows and doesn't steal focus) WinSetState($ventanas[$i][0], "", @SW_SHOWNA) Dunno why others didn't, but doesn't matter anymore
  10. Hi, This should work. However, for some reason it doesn't, even if I use SW_SHOW. That's weird. With SW_SHOW it should work. Any ideas why it doesnt? I can't see the window using SW_SHOW. If SW_SHOW works, have no reason to think @SW_SHOWNOACTIVATE won't and this will sort my problems out. For $i = 1 To UBound($ventanas)-1 If $ventanas[$i][0] <> "" Then ;WinActivate($ventanas[$i][0]) THIS WORKS ;WinSetState($ventanas[$i][0], "", @SW_SHOW) THIS DOESNT, WHY? $handle = WinGetHandle($ventanas[$i][0]) if $screens <> "" Then _GDIPlus_ImageDispose($screens) EndIf _ScreenCapture_CaptureWnd(@MyDocumentsDir & $filename, $handle) $screens = _GDIPlus_ImageLoadFromFile(@MyDocumentsDir & $filename).... Another option, how to take a screenshot from a hidden window. I think in that case I may have to call a user32dll. Another question related: sw_hide also hides the window in the taskbar? Because I've tried to use SW_HIDE + SW_SHOW and I think it works but some windows dissapeared even from the taskbar. Not sure if it's not working properly, it it closes windows... A bit lost.
  11. Hi, I have two windows overlapped (can't be different). I'm taking screenshots at them as fast as possible (this has to be the fastest the better) in a loop as I want to detect changes in them. However, when I do so, as I have to make the windows active in order to show them on the screen and take the screenshot, I can't do anything else as the script doesn't stop making these windows' active and therefore, I lose focus on anything else. Is it possible to put a window in front (or make it visible, show...) WITHOUT activating it? This way, window will be put in front but I can carry on using the computer for other stuff. Script will take a screenshot and do whatever it has to do. Any ideas? The code of this part: For $i = 1 To UBound($ventanas)-1 If $ventanas[$i][0] <> "" Then ;WinActivate($ventanas[$i][0]) This one makes computer useless ;WinSetState($ventanas[$i][0], "", @SW_SHOW) Also makes computer useless $handle = WinGetHandle($ventanas[$i][0]) if $screens <> "" Then _GDIPlus_ImageDispose($screens) EndIf _ScreenCapture_CaptureWnd(@MyDocumentsDir & $filename, $handle) $screens = _GDIPlus_ImageLoadFromFile(@MyDocumentsDir & $filename).... $ventanas comes from a function which returns a winlist(). Basically, in order to use _ScreenCapture_CaptureWnd, the window has to be on top even if I pass the handle (unless I'm wrong), and I don't know how to do it without making it active and avoiding converting the computer into something useless. Thanks
  12. I will try that. Looks very clever to me, thanks! Can even add a small pause of a few milliseconds to not use lots of resources while still checking very often. Thanks a lot You guys are clever!
  13. Well, I have something that may take up to 1.5 seconds to work but in case it doesn't, This extra 0.5 seconds is important. Do you know any way? Thanks
  14. Hi, Is it possible to use winwait with 1.5 seconds timeout (or 1500 ms)? Like that? Example() Func Example() ; Run Notepad Run("notepad.exe") ; Wait 10 seconds for the Notepad window to appear. WinWait("[CLASS:Notepad]", "", 1.5) ; Wait for 2 seconds to display the Notepad window. Sleep(2000) ; Close the Notepad window using the classname of Notepad. WinClose("[CLASS:Notepad]") EndFunc ;==>Example It runs but I can't test it really for sure. Does anybody know? Thanks
  15. Uhmmm just did a quick test and seems they both have the same PID as it's the same program. Nevertheless, I figured out how to sort it. I write it here in case it's helpful to someone: I will put both windows in different position and then look for the pop up to show up. As the pop up appears in the center of the window, I can know exactly at what coord it is. Thus, with coord and title (even if the same in all of them) I can get a handle of the specific window and manage it. Sorted for me, you were very helpful with your suggestions and I learnt something extra, thanks!
  16. Ah I see. Both processes may have the same PID, right? Then I get a handle from title = popup where PID = fatherPID. Gr8! Thanks
  17. Looks interesting Will take a look to see how it works, appreciated!
  18. Didn't know that, never tried something similar. That's quite cool and I don't have to write/read from files. Thanks a lot, will look into the functions!
  19. That was fast I searched for that though most people stated that it's not complete, difficult and not always correct. So seems would be better to go for option 2). Do you know anything about sharing information between scripts? Thanks Palestinian.
  20. Hi, If, say, when u click on a button from windows A it opens a pop up but this one has no Control information (check picture displayed): And when you open the same window in Windows B, Windows C... and they all have the same title... How can you handle this? How can you tell the father of each pop up or manage them separately knowing what process executed them? Thanks!
  21. Hi there, I have script 1 and script 3. I want script 1 to launch 3 instances of script 3. However, I would like script 1 to carry on executing and to not wait for script 3 to finish. Possible options: 1) There's a way to run script 3 from script 1 without blocking it. ¿How? 2) Run Script 3 separately -> in that case I need to receive information from script 1. Is there any way to do it without files? Kinda, like sending interruptions to script 3. It will be constantly executing and start working whenever I send it an interruption from script 1. Otherwise, I guess I have to go for txt files where I will write from script 1 and read from script 3. Thanks a lot for pointing me where to look
  22. Thanks a lot! So basically, it's being optimized for this purpose Is there a way to know the differences or you gotta check the code?
  23. You are right! I save 50ms if I set Opt("WinWaitDelay", 0) at the beginning. Example: Opt("WinWaitDelay", 0) WinActivate($windoww[$i][0]) $handle = WinGetHandle($windoww[$i][0]) Gosh, it's my first time with autoit and I have done and undone so many functions already (facepalm). Alright, then I use the native way of course. Hope the code may be useful for somebody else. I didn't know of that option, how am I supposed to learn it without asking you guys? BTW, pretty amazing forum. One more questions (which is the same one as here '?do=embed' frameborder='0' data-embedContent>> though I can't edit the post as my last statement is no longer true): Why a buil-in function is better than a direct call to the functions in a dll (supposedly, this call is the same as the built-in function but skipping some steps)?? Thanks a lot one more time. You are all being very helpful and fast, I'm very surprised. Which I know more to help back already
  24. Seems the best way will be hide + show because if I try other params it doesn't work. Indeed, pretty weird, I think it needs some more specification /details explanation. But oh well, at least I could make it work. From 300msecs with winactivate to 5-10 msec, quite crazy the difference... Samy
  25. Why do you think so? Shouldn't a dll call be faster as it skips some steps and uses native functions? For instance, winapi_showwindow is muuuch faster than winactivate.
×
×
  • Create New...