-
Posts
149 -
Joined
-
Last visited
About Noviceatthis
- Birthday 06/06/1992
Profile Information
-
Location
England
-
Interests
This
many other things
Recent Profile Visitors
555 profile views
Noviceatthis's Achievements
-
elija6266 reacted to a post in a topic: Beginer to JavaScript
-
Sorry I'm late here, but if you want a specific resource then pretty much anything by this guy is fantastic: https://www.udemy.com/user/maximilian-schwarzmuller/, maybe this course would suit you: https://www.udemy.com/course/javascript-the-complete-guide-2020-beginner-advanced/. (Incidentally the pricing on Udemy is very weird, one day a course may be £110, the next it may be £15, so just hold off until the price goes down, not sure if the prices are linked to your interests on your account)
-
Skeletor reacted to a post in a topic: Understanding / Learning - C#
-
Sorry, I'm a little late here, I agree with Skeletor, and if you want a specific resource I found to be quite useful, it would be this guy: https://www.udemy.com/user/moshfeghhamedani/ (although you have to pay for that, also prices on Udemy are weird and fluctuate wildly, one day a course can be £10, and the next it can be £100, so don't get ripped off). Generally, when I'm trying to learn a new language, I'll set myself a challenge. One I quite like doing is consuming some sort of API, and displaying the information in some way, for example use this: https://www.tvmaze.com/api to fetch some information (based on some sort of input, can be from the console, or from some sort of UI if you're feeling fancy) about a TV show and display it in some way.
-
Gianni reacted to a post in a topic: Javascript Object Constructor
-
(Sorry I know I'm about 500 years late to the party here) If you really want to use pre-ES6 syntax var Model = (function () { function Model(name) { this.model = document.createElement("div"); } Model.prototype.append = function (parent) { document.getElementById(parent).appendChild(this.model); }; return Model; }());
-
Mobius reacted to a post in a topic: Write Binary Data
-
@Mobius, that would explain it, thank you! I havn't decided what I want to do with it yet, I just wanted to figure out what was going on
-
@mlipok, $hFile = FileOpen("test.bin", $FO_OVERWRITE+ $FO_BINARY) That seemed to have the same effect as using 17
-
@Mobius, so when I enter the additional line, the string 'Test' is shown as 0000 0000 5465 7374 in the bin file (where the 0000 0000 is the '0' in the additional line and the 5465 7374 is the 'Test' string) but without the additional line, the bin file just shows 'Test' in plain text. So I was just wondering why the additional line is needed,and how the information in the bin file can result in just the 5465 7374 without the additional line. Does that make sense?? Apologies if I'm not being very clear
-
@mlipok, thanks for the speedy reply $bin = StringtoBinary("Test") $hFile = FileOpen("test.bin", 17) FileWrite($hFile, $bin) FileClose($hFile) that seems to do the same thing as the first example I mentioned before....
-
Hello all, So ive been trying to write data to a file: $bin = "Test" $hFile = FileOpen("test.bin", 17) FileWrite($hFile, Binary($bin)) FileClose($hFile) So the above example does not write the data in binary format, it just seems to write it in plain text $bin = "Test" $hFile = FileOpen("test.bin", 17) FileWrite($hFile, Binary(0)) FileWrite($hFile, Binary($bin)) FileClose($hFile) However this one does write it in binary format, I was just wondering why this was, and whether the additional line can be avoided. Thanks in advance
-
BrewManNH, you are a legend! Thank you
-
Hello all, So I'm trying to write something that gives you the option to fade an open CMD window (kind of like in the windows 10 preview), using a slider; here's what I have so far: #NoTrayIcon #include <WinAPIProc.au3> #include <Array.au3> HotKeySet("!+d", "_Transpval") HotKeySet("{Esc}", "_exit2") $inidirexist = FileExists(@AppDataDir & "\Glass CMD") if $inidirexist = 0 Then DirCreate(@AppDataDir & "\Glass CMD") EndIf Global $drive = "" Global $sInipath = @AppDataDir & "\Glass CMD\config.ini" $checkiniexist = FileExists($sInipath) If $checkiniexist = 0 Then IniWrite($sInipath, "Slider", "Value", "255") EndIf $readval = IniRead($sInipath, "Slider", "Value", "-1") $pid = shellexecute("cmd.exe") $cmdTrueHandle = _WinAPI_EnumProcessWindows($pid) _ArrayDisplay($cmdTrueHandle) $cmdHandle = $cmdTrueHandle[1][0] WinSetTitle($cmdHandle, "", "Command Prompt") loopfunc() Func loopfunc() While 1 sleep(20) WEnd EndFunc Func _exit2() Exit EndFunc Func _Transpval() #include <GUIConstantsEx.au3> #include <SliderConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Transparency Selector", 615, 206) GUISetBkColor(0xA0A0A4) $Slider1 = GUICtrlCreateSlider(64, 96, 489, 49) GUICtrlSetBkColor(-1, 0xA0A0A4) GUICtrlSetLimit(-1, 255, 0) $Label1 = GUICtrlCreateLabel("Adjust Window Transparency", 0, 0, 613, 57, BitOR($SS_CENTER,$SS_CENTERIMAGE)) GUICtrlSetFont(-1, 14, 400, 0, "Times New Roman") $Label2 = GUICtrlCreateLabel("Invisible", 56, 128, 50, 19) GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman") $Label3 = GUICtrlCreateLabel("Solid", 528, 128, 55, 19) GUICtrlSetFont(-1, 10, 400, 0, "Times New Roman") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### $OldSliderPos = IniRead($sInipath, "Slider", "Value", "-1") GUICtrlSetData($Slider1, $OldSliderPos) WinSetOnTop($Form2, "", 1) While 1 $Sliderpos = GUICtrlRead($Slider1) If $Sliderpos <> $OldSliderPos Then WinSetTrans($cmdhandle, "", $Sliderpos) EndIf Sleep(10) $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE IniWrite($sInipath, "Slider", "Value", $Sliderpos) GUIDelete($Form2) loopfunc() EndSwitch WEnd Endfunc So it keeps giving the following error on execution and I can't for the life of me figure out why: Subscript used on non-accessible variable.: $cmdHandle = $cmdTrueHandle[1][0] $cmdHandle = $cmdTrueHandle^ ERROR Any help would be greatly appreciated. Thanks in advance
-
Nice find, but what if you have two registry keys with the value "Name"=Capture, do you edit them both??
-
Thanks eukalyptus, works perfectly
-
Hello all, So basically i'm playing around with GDI plus in an effort to understand it better, and i've hit a bit of a problem: #include <GDIPlus.au3> _GDIPlus_Startup() $hBitmap = _GDIPlus_BitmapCreateFromScan0(500, 80) $hContext = _GDIPlus_ImageGetGraphicsContext($hBitmap) _GDIPlus_GraphicsClear($hContext, 0xFFFFFFFF) $hBrush1 = _GDIPlus_BrushCreateSolid(0xFF8090F0) $hBrush2 = _GDIPlus_BrushCreateSolid(0xFFCC00FF) _GDIPlus_GraphicsFillRect($hContext, 0, 0, 250, 80, $hBrush1) _GDIPlus_GraphicsFillRect($hContext, 250, 0, 250, 80, $hBrush2) _GDIPlus_ImageSaveToFile($hBitmap, @ScriptDir & "\Test.jpg") _GDIPlus_BrushDispose($hBrush1) _GDIPlus_BitmapDispose($hBitmap) _GDIPlus_GraphicsDispose($hContext) _GDIPlus_Shutdown() ShellExecute(@ScriptDir & "\Test.jpg") So it does what I want, to an extent. The transition zone between the two colours has (if you zoom in) several other intermediary colours. I was just wondering whether it was possible to have the the one colour transitioning to the other without these intermediaries, meaning there are only two colours in this picture. Thanks in advance.
-
AutoIt messages to and from python script
Noviceatthis replied to Noviceatthis's topic in AutoIt General Help and Support
@water @JohnOne thanks, i'll look into them, and I know, I was just using the hashing as an example -
Hello all, So iv'e recently been dabbling with python and I was just wondering whether a python script and an AutoIt script could communicate with each other (without the use of a text file). For example, take this situation: Lets say you have an Autoit script with a string of text. This string is then sent to the python script where it is hashed. This hash is then sent back to the Autoit script. Now I know how to do this by using a text file as an intermediary, but that seems like it would be rather slow, I was just wondering whether there was a way to do this more quickly. Thanks in advance