Jump to content

Azothoras

Members
  • Posts

    19
  • Joined

  • Last visited

Azothoras's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. lol now I remember why I don't come to this forum much... Such assholes Ty PsaltyDS and AndyG
  2. I am sorry for my bad english/phrasing but I am swedish and I am tired hehe. I am making a program for work that will make the schedule for alot of people. Anyways my problem is in the GUI (as always I suck at GUI's). The bottom of my problem is that I need to create x number of buttons / labels / whatever. They also needs to be resised to fit the window (This is not a problem) After all the buttons are created I need to access them in a loop (change the text of them.) If this is not possible my script will be like 10000000000000000 lines Example of how I want to change them. For $x=1 to $nrbuttons GUICtrlSetData($button$x, "New info") Next Don't really have to be buttons can be labels or whatever. All I want is for this to be possible hehe. I really need this because they (the crappy guys at the office) needs to be able to add or remove labels/buttons themselves. Also there will be different ammounts of buttons/labels from day to day. The info on the buttons/labels will also change from day to day. I hope this is readable and understandable. Please help me out guys. //Azothoras
  3. Ty for replies and help... Local $randomarray[200] I know this isn't a pointer but doesn't it allocate space..? Also wouldn't it be possible to get a pointer to this then..?
  4. Ok, can I use something else instead of dllstruct to get the value out then?
  5. Yeah I already knew that but is there a way to access the entire array right away? Like can I somehow use _ArrayConcatenate() ..? Or similiar or do I have to create a For loop? For $x=1 to StringLen(DllStructGetData($pBuffer, 1))/2-1 $desiredarray[$x+step] = DllStructGetData($pBuffer, 1, $x) Next This works but it's not optimal...
  6. Hi, I am trying to read a programs memory (The entire programs memory) I've managed to make it quiet fast but then it's 100 spaces of memory in one line in the array. I want 1 memory adress read to be 1 slot in the array. _WinAPI_ReadProcessMemory($hProcess, $startadress, DllStructGetPtr($pBuffer), $step, $iRead) $step is set to 200 ATM... And all works well except that when I later call DllStructGetData($pBuffer, 1) It return all the memory that was read in one line and not in an array. I know I can divide the string into an array etc but this takes time when I am scanning an entire program. _WinAPI_ReadProcessMemory($hProcess, $startadress, $arraytoreadto, $step, $iRead) I would like this to work but it doesn't _WinAPI_ return some error when I try this. So can this be done? And if it can please teach me how // IzC
  7. Post a screenshot of what form you're trying to enter values in and type your source code aswell
  8. I don't think I quiet get what you are trying to do... But as I understand it you are trying to choose an option in a list in IE... Try this: $list = _IEGetObjByName("Variable returned from _IECreate / _IEAttack", "Name of list") _IEFormElementSetValue($list, "Name of value") You can get the name of the list and value etc by looking at the HTML source code
  9. Ty for replies... I am such a noob Did a test to see if the array had more than one dimension (Didn't show in _ArrayDisplay but I tested anyway) and as it turned out it had two dimension... lol 1 was hidden... wtf? Got a new problem now though... D:\Program\AutoIt3\Include\IE.au3 (2157) : ==> The requested action with this object has failed.: $i_col = $i_col + $td.colSpan $i_col = $i_col + $td.colSpan^ ERROR Seems like the IE.au3 causes the error... (I get this error randomly not all the time) Sometimes within 2 seconds of the script and sometimes it can run for 30 minutes...
  10. Firstly I've declared the array globaly... (I've also tried not declaring it etc) $arr = _IETableWriteToArray($tablesss) ; Read the table to the array (yes $tablesss is declared earlier $loc = _ArraySearch($arr, "Översikter", 0, Ubound($arr), 0, 1); This actually finds this in the array (but only when it actually exists If NOT @Error Then ; Check if the above succeded _ArrayDisplay($arr) ; This displays that the array contains 4 rows of text (0, 1, 2, 3) ;~ $resstring = $arr[1] ; This crashes the entire script and I have no idea why because of the above... msgbox(0, "", _ArrayToString($arr, @tab, 0, 3)) ; Displays NOTHING :'( ;~ MsgBox(0, "", @error) ; Error is 0 msgbox(0, "", _ArrayPop($arr) & @crlf & _ArrayPop($arr) & @crlf & _ArrayPop($arr) & @crlf & _ArrayPop($arr)); Should display atleast something but no... Nothing here either ;~ MsgBox(0, "", @error) ; Error is 0 Please help what am I doing wrong?!
  11. Doesn't anybody know if this is possible or not?
  12. I play a game called Conquer Online and I've made numerous bots for this game Anyway you can jump in this game by clicking CTRL and then mouse1. Although this does not work with ControlClick so I thought this was impossible up to now. I've seen another bot jumping with ControlClick although he uses AHK and not AutoIt3... I refuse to believe that AHK is better than AU3. So here's my question is there a way to click this "window" in the game without using the ID which is 0 (all ID's are 0). Also all Classnames are #32770... So is there a way to click by using like Properties? Ty in advance! >_< Edit: By the way my VERY low post count and 3 years membership is because the search function is wicked awesome on this site and almost all questions are answered by just using search button
  13. $Rand1 = Random($size[0] / 2 - $win, $size[0] / 2 + $win) $Rand2 = Random($size[1] / 2 - $win, $size[1] / 2 + $win) Send("{CTRLDOWN}") MouseClick("left",$Rand1, $Rand2,1,0) Send("{CTRLUP}") This works... Although ControlClick doesn't work and the sleep thingy doesn't work either Ty anyway mate
  14. MouseGetCursor ( ) Parameters None. Return Value Returns a cursor ID Number: 0 = UNKNOWN (this includes pointing and grabbing hand icons) 1 = APPSTARTING 2 = ARROW 3 = CROSS 4 = HELP 5 = IBEAM 6 = ICON 7 = NO 8 = SIZE 9 = SIZEALL 10 = SIZENESW 11 = SIZENS 12 = SIZENWSE 13 = SIZEWE 14 = UPARROW 15 = WAIT
×
×
  • Create New...