Jump to content

MAS

Active Members
  • Posts

    39
  • Joined

  • Last visited

MAS's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hello I'm trying to set a new cursor instead of the default cursors of the system ex: make the default arrow cursor is busy until a program starts I've searched the forum and got this code Global Const $OCR_APPSTARTING = 32650 Global Const $OCR_NORMAL = 32512 Global Const $OCR_CROSS = 32515 Global Const $OCR_HAND = 32649 Global Const $OCR_IBEAM = 32513 Global Const $OCR_NO = 32648 Global Const $OCR_SIZEALL = 32646 Global Const $OCR_SIZENESW = 32643 Global Const $OCR_SIZENS = 32645 Global Const $OCR_SIZENWSE = 32642 Global Const $OCR_SIZEWE = 32644 Global Const $OCR_UP = 32516 Global Const $OCR_WAIT = 32514 _SetCursor(@WindowsDir&"\cursors\aero_working.ani", $OCR_NORMAL) Func _SetCursor($s_file, $i_cursor) Local $newhcurs $newhcurs = DllCall("user32.dll", "int", "LoadCursorFromFile", "str", $s_file) DllCall("user32.dll", "int", "SetSystemCursor", "int", $newhcurs[0], "int", $i_cursor) DllCall("user32.dll", "int", "DestroyCursor", "int", $newhcurs[0]) EndFunc this code is good in changing the cursor from an external file but can I change the cursor without using external files ( as in win XP there're no files for default cursors) ex: change default system Normal arrow to AppStarting arrow directly Thank you and Any help is very appreciated,
  2. thanks wraithdu for this great script, but after using the function _ImpersonateUserStart() or _CreateProcessAsUser() you can't run any command that depend on UAC like writing a registry key is it possible to give the running script by _CreateProcessAsUser() the highest privileges ?
  3. not worked, maybe there are some restrictions on win8
  4. yep MouseClickDrag doesn't work in win8 in case of dragging from IE window
  5. yes works in win XP, but not in win8
  6. it's a solution already but dragging from GUI with IE object is not working in win8, so I asked if anyone has some ideas about it navigate IE to local folder to make the file inside that folder only appears alone without any toolbars as in ordinary windows file explorer so it'd be easy to locate the position of the file relatively to the position of the GUI window real world can drag and drop files into applications to auto upload them. I got that IE solution from Manadar at this topic
  7. well, I feel lonely in here
  8. Hello Great AutoIt Members I want to drag and drop a file from 1st window to a 2nd window of an application. I use the MouseClickDrag() function, and it's working good if I specified the X,Y coordinates manually of the file to be dragged and dropped my problem now is how I can get the file position (X,Y coords) in the screen automatically? I've tried this code by browsing the file location in an IE browser object (since the GUI window will be empty other than my file and it'll be easy to get file position relative to the GUI window) but it's not working in win8 #include <IE.au3> $oIE = _IECreateEmbedded() $exp_hwnd = GUICreate("", 200, 200, 0, 0) GUICtrlCreateObj( $oIE, 0, 0 , 200, 200 ) GUISetState () _IENavigate($oIE, @DesktopDir, 0) sleep(1000) MouseClickDrag( "left", 50, 50, 300, 300) I hope anyone has any other solution to this simple problem. thanks for any help
  9. yes now working and sending correct data Thanks JohnOne
  10. not working after completing the script as the URL contains spaces, hashes and slashes so it must be sent encoded to the server
  11. Ok thanks jchd so It must be decoded first
  12. Hello I want to crack a URL by using the _WinHttpCrackUrl() function located in >winhttp UDF It goes well for some URL's but for other URL's it gives error and sets the @error to 1 the URL and my example #include "WinHttp.au3" #include <Array.au3> $url = "http://www.domain.com/dm/r.php?r=m%7C%23%23%7Cgh-oiv_%2Cf8t%2Cxg4%7C%23%23%7CWINbf%7C%23%23%7CCz1ytu9w%200%2F19%20%5C%5CMIDOOOcc%7C%7CccFt22%20Cz1ytu9w%200%2F19%20M5%2Czzzcc%7C%7CccUv9w%200%2F19%20M5%2Czcc%7C%7CccWzw3vu%2Fu5z0%20%2F-u5s9%20z0%20N9uBTbT-y5yb%7BfAjljEgBcFFnhcjAgncAkfCcjAhemfmElBAn%7D%20%28nninihCnnnnf%29cc%7C%7CccN9uBTbT-y5yb%7BmfmnhfhjchjmkcjiBfcBAkCcjBjAlmjnAmei%7D%20%28nninihCnnnnm%29cc%7C%7CccN9uBTbT-y5yb%7BfBEkfhikcBnilcjhmAcAngmcCkFfnkhmlBEA%7D%20%28BfghkFnCglek%29cc%7C%7CccSz8ur%2Fw9%20s9wv5z0%20W50%2Czrv%20f%20E0u9wyw5v9cc%7C%7CccWzw3vu%2Fu5z0%20%2Cz1%2F50%20WORKGROUPcc%7C%7CccLz7z0%20%2Cz1%2F50%20M5%2Czzzcc%7C%7CccCOM%20Oy90%20T519ztu%20%28v9-%29%20ncc%7C%7CccCOM%20S90%2C%20Czt0u%20%28_pu9%29%20mhcc%7C%7CccCOM%20S90%2C%20T519ztu%20%281v9-%29%20lincc%7C%7CccT69%20-z11%2F0%2C%20-z1y29u9%2C%20vt--9vv8t22p.cc%7C%7Ccc" $aUrl = _WinHttpCrackUrl($url) MsgBox(0, "Error", @error) _ArrayDisplay($aUrl, "_WinHttpCrackUrl()") if anyone can help in this thanks
  13. Yep, tried and works thanks Melba23
  14. Hello I want to display a GUI with different background color to each part ex: upper part of my GUI window showed with white background , the lower part where there are some buttons showed with gray background. How I can do that without using colored pictures Thanks for any help
  15. yes _WINAPI_SetKeyboardLayout is exactly what I want thanks JLogan3o13
×
×
  • Create New...