Jump to content

IphoneDev

Members
  • Posts

    10
  • Joined

  • Last visited

About IphoneDev

  • Birthday 08/21/1989

Profile Information

  • Location
    Norway

IphoneDev's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes, atleast when its only running in the IDE. Still trying to find out how to convert a string to byte array, no luck so far. Anyone else?
  2. Already tried that, it did not work. Just to assure myself I tried again, still no luck.
  3. AutoIt outputs this 0x39332E36373239383231313433363732 This is my AutoIt code: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <CommMG.au3> ;or if you save the commMg.dll in the @scripdir use #include @SciptDir & '\commmg.dll' #include <String.au3> $error = "" $rand = Random(0, 100) $rand = StringToBinary($rand) ConsoleWrite($rand & @CR) _CommSetPort(3, $error, 9600, 8, 0, 1, 0) _CommSendString($rand, 8) _CommCloseport()
  4. I don't think thats it :s This is how I do it in C# serialPort1.Write(new byte[] { Convert.ToByte(string) }, 0, 1);
  5. Hi, I wondered if there was some command in autoit like the Convert.ToByte for C#. Need to output something to a serial device through the COM port already got that working but need to send it as a Byte value. Thanks!
  6. Hi, i want the page im using _IECreate for to check if its running under a special version. Is it possible to change the version of the browser?
  7. Hmm, the above methods dont work for me. Ill put an example: Window1: Title "Player - Guns'N Roses - Paradise City" Window2: Title "Player Official Website - Mozilla Firefox" When i use stringsplit on the title it will trow me an error. Because there is two titles. $title = WinGetTitle ("Spotify") $title = StringTrimLeft($title, 10) $title = StringSplit($title, chr(150)) $title[1] = StringTrimRight($title[1], 1) $title[2] = StringTrimLeft($title[2], 1) $title[1] = urlencode($title[1]) $title[2] = urlencode($title[2])
  8. Hello, I've used Autoit for a while now and i must admit that im impressed. However when i use WinGetTitle() it can interfere with other processes that contains the same Title. Let's say i've got a program1.exe running with title "Test" and program2.exe running with the same title. I want to get title from just one of them because they contain diffrent titletext. Is there a way to do that?
  9. Spotify can be downloaded from spotify.com btw.
  10. Hello, I'am currently trying to make a control interface for Spotify. But i can't get out the text i want to get out from the window. It only have one Class and instance and that's the Search box. >>>> Window <<<< Title: Spotify Class: SpotifyMainWindow Position: 0, 0 Size: 1280, 994 Style: 0x170B0000 ExStyle: 0x00000000 Handle: 0x00000000001F0992 >>>> Control <<<< Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x00000000000100BA >>>> Mouse <<<< Position: 358, 355 Cursor ID: 0 Color: 0x313131 >>>> StatusBar <<<< >>>> Visible Text <<<< Search >>>> Hidden Text <<<< Any ideas? I can give out invites for spotify if you wanna have a look yourself.
×
×
  • Create New...