Jump to content

ChaosUltima

Members
  • Posts

    11
  • Joined

  • Last visited

ChaosUltima's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I realised that using _Ispressed returns a very inaccurate number of presses. The hotkey is the closest to where i press the key once(tap it once) and it returns 1 enter, hold it then would it increase exactly like what would happen if i do it in this reply. If i use _IsPressed, just a small tap would give a return of about 30+ taps. I guess the computer detects that as a long hold down of the key. Is there anyway for _Ispressed to return 1 tap when i tap the key once ?(As in, really exact, i already tried having sleep() to reduce number of taps returned, but thats really inaccurate)
  2. Hey, i need abit of help here Im writing a option setting program that is for pressing a certain key a number of times while the program is running. It is supposed to send a number of enter keys when i pressed a number somewhere. im doing it to test out a certain game that my friend wrote. The script goes like: Hotkeyset("1","1") Hotkeyset("2","2") func 1() Send("{Enter 1}") endfunc func 2() Send("{Enter 2}") endfunc Is there a way to make it less tedious instead, cuz i was thinking of writing where the key pressed IS the function name itself, so if u press 5, it is saved as a variable as a 5, then the variable would be the function, so the function is called 5, and it would send the number of enters as defined in the variable. One problem is setting the key pressed as a variable, another is, how to have a variable in a send function? I realised that send("{ENTER $no}"), even if $no has a specific value, the function would bug. Note that im still using the non beta version of autoit.. Thanks alot! Chaos
  3. Nvm, i kinda got it already, which is to use beta. but i dunno, is there anything in beta that cant run the non beta version? meaning that will all scripts still be able to run with beta?
  4. hmm maybe abit more specific? lets say i click on a button, then a new gui pops up, and i put a label there asking for the user to press a key. Then, i want the gui to detect for any keyboard input, then it records and displays the input. So if the user just presses the letter a, a second label will set data as "a". but how to detect?
  5. What if u wanna set a key as a hotkey durig when the script is running? is there anyway that the gui will detect what key is depressed and then save into a ini the detected key and set as hotkey? like inside a game...you want to change hotkey for moving forward from w to another letter. so in the ini there will be w saved as hotkey for this game hotkey. so how to get the gui to DETECT what u press so it will input what u press into the ini and replace the w with the other letter? (Btw, i know how to save inis, but dunno how to get gui to detect.)
  6. Ok, anyone knows how to make in invisible GUI but all other features are visible? so you get a floating button and stuff like that. either that, cuz im trying to make a button on a GUI with a picture covering it. As the button doesnt work if it is over the picture(bmp), then i need to make an invisible GUI, or does anyone know how to make a button work over another GUI object like a picture?
  7. How do you run 2 simultaneous processes in one script? For example, $log = _StringEncrypt(1, GUICtrlRead($encryptinputname) & @CRLF & @IPAddress1, $InputPass,$InputLevel) GUICreate("My GUI Progressbar",220,100, 100,200) $progressbar1 = GUICtrlCreateProgress (10,40,200,20) GUICtrlSetColor(-1,32250); not working with Windows XP Style $progressbar2 = GUICtrlCreateProgress (10,70,200,20,$PBS_SMOOTH) GUISetState () $wait = 20; wait 20ms for next progressstep $s = 0; progressbar-saveposition do $msg = GUIGetMsg() For $i = $s To 100 Step 1 $i2 = $i/3 GUICtrlSetData ($progressbar1,$i) GUICtrlSetData ($progressbar2,($i2)) Sleep($wait) Next Select Case $i >100 $1 = 0 For $i = $s To 100 Step 1 GUICtrlSetData ($progressbar1,$i) Next Case $i2 = 100 ExitLoop EndSelect until $msg = $GUI_EVENT_CLOSE Like, in this code, ive set the script to encrypt some data, and to run a progress bar at the same time as the encryption. About how the progressbar is going to run, it will be based on a variable calculated by the amount of data to be encrypted etc. But to get it to run during the encryption...i cant do it...
  8. What are the 2 [1] values for?
  9. Great! It works! Thanks guys!
  10. Yeah, i wanna get the data from a text file, decrypt it, then put the decrypted text in the input. FileRead or FileReadLine doesnt work, it only gets the amount of characters/lines from the text file. how do you get the data? like, what to put in GuiCtrlSetData("?") If possible, can tell me how to retrieve only a specific line of data from teh text file? like the text file has: line 1 line 2 line 3 and i wanna tak the "line 2" from the text file and leave the others alone.?
  11. I wonder if this question has been posted or not, if so, please redirect me to the topic please? Im rather new to autoit, and i dunno not to get data from a specified file. What i am trying to do is that in a GUI window, i have an input where i type in a password. Then i click a button to encrypt and save the password in text file. That i can do. But what i cant do is when the next time the program starts up, and it reaches that GUI, i cant make it check that file for the saved password, and input it in the GUI's input box. Or to put it simple, how to get data from a certain text file and decrypt it? Please, i really need help on this
×
×
  • Create New...