Jump to content

h711

Active Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by h711

  1. Thanks, I will look into it. Just a quick question, does imagemagick need to be installed on OS where the script is excuted? I will compile my script to a standard alone exe file and send to users. So do I have to let them install imagemagick too? Thanks!
  2. Does autoit have a build-in function for bitmap comparison, or do I have to call an external program to perform the bitmap comparison? Please give me a simple example, thanks!!
  3. Instead of open an excel file and have the script key in some strings charactor by charactor, I need something that can write to the excel file at the backend, just like what FileWrite does to txt files. using FileOpen("test.xls", 1) will still create a text file, which is not what I am looking for. Any suggestion?
  4. Thanks, I got this to work now. Where did you get those hex number in the first place?
  5. Hi guys, while I am playing with XSkin mod, I found it use AnimateWindow API to add special effects for displaying windows. DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $SKBox_[$XS_TMB], "int", 500, "long", 0x00040008);slide-in from bottom So I checked MSDN for the AnimateWindow function. BOOL AnimateWindow( HWND hwnd, DWORD dwTime, DWORD dwFlags ); My question is, how to convert "DWORD dwFlags" to ""long", 0x00040008"? I want to try some other effects but have no idea how to convert words like "AW_SLIDE" to a hex number. Thanks for the help!
  6. Valuater, thank you for your great work and share it with us. This is amazing!
  7. Hi, I have a script that needs to do a list of tasks. After each task been completed/cancelled, I need the script to restart the Windows OS. My problem is, if the script restarts Windows, all tasks will be lost and it has to start over again. I need a way to save the status/results and load it after Window got restarted. What I can think of so far is to save all the tasks in a notepad. Before restart the OS, update the notepad and save all the status. After OS restarted, read the notepad to get infor. But this is not an easy way, as I need the script to seach and update the notepad. "Send" command is not very ideal for this task. Is there is better way to deal with this? Thanks!!!
  8. Thanks. Not sure about step 2 and 3, but think this should work. DirCreate ( "C:\Temp_Skin\DeFacto" ) FileInstall("C:\Program Files\AutoIt3\Beta\Skins\DeFacto\skin.dat", "C:\Temp_Skin\DeFacto\skin.dat",1) I just have to use fileinstall 10 times for 10 files...
  9. I had no luck with #include for the skin file. #include <C:\Program Files\AutoIt3\Beta\Skins\DeFacto> #include <C:\Program Files\AutoIt3\Beta\Skins\DeFacto\skin.dat> nothing works so far
  10. Hi, I use xskin mode and some other bitmaps to dress up my UI. But when I run the exe on a different pc, I got an error message says skin folder not found. Does AutoIt includes all the bitmap when compile to an exe file? If not, how can I make this happen? Thanks!
  11. Hi, this looks great!!! I used this mod to dress up my UI and it works fine on my pc. But once I complied the program to an exe and run it on a different pc, I got an error message says skin folder cannot be found. Does this mod require the skin folder to be installed on every pc it runs on? Can the exe file contain everything it needs to run including skins? Thanks!
  12. I have problem with checkbox within listview. When I use $LVS_EX_CHECKBOXES, the board of the listview disappeared!! As funny as this may sound, but it is true. GUICtrlCreateLabel ( "Setup", 245, 35, 180 ) $SettingListview = GUICtrlCreateListView("Settings ", 245, 50, 210, 120, $LVS_NOLABELWRAP, BitOr($GUI_SS_DEFAULT_LISTVIEW, $LVS_EX_CHECKBOXES) ) Please help, thanks!!!!!!
  13. Hi all, From the help menu, it says _GUICtrlButton_GetFocus will return: True: Button has focus False: Button does not have focus I am not sure if this "has focus" is the same as "is focused", so I tested it on the autoit installer page 1 #Include <GuiButton.au3> WinActivate("[CLASS:#32770]") Sleep(1000) $hwnd = ControlGetHandle("[CLASS:#32770]","","[ID:1]") if _GUICtrlButton_GetFocus($hwnd)=True Then MsgBox(0, "", "true") else MsgBox(0, "", "false") EndIf But it always return false. Any idea and suggestions? Thanks!
  14. Thanks! I didn't know that return also serve as function exit, lol.
  15. I have a script that made by a number of functions. At some point, when condition met, I need the script to exit a function and return to main. If I use "exit", it will exit the whole script. This is not what i need. Any ideas? Thanks!
  16. Some help please. Thanks a lot!
  17. Thanks! I tried few times but didn't get the thing I wanted. I have trouble deal with the returned struct. Could you please help me by give me an example? How about the "Welcome to the Autoit v3.2.12.1 Setup Wizard" on the first page of the Autoit installer? Thanks a lot for the help!!!
  18. Truncation is caused by a text string that is larger/longer than the box/button size. What is the best way to let the script check them? Thanks for the help!
  19. Thanks, yea, this location works.
  20. Hi, I try to use _ScreenCapture_Capture function on win2000, but there was an error message. Then I found that Help file said "Requires GDI+: GDI+ REQUIRES A REDISTRIBUTABLE FOR APPLICATION..." I went to Microsoft site and download a "Platform SDK Redistributable: GDI+". After un-pack it, it contains a gdiplus.dll. But where should I put this dll file? All I need is to have this _ScreenCapture_Capture function work on win2000. Thanks for the help!
  21. If I know there is an easier way, trust me, I won't even post here. My goal is not just run the simple installation....... Any way, thanks for spending time to help me.
  22. I can, but it won't help. Let's say, I reached page 5, and checked this button (id 1025) is visible. Then the script will controlclick the button (id 1025). The problem is, the controlclick will located another button (id 1025) on page 4 becasue page 4 is always on a higher layer than page 5, even when the page 4 is hided.
×
×
  • Create New...