Jump to content

TrickyDeath

Active Members
  • Posts

    76
  • Joined

  • Last visited

Recent Profile Visitors

355 profile views

TrickyDeath's Achievements

  1. I have an idea. In Win 7 example u have a settings. Sry if i am not correct on words, but my win is not english so have no clue what is the correct english word for them in windows. so check this: Console / screen settings / to improve the readability of screen contents Google translator FTW You have a settings for 100% 125% and 150%. Maaaaaybe this is the problem. Like i said, i am just guessing.
  2. Well i did different, and about your code, it run the second while loop for 1 "ms" cause the button is pressed (argument succesful), the tooltip is displaied "ToolTip("LeftMouse Down")" and instatnly the second tooltip pop up.Ok, i checked your code and also work, my bad sry. Will test that way as well. For my logic, Do loop was better idea, since i have to hold down the button for a while and the code have to run over and over till the mouse button is down. When i release it, it have to stop. So M23 helped me out, cause seams like i was too tired and did not think i can put "= False" (_IsPressed("01", $hDLL) = False). Funy part is with different way i did try like that, but not with _IsPressed... With _IsPressed i had to notice if i press AltGR and the sleep is too long, it pressing multiple button cause it is groupped button. Still did not identify few button, and unfortunately, not working that function with my media buttons on my keyboard, but still cool stuff.
  3. I tried that one as well, but i bet i made mistake. _IsPressed is not for pressing the button only? I see now, i am so lame.... Until _IsPressed("01", $hDLL) = False Thank You,
  4. Hello everyone, I am messing with a Do loop, and i wana know, how can i set it to finish the loop, when i release Mosue button. (Was started with mouse button press) Used _IsPressed to start Any idea how to tell it to the program something like this: Do ToolTip("Still pressing", 0, 0) Sleep(100) Until ; Here i need to make it stop, when i release the mouse button Tricky
  5. I prefared tooltip or msgbox, since i always know wich function is not accured, cause when i am done with 1 function, i start testing itself to make it work 100% before i start new one. I give the right and also give wrong values what it can pull out from the methode, to test both side, what my code does with correct and uncorrect values / data. Was thinking on log, but not about checking where did i made bug in codeing part. For me log is more useful, if i give away the finished program to someone, and if bugs accured, it saveing in log file. Anyway, you are right, about log file can be more useful in one hand, when you have long function, what will require a lots of msgbox clicking.
  6. My prob with log file, it is too long and u get the info after everything done. With Msgbox u get it in real time, and if your script calling 10 function / sec u can not be enough fast. Msgbox is stoping your script till u click on OK button, then it repeating. Log file is equal with consol write.
  7. You still can copy and paste the consol messages into notepad and read or search. If it is too many rows, then it can be realy messy i know. What i do if i am in same shoes then you are, i just rem all the unnessesery actions and insert a tooltip or msgbox to print out what is hapening right now. Example: Msgbox(0, $function_name, "succes file found redy to open etc...") If you have any idea where can be the problem, you can insert that stuff there and call only that function. For me up till now, it helped me always to identify if my logic was wrong and somehow my script stuck with strange reason, or my calculation was wrong and the program got different value then it should. If this doesent work for me, then i run the whole code part by part to what it does and where it is stucked. Usualy the prob is just logical problem what i made. I hope it help at least a bit. Tricky
  8. Hello everyone, I also have a little question about this function, actualy more then 1 question. - I read the help file about this function and i can see a list there, and my eyes is stuck on few keys, what i do not know wich are those keys, maybe someone can tell me: 0x0C|Clear Key 0x29|SELECT key 0x2A|PRINT 0x2B|EXECUTE key 0x6C|Separator key Also wana know there are a lot of missing buttons on that list. Is it different on any kinda keyboards, i mean 0x?? will be a letter in france keyboard, and it is not even exist on russian keyboard, or on english keyboard? Or those hexa numbers have no keys linked to them? Can i somehow send those buttons presses with controlsend or send funcions useing the button hexa code? Or what i can do is make a hotkeyset on the button hexa code, and if it is pressed, then the function will run?
  9. You can have 2 While loop ofc, and they can semi run next to each other, but you should put them into a Function each of them, to be able to call them 1 by 1 with an execution delay. Take a look on Help file for: Func() and: Adlibregister and: Adlibunregister If: If the event is succesful, then something will hapen what you code down. If you put elseif after that, it mean, If the first event does not apire / succes, then jump on second "Elseif" line and check if that event is succes or not. If succes, then your code will run what you wrote below. If that is not succes then jumping down again. If your first event have like in your example: WinWaitActive, then your script will stuck in this posicion until the event will be succesful, cause the order is "Wait". I recomanded to put a Sleep() function in your code, otherwise your CPU will work harder then it is nessesery. You also can use: Controlsend function, instead of clickig on the button. For this you can use the AutoIT tool called: Au3Info.exe or Au3Info_x64.exe to find the data for your control (Button). With send function, i had some issue. It is work only on active window (So you have to use a function SendKeepActive to work it safe). If something pop up, example your antivir download / report, or anything else, it grab the "active" status from your download window, and your script will send the "Enter" to that window, instead of your Download window. With Controlsend, no mater what will hapen, it will always send to the right window / Object. P.S.: Sry if i am writeing kinda noobish way, but as you can read my description below in my post, i am also learning how to use AutoIT by myself as useing Help file much as i can, and i am still just at the begining. I am also started from 0, like you do now. Tricky
  10. Yes, and i should check more often the new updates.
  11. //to Water - That is ok, i saw that part, and it is work fine to write into a file. Like i said i had problem, to read it back into a 2D array where i could not see anything what is explaining how to do in help file. OMG i see now... Seams i am blind. o,O I look on help file and what i see there is: I still do not see anything what is telling me about 2D array solution. Is it new stuff, or it was always like that? Do not see the 4th parameter in help file and, if i run your script i get error messages: For me looks like, i have older version of AutoIT what is not supporting this 4th parameter... And in help file i see now the 4th parameter. BTW, since forum engine changed, how can i mark the post as there is the solution like before? P.S.: I do nto like this new search system in new forum.In my opinion, the older version was better. Problem solved! I had lill older version AutoIT what did not wanted to support the 4th parameter. With new version work fine.
  12. Hello everyone again, I tried to find out how to do my stuff, but i get stucked hard with it, until i found M23 great work "GuiListViewEx". c(: But, i have new problem. I have made a GUI with a ListView where the user can add / remove items on 2 column. When he/she finish with it, then the ListView all element moved into a 2D array, what i save with this: $ListView_Database = _GUIListViewEx_ReadToArray($ListView, 0) _FileWriteFromArray($sFileSaveDialog, $ListView_Database) This is work fine, but i wana read that file later into a 2D array with another program. Have no clue how to tell to the array, the "|" are separator lines, and it is separating 1st dim and 2nd dim. I guess the solution will come with stringformat, but not realy sure, maybe i said something silly. Tricky
  13. Thank you for the answares, i bet it will help. //to JohnOne - To be honest, as you could read my signatures: I guess it explane a lot. Have not worked with floating numbers yet in programing, so it is new for me.
  14. Hello everyone, I have a little logical question about basic math with AutoIT. I did caunting a little bit and somehow my program giveing me back wrong number all the time. I start searching for the problem and run step by step till i found out this: Local $Number = 19.2 If $Number > 0 Then Do $Number = $Number - 1 Until $Number < 1 EndIf MsgBox(0, "", $Number) This should give me back 0.2 but somehow it giveing as resoult 0.199999999999999 and it is not accurate. Any idea how it is posible? It is totaly unlogic for me. I do not know why it is not accurate, but if i write only this: 1.2 - 1 It give the right resoult (0.2). If it is some kinda bug, then can anyone help to me, how i can get the 0.2 out from $number? Cause i need only the decimal number. I use the integer part for other calculation. $Number is a dynmic number, but in example i use a fix number cause it is easyer.
  15. Ok i did test your example, and work perfect. Thank you for your help. Now i can continue to work on rest of the code to make the whole communication between PC and my phone. :-)
×
×
  • Create New...