
myxomatosii
Active Members-
Posts
62 -
Joined
-
Last visited
myxomatosii's Achievements

Wayfarer (2/7)
0
Reputation
-
Hi guys, hopefully this question will not be overly obstinate... when I do tons of searches as I have for this and nothing comes up, sometimes I think that I'm just obtuse and that the answer is so obvious no one ever asks this question... But, here it is anyway. I was curious if there was a way to send a command to the Skyrim console (or console in any game), without opening the console directly and interrupting my game. I wrote a funny little program to test Skyrim's response but it should also illustrate the keys used for this simple act: (Unrelated to actual program I plan to make) while 1 sleep(60000*0.5) blockinput(1) send("~sexchange") send("{enter}") send("~") blockinput(0) sleep(60000*0.5) blockinput(1) send("~killall") send("{enter}") send("~") blockinput(0) WEnd Anyway, hope someone can assist! The program above is pretty fast but it still flashes on the screen and is pretty obviously breaking my immersion into the game.
-
How do I read data from an active program?
myxomatosii replied to myxomatosii's topic in AutoIt General Help and Support
Oh, I feel I was slightly unclear. As a clarifying note: it would be nice to create such a program without even utilizing Logitech's software, by just somehow reading some output port somewhere in my computer that has the data I want... I mean, their program has to get it somehow. But if I cannot do that, my original question stands. -
Hi, my original question my not even be valid, but my idea is.. basically I have a headset (Logitech g930) that gives estimated charge and estimated discharge times. I have countdown times for my battery and temp readouts in my taskbar (I am a minimalist, hate widgets) and I thought it would be nice to make a little countdown timer, or any kind of simple, minimalist readout that tells me how charged or discharged my headset is. So, that is the idea, there is a program that comes with the headset that gives estimated charge time and discharge time but the UI is really clunky and useless and the program doesn't even have a minimize button... Might anyone suggest functions, ideas, or courses of action for me to take? Thank you for your time in reading this. Good day
-
Winactivate Firefox.exe & Chrome.exe
myxomatosii replied to myxomatosii's topic in AutoIt General Help and Support
Thank you, I will look into it next chance I get to break from my work and work on my code -
Hey guys, I tried search but most of the topics are a bit too advanced for what I'm looking for, I'm just a simple hobbyist. Anyway, basically my friend constantly leaves his browser open and it really drives me crazy so I'm writing a simple program that, after the computer is out of use for 30 minutes, activates each browser, creates a bookmark folder with everything open, then kills the process. My problem is, the only way I know to activate a window is to use winactivate, but in order to use it properly I think I need to know the name of the window.. gmail, functions, etc etc etc.. and I just generally want to activate firefox or chrome and I don't really know how. I'll link my code to give anyone interested an idea of what I'm doing.. also, I just realized that if multiple windows exist I'll need to just use WinClose and use processexist to see if I need to loop again... I'll work on that. I'll get to that later, shouldn't be an issue. If you see any other problems with my code feel free, like I say I'm not a programmer by nature, mostly do engineering and physics sort of stuff so I apologize for my amateur writing. ;msgbox(0,"",$x[0],0) ;msgbox(0,"",$x[1],0) Func bookmark() WinActivate("Firefox", "Firefox") Send("{CTRLDOWN}{LSHIFT}d") Sleep(1500) Send(@mon&"."&@mday&"."&@hour&"."&@min&"."&"sec"&"{ENTER}") Sleep(1500) ProcessClose("firefox.exe") WinActivate("Chrome", "Chrome") Send("{CTRLDOWN}{LSHIFT}d") Sleep(1500) Send(@mon&"."&@mday&"."&@hour&"."&@min&"."&@sec&"{ENTER}") Sleep(1500) ProcessClose("chrome.exe") MsgBox(262144,'Debug line ~' & @ScriptLineNumber,'Selection:' & @lf & ' ProcessClose("chrome.exe")' & @lf & @lf & 'Return:' & @lf & ProcessClose("chrome.exe")) ;### Debug MSGBOX ProcessClose("chrome.exe") EndFunc ;==>bookmark While 1 $old = MouseGetPos() $y = 1 While $y <> 2 Sleep(60000 * 0.25) $new = MouseGetPos() If $new[0] == $old[0] And $new[1] == $old[1] Then bookmark() EndIf $y = 2 WEnd WEnd
-
Trying to remember a function/macro? name..
myxomatosii replied to myxomatosii's topic in AutoIt General Help and Support
Yes, I believe it has helped me on the way. I did a test run of it and it was not *precisely* how I recall but it was exponentially (literally) faster than my efforts without your assistance. I will take what I have learned from you and combine it with my natural knack for making things confusing and go from there Thank you so much ~ -
Trying to remember a function/macro? name..
myxomatosii replied to myxomatosii's topic in AutoIt General Help and Support
I don't pretend to know what I am doing. I am not a programmer, but a hobbyist who likes to automate tasks and see however I can manipulate my computer to get a good laugh! Sometimes I find useful things along the way I used to blow up files with this ate a rate that was riiidiculous and it just irked me so much not to be able to remember how to do it. By measuring hard drive speed, I never quantified it, I just would run different delays and see how long my computer would take to respond and update the file size. I'm just an experimentalist.. which is why I have to keep two operating systems at all times in case something screws up.. -
Hi there, basically a few years ago I was playing around with testing hard drive writing speed with AutoIt but I cannot for the life of me remember how I did it. I'll describe the outcome and perhaps someone here can remind me. Using Filewrite and a simple 'while 1' loop look I would create a text file whose contents contained only. -y -y -y -y -y -y -y -y -y -y and so on, forever. The speed that it would flood was immense and I am not able to replicate it, coming back to this project. If anyone can lead me back to whatever I sent to the Filewrite("textfile.txt, [i forgot what goes here]" I would be happy. Thanks all for reading. hints and fragments of memory tell me to try things like yes /y -yes true but I haven't recalled what it actually was yet..
-
So what is the difference between workingdir and dir where file is located? I looked at the helpfile and I still understand it the same as I did before.. tried @programfilesdir @desktopdir @windowsdir and lots of others, none launched it.. in the example they just run notepad, thats not very helpful considering its an exceptional program that runs out of a directory that regular programs do not it doesn't really help someone understand how to run anything except windows built-in apps..
-
I was born near a large cache of plutonium, in my asbestos house under electrical wires.
-
The first thing someone is going to ask is "what have you got so far?", so I'll go ahead and ask that. Have you written anything using the help file as reference? I'm a noob here so I'm asking the more experienced here, not suggesting. Could he put the file names into a string, then read the first character of the string. Check if specified folder exists, if not, create folder/move file and move on, reassigning the string? Just practicing answering questions.. thought I'd give this one a shot.
-
I don't understand why this won't run firefox when I can just type "firefox.exe" into windows and it does it fine. Run("firefox.exe",@ProgramFilesDir&"\Mozilla Firefox")
-
Yea, I didn't see it coming. It made 423 windows while I frantically clicked to make it stop. How can I make a gui which contains the time and refreshes if any of the numbers change? Without the gui window actually changing or flickering. Func time() GuiCreate("Timer",200,50) GuiSetState(@sw_show) Local $h=@hour,$m=@min,$s=@sec GuiCtrlCreateLabel("The current time is "&$h&":"&$m&":"&$s&".",10,10) EndFunc while 1 time() wend
-
Using A ComboBox To Declare Variables
myxomatosii replied to myxomatosii's topic in AutoIt GUI Help and Support
Did this instead. Thanks for the redirection #include <GUIConstantsEx.au3> ;AutoItSetOption("TrayIconHide",1) Func getnum() Global $cits Local $b1,$b2,$b3,$b4,$b5,$b6,$b7,$b8,$cits=0 GuiCreate("Ikariam",200,280) GuiSetState(@sw_show) GuiCtrlCreateLabel("How many cities do you have?",10,10) $b1=GuiCtrlCreateButton("One",10,40,80,20) $b2=GuiCtrlCreateButton("Two",10,65,80,20) $b3=GuiCtrlCreateButton("Three",10,90,80,20) $b4=GuiCtrlCreateButton("Four",10,115,80,20) $b5=GuiCtrlCreateButton("Five",10,140,80,20) $b6=GuiCtrlCreateButton("Six",10,165,80,20) $b7=GuiCtrlCreateButton("Seven",10,190,80,20) $b8=GuiCtrlCreateButton("Eight",10,215,80,20) $b9=GuiCtrlCreateButton("Nine",10,240,80,20) While 1 Local $msg=GuiGetMsg() Select Case $msg=$b1 $cits=1 ExitLoop Case $msg=$b2 $cits=2 ExitLoop Case $msg=$b3 $cits=3 ExitLoop Case $msg=$b4 $cits=4 ExitLoop Case $msg=$b5 $cits=5 ExitLoop Case $msg=$b6 $cits=6 ExitLoop Case $msg=$b7 $cits=7 ExitLoop Case $msg=$b8 $cits=8 ExitLoop Case $msg=$b9 $cits=9 ExitLoop Case $msg=$Gui_Event_Close GuiSetState(@sw_hide) EndSelect WEnd MsgBox(0,"",$cits,0) EndFunc -
Using A ComboBox To Declare Variables
myxomatosii replied to myxomatosii's topic in AutoIt GUI Help and Support
Alrite, I'll try to change my approach.