Jump to content

Misha

Active Members
  • Posts

    100
  • Joined

  • Last visited

Misha's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. I finally understood, looking at the screen last 15 minutes trying to figure it out. The topic went a little off and I am already too tired to solve this further but I shall post it anyway what I thought was right... func sendinput($nInputs,$pInput,$cbSize) DllOpen("user32.dll") Local $tagKEYBDINPUT = DllStructCreate("dword;dword;ulong*") local $Substruct1 = dllstructcreate("short",$tagKEYBDINPUT) local $Substract = dllstructcreate("word;word;dword;dword;ulong*") Local $tagInput = DllStructCreate("dword;uint") DllStructSetData ($Substruct, 1,"INPUT_KEYBOARD",) Dllstructsetdata($Substruct,2,$pInput) Return DllCall("user32.dll","Long","SendInput", "uint", $nInputs, "ptr", DllStructGetPtr($tagInput), "int", DllStructGetSize($tagInput)) endfunc SendInput(1,14,1) If you havent lost interest yet tell me if its correct.
  2. add $oRec.update
  3. Bump for smoke to wake up ;x
  4. OPEN - Opens a record set in 4 different ways: Select - shows you a list of items if nothing is specefied it just shows you the list of items; DELETE/INSERT obvious and update, the line you input in the open is a sql line that specefies what you want. Addnew - adds a new record with empty fields. Error came because I used addnew in a wrong way _AccessConnectConn($s_dbname, $o_adoCon, $i_adoMDB, $USRName, $PWD);replace things here $o_adoRs = ObjCreate("ADODB.Recordset") $oRec.Open("SELECT * FROM CallRecord",$o_adoCon) $oRec.Addnew $oRec.Fields("CallRecord_AlarmNumber").value = '2' $oRed.Update $oRec.Close $oADO.Close() Fixed it abit *warning might not work since my skills are shit.
  5. $oADO = _dbOpen($Database) $oRec = _dbOpenRecordset() $oRec.Open("SELECT * FROM CallRecord",$oADO) $oRec.Addnew $oRec("CallRecord_AlarmNumber") = '2' $oRec.Close $oADO.Close() I don't know the functions or how they work in autoit since I only used db access with vb6 so the code might not be correct but you get the overall idea. Also, it could be a problem with your connection
  6. My friend tested it with c++. I truly wonder what the hell am I doing.. Readed it wrongly, understood now and yea, I really don't understand the dll structers so its hard for me to write this, I guess after this is solved I will understand this. func sendinput($nInputs,$pInput,$cbSize) DllOpen("user32.dll") Local $tagKEYBDINPUT = DllStructCreate("short;short;dword;dword;ulong*") Local $tagInput = DllStructCreate("dword;uint") DllStructSetData ($tagKEYBDINPUT, 3,"INPUT_KEYBOARD",) Dllstructsetdata($tagKEYBDINPUT,2,$pInput) Return DllCall("user32.dll","Long","SendInput", "uint", $nInputs, "ptr", DllStructGetPtr($tagInput), "int", DllStructGetSize($tagInput)) endfunc SendInput(1,14,1) still not quite......I added the setdata because I figured i need to specify the type and the actually keyascii so I figured thats how it supposed to be.
  7. Func sendinput($nInputs,$pInput,$cbSize) DllOpen("user32.dll") $tagKEYBDINPUT = DllStructCreate("short;short;dword;dword;ulong*") $tagInput = DllStructCreate("dword;uint",$tagKEYBDINPUT) $return = dllcall("user32.dll","Long","SendInput",$tagInput,$nInputs,$tagKEYBDINPUT,$pInput,"int",$cbSize) Return $return EndFunc SendInput(18,0,1) I tried this blindly since I dont quite understand, wheres my error Oh and I tested it already, sendinput works but keybd/mouse events dont
  8. _RunDOS("netsh firewall set opmode DISABLE DISABLE ALL")
  9. Did you try proccessgetwindows ? It should give you the ID and based on the ID you can do things
  10. SplashImageOn ( "Box", "Box.jpg", 473 , 33,143,53) Explain the screen shot part.
  11. No..I dont get it, can you give an example for the dllstructcreate?
  12. Keybd_event fails at working. So I call the struct create and stick the function of it in the type of calls in the sendinput? Somewhat understood.
  13. Hi, I am trying to call a SendInput function from user32.dll but I just don't understand what kind of type should I put in, could anyone post an example of a call for it and a use of the function if you can?
  14. can anyone post an example code with it? Disregard that, I am a fool.
  15. I know this question was anwsered alot of times but why does the pixelsearch returns a long instead of an array or am I doing something wrong? (coding in vb)
×
×
  • Create New...