AutoHotkey Community

It is currently May 27th, 2012, 4:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 24th, 2008, 5:16 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
this program gets all your friends from your GigaTribe Users list (expanded tree only) and then lets you remove ones you dont want other users to know about,
and then publishes them in you Gigatribe shared folder for your other current GigaTribe users to download.
All with a simple click instead of typing in all the user details.
It publishes a single htm file with all users with their own link to click and request a invite.
your GigaTribe users can then download and then expand their friends with yours.
Code:
;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         trubbleguy
;
; Script Function:
;   share your gigatribe users with your gigatribe users.
;
#SingleInstance Force
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
_ini=%A_ScriptDir%\gigalist.ini
iniread,reqtxt,%_ini%, options, reqtxt,I am a Friend of%A_Space%
iniread,_rootloc,%_ini%, options, sharedfolderlocation,Please select folder

Gui, 1:Add, Button, x12 y12 w100 h20 gsetshared , SELECT
Gui, 1:Add, Edit, x117 y12 w206 r1 v_rootloc, %_rootloc%
Gui, 1:Add, Text, x330 y14 r1 ,A Shared GigaTribe folder (Where to Publish)
Gui, 1:Add, Button, x12 yp+22 w100 h20 ggetlist , Get User list
Gui, 1:Add, Edit, xp+105 yp w206 r1 vreqtxt ,%reqtxt%
Gui, 1:Add, Text, x330 yp+3 r1 ,Put your request here
Gui, 1:Add, Text, x12 yp+22 r1 ,Network Tab with Expanded Group must be Visible on GigaTribe for this to work
Gui, 1:Add, Text, x12 yp+14 r1 ,Collapsed Groups will not list when 'Get User List' is clicked
Gui, 1:Add, Text, x12 yp+14 r1 ,Right Click a User to remove them from the list
Gui, 1:Add, ListView, x12 yp+20 w520 r10 gListBoxClick1 AltSubmit grid,User|Request to User | | |
Gui, 1:Add, Button, x12 yp+200 w100 h20 gpublish , Publish User list
Gui, Show
return

setshared:
oldroot=%_rootloc%
   FileSelectFolder, _rootloc,*%_rootloc%,0,Select a folder where you know its shared in GigaTribe
      If Errorlevel=1
      {
         _rootloc=%oldroot%
         Return
      }
   StringRight, LastChar, _rootloc, 1
   
      if LastChar = \
         StringTrimRight, _rootloc,_rootloc, 1 ; Remove the trailing backslash.   
   GuiControl,,_rootloc, %_rootloc%
return
ListBoxClick1:
if A_GuiControlEvent = RightClick
   {
   loop 3
      ndbb%A_Index%=
   Gui,Listview,SysListView321
   FocusedRowNumber := LV_GetNext(0, "F")  ; Find the focused row.
   if not FocusedRowNumber  ; No row is focused.
      Return
      LV_Delete(FocusedRowNumber)
      LV_Modify(FocusedRowNumber,"Select")
   }   
Return




!^c::
getlist:
Gui,Submit,Nohide
Gui +LastFound
Gui,Listview,SysListView321
Lv_Delete()
DetectHiddenText, On
;ControlFocus ,SysListView321,GigaTribe
ControlGet,OutputVar,List,all,SysListView321,GigaTribe
loop,parse,OutputVar,`n,`n`r
{
part1=
part2=
part3=
stringSplit,part,A_LoopField,%A_Tab%,`n,r
if not part2
continue
;list1 = <a href="GigaTribe://%part1%:Trubbleguy has recommended you">Invite %part1% </a><BR>`n%list1%
list1 = GigaTribe://%part1%:%reqtxt%
LV_Add(" ",part1,list1)
}
LV_ModifyCol()
LV_ModifyCol(1,"sort")
list1=
Return

GuiClose:
Gui,Submit,Nohide
iniwrite,%reqtxt%,%_ini%, options, reqtxt
iniwrite,%_rootloc%,%_ini%, options, sharedfolderlocation
Exitapp
Return

publish:
Gui,Listview,SysListView321
Loop % LV_GetCount()
{
   LV_GetText(n1,A_Index,1)
   LV_GetText(n2,A_Index,2)
   myfriends = <a href="%n2%">Invite %n1% </a><BR>`n%myfriends%
}
IfExist,%_rootloc%\My_GigaTribe_Friends.htm
FileDelete,%_rootloc%\My_GigaTribe_Friends.htm
FileAppend,%myfriends%,%_rootloc%\My_GigaTribe_Friends.htm
Msgbox,4,Done,Open the List to check it in Browser?
IfMsgBox,Yes
run,%_rootloc%\My_GigaTribe_Friends.htm
Return

you have to be in the Network tab with only the group you want to share in expanded mode, and visible, as collapsed groups do not list.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 1:18 am 
Is there a version of this script that works with version 3.19?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2009, 9:17 am 
Offline

Joined: January 20th, 2007, 1:29 pm
Posts: 96
Location: Melbourne
ill have a look this week sometime if i get a chance..i just upgraded too

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 12th, 2011, 3:45 pm 
Offline

Joined: June 12th, 2011, 3:35 pm
Posts: 1
Location: San Diego
Trubbleguy,
While searching for a way to get the list of my contacts on Gigatribe, I found your script. I didn't know about AutoHotKey. So I had to read about it, download it, and figure out what to do with your script.

Your gui is intuitive, and I get my contact list as specified.
I don't know yet if the invite feature works when someone clicks on the html list. I just sent that list to a friend of mine.

All this to say, very nicely done, and thank you very much.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group