Jump to content

GarrettHylltun

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by GarrettHylltun

  1. Greetings, Any help is greatly appreciated. I'm a bit new to AutoIT, I have the help file and some examples and started in on a little project with some success, but also having some ill effects which I'm sure is due to my lack of knowledge of AutoIT. Trying to send some key presses to another program from a Windowed AutoIT program. All is fine with the initial send of keys, but then that's it, I can't press my hotkey again, if I do, nothing happens. I fear that I'm not returning to my main func from the func for my hotkey. Or I'm just completely mucking up the code. Could someone please look over my code and give me some hints as to what I'm possibly doing wrong? Thanks in advance, ~Garrett #include <GUIConstantsEx.au3> #include <Constants.au3> HotKeySet("!{F1}", "SendText1") _Main() Func _Main() Local $exitbutton GUICreate("FATE Hotkeys", 300, 200) $exitbutton = GUICtrlCreateButton("Exit", 220, 166, 70, 24) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Or $msg = $exitbutton ExitLoop EndSelect WEnd GUIDelete() Exit EndFunc Func SendText1() Local $hWnd = WinWait("[CLASS:FATE]", "", 0) If WinExists("[CLASS:FATE]") Then WinActivate($hWnd) Send("{LCTRL down}") Send("{LSHIFT down}") Send("{~ down}") Send("{LCTRL up}") Send("{LSHIFT up}") Send("{~ up}") Send("fame") sleep(10) Send("{ENTER down}") Send("{ENTER up}") EndIf EndFunc
  2. Seems this is no longer made with AutoIt, as the help file with it says "Xenon File Manager is an free, open source file manager written in C++ using wxWidgets."
  3. K, thanks... BTW, I didn't see that function in the help file... is it in there and I missed it? ~Garrett
  4. Is it possible with AutoIT to catch the key presses from the multimedia keys, such as Play, Pause, Vol Up, Mute etc...? Err, at least on XP and up that is. Thanks, ~Garrett
  5. I don't condone the use of such things if it gives a user a major advantage, but there are times when some tools are useful and do not defy the integrity of the game. But... There are some things in your description that even I might find useful for me. Unfortunately, S3 ended last month and I'm still waiting for it to restart. Several in the alliance I'm in are starting to suffer from Travian Withdrawals here now........ I was planning on making another tool for Travian. One that shows on a mini map of the entire server where your alliance mates are, your enemies, farms etc. And then a tool for Alliance leaders to keep track of all the members in their alliance, even in other wings, kind of just centralize all the wings into one form.
  6. Greetings, How do I get both the text and an icon on a button? $button1 = GUICtrlCreateButton ("Test", 0,0,100,100,$BS_TOP + $BS_ICON) GUICtrlSetImage (-1, "C:\Games\Archery.exe",0) Thanks, -Garrett
  7. Anyway to download a html file without using URLDownloadToFile? URLDownloadToFile requires MSIE to be installed, and I'm trying to avoid using the MSIE engine. Thanks, -Garrett
  8. Anyway to load a PNG on to the GUI? Thanks, -Garrett
×
×
  • Create New...