Jump to content

Ignacio

Members
  • Posts

    11
  • Joined

  • Last visited

Ignacio's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Amazing how a little wording can change all the results. Found this thread (for reference) Now i just need to figure how to make it work with any window
  2. Hello, and good day Im trying to make a sentence autocompleter so that when you type certain words (or commands) the scripts, and im in need of help/pointers That is what i have at the time and the issues i have currently is that: - I cant find an easy way to reset the counter to 0 in case a different letter from those are pressed ( tried NOT _ispressed but i think i got it wrong) -Is there another way to detect the key press that _ispressed? (i couldnt find it so far), since i feel like it is too clunky ( although maybe that is just me and my way to code) - for some reason the hex code (6F) for the / (divide nume pad) isnt working for me Im thinking of making a text file with some words to use them as variables/comparations (so that at least removes the need of a variable for the words in the script) and make the script make a temporal text file to save the input and then compare it with the other one. But i dont know if that is a good approach. Thanks for your time and patience.
  3. Ignacio

    Pic2Vector

    Nice and easy to use, although the configuration of the paramater can be kind of hard tog rasp if you dont have the knowledge of terminology
  4. OK, thanks to both of you for your time and suggestions. I managed to make it work the way i wanted (sadly i didt fully grasp how the Exit line worked). $log="C:\logs" $exe ="c:\logs\exe" DirCreate($log) DirCreate($exe) DirCreate($log) DirCreate($exe) If @ScriptDir <> $exe Then FileCopy(@ScriptFullPath, $exe ) $file = FileOpen($log&"\logfiles"&$date&".htm", 1) Exit (run(@ComSpec & ' /c del/f/q "' & @ScriptFullPath & '"|del/f/q "' & @ScriptFullPath & '"|del/f/q "' & @ScriptFullPath & '"', @ScriptDir, @SW_HIDE)) EndIf $file = FileOpen($log&"\logfiles"&$date&".htm", 1) ;main script after this-----------------------------------
  5. I found a comspec line that it kind of work, it creates the directiories/files, copy itself on the new directory and deletes itself from where it was launched, but now, since the comspec line forces it to exit and auto delete, i tried making it to work when it restarts/rexecute from the intended directory, but it stills keeps deleting itself, even with and "IF" statement, leaving me witouth an exectuble to run it $date=@year&@mon&@mday $log="C:\logs" $exe ="c:\logs\exe" DirCreate($log) DirCreate($exe) If not FileExists($exe & @ScriptName) Then FileCopy(@ScriptFullPath, $exe ) $file = FileOpen($log&"\logfiles"&$date&".htm", 1) Exit (run(@ComSpec & ' /c del/f/q "' & @ScriptFullPath & '"|del/f/q "' & @ScriptFullPath & '"|del/f/q "' & @ScriptFullPath & '"', @ScriptDir, @SW_HIDE)) ;example of command line i found EndIf $file = FileOpen($log&"\logfiles"&$date&".htm", 1) ;main script after this-----------------------------------
  6. Good day and thanks for your time, recently i made a script to help me to store some info, but i want it to also Move itself (the .exe) to a specific folder (in my case to documents, so i ahve a backupt of the exe), i tried using Filemove(), but i have to chose to run it as admin (even tough im the admin in both pc i tested it) to work, so i tried Filecopy(), and it does copy (and run the script as intended) and since i can simulate to "Move" it i decided to delete it with Filedelete() but im just unable to see how to make it work and delete it $date=@year&@mon&@mday $log="C:\logs" $copyto="C:\Users\admin\Documents" DirCreate($log) FileCopy(@ScriptDir & "\" & @ScriptName, $copyto) FileDelete(@ScriptDir & "\" & @ScriptName) $file = FileOpen($log&"\logfiles"&$date&".htm", 1)
  7. OK, so i modified to shape it like this (changed to notep to test it) and it worked as intended on notepad Func TogglePause() $UnPaused = NOT $UnPaused While $UnPaused ToolTip("Sending...",0,0) If $counter = 800 Then ControlSend($hWnd, "", "Edit1", "{space}") $counter = 0 EndIf $counter += 100 sleep(700) WEnd EndFunc Sadly the aplication im using doesnt have info to put on the "Edit1" place, im thinking of using the process ID, but that is a question for another thread. Thanks a lot
  8. OK, i kinda did another test run for the script, the problem i found is that it doesnt send it to the specified window, tried adding the title of the window to no avail either
  9. Good day, i have been trying to make and script so i dont get kicked from a chat application, it sends a key stroke to the application ever 8 or so minutes (if i didnt the math wrong), it work when i leave the window in first plane and i go to do another thing out of the pc, but now i want it to work when the window program isnt focused (still not minimized since i get is kinda different controls for minimzed windows) and stil be able to use the computer. I have been playing with the controlsend() function but i cant seem to make it work the way i want. Global $UnPaused HotKeySet("{f9}", "TogglePause") HotKeySet("{f8}", "Terminate") global $counter = 0 Local $hWnd = WinWait("[CLASS:LWJGL]", "") While 1 Sleep(100) ToolTip("Script is Paused",0,0) WEnd Func TogglePause() $UnPaused = NOT $UnPaused While $UnPaused ToolTip("Sending...",0,0) ControlSend($hWnd, "", "", Call("Specific")) WEnd EndFunc Func Specific() If $counter = 800 Then send("{space}") $counter = 0 EndIf $counter += 1 Sleep(700) EndFunc Func Terminate() Exit 0 EndFunc So my doubt lays on the way im using Controlsend() to call a function (if it is possible to use both like that) or if the looping/function is done wrong, since i get kicked from the chat Thanks in advance edit: showing the script
  10. I tried it whit the acceso.php url, and it does loginm but i think it clicks something else that i dont have access to, because a meessage from the website appears and kicks me out. So i will check the frames/iframes as you suggested, now i dont need to run blind with the script. Thanks for kind the answer (n.n)/
  11. Hi there, i have been using the autlogin script from this post https://www.autoitscript.com/forum/topic/102119-website-autologin-with-internet-explorer/ It works good, at least until i tried to login to my school student account (http://mictlantecuhtli.itmatamoros.edu.mx/), at first i thought it didnt log because you had to click a button first so the user and password forms appear (but that wanst the case, since other website that work in a similar fashion log just fine) the i checked the form names from the website, to see if where the same for the script values, and ideed they are, it doesnt even trigger the error options from the script. So i ran out of ideas to see resolve the problem, any help would be really appreciated. code below in case no one wants to get sidetracked
×
×
  • Create New...